Anonymous_User Absent Member.
Absent Member.
698 views

LDAP Modify Undefined attribute


It appears whenever I try to add or modify an LDAP attribute that has a
space or colon, I am getting a


ldap_modify: Undefined attribute type (17) error.

This works fine:
dn: cn=user@delta.com,ou=delta.com,o=Domains
changetype: modify
replace: audio
audio: 99

This breaks:
dn: cn=user@delta.com,ou=delta.com,o=Domains
changetype: modify
replace: EMail Address
EMail Address: blah@blah.com

This breaks:
dn: cn=user@delta.com,ou=delta.com,o=Domains
changetype: modify
replace: Audit:File Link
Audit:File Link: eeeee

Not sure what is wrong, I tried escaping the spaces and just about
everything else, nothing seems to work. Adding these attributes via
console1 works just fine though.

Thanks in advance.


--
adamr05
------------------------------------------------------------------------
adamr05's Profile: http://forums.novell.com/member.php?userid=89392
View this thread: http://forums.novell.com/showthread.php?t=418243

Labels (1)
0 Likes
3 Replies
Anonymous_User Absent Member.
Absent Member.

Re: LDAP Modify Undefined attribute


This has nothing to do with the LDAP SDK or anything related to
programming issues; you need to understand the LDIF specification a
little. Colons and spaces are considered delimiters thus cannot be
present in attribute names. You simply "drop" any instances of these if
present in an attribute name. For example, EMail Address becomes
emailAddress.


--
peterkuo
------------------------------------------------------------------------
peterkuo's Profile: http://forums.novell.com/member.php?userid=88
View this thread: http://forums.novell.com/showthread.php?t=418243

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: LDAP Modify Undefined attribute

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Exactly... your LDIFs must be valid per the RFC. Once done you should be
fine. Another way to see the available schema is to dump the schema via
LDAP (cn=schema object).

Good luck.





On 08/12/2010 08:06 PM, peterkuo wrote:
>
> This has nothing to do with the LDAP SDK or anything related to
> programming issues; you need to understand the LDIF specification a
> little. Colons and spaces are considered delimiters thus cannot be
> present in attribute names. You simply "drop" any instances of these if
> present in an attribute name. For example, EMail Address becomes
> emailAddress.
>
>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJMZXXpAAoJEF+XTK08PnB5HjcP/0qz1q1wwBXTRqWQ5yYciUgQ
ZgKUzqwGNjVlH/PKjQhuUKhxixEmkfKbyFzC15X3Dcic65yXrrU0VUAvvPBCX+4W
HtitlOUhcaYt/rvl+pOPoYIGILb/wHA0q4FzhsEWcwGWQ4b03NQN++qWnPaQ1EFn
VpJ0d4RMD31hhNHrU6XBMQqEmJo4GcMV4O8Wk7BHODcvsGVV7fNhkRqesTV7ff51
3h4+fakX6/4x7OnFqwRRkZtbCMataRxkt1qPwbU4RnpxCZgMnDc1nOQRlCwHdO0X
h0X860qQta+b1jZkz542VXVRaK20wwcUk/JoVv1x/HnDLrdTwyKhbW1e52zJu6Lk
UdvHTQ91Xpecfuo+RTWaGTw6EuotEVTuD/G3p5KPDDyxKV3tnAPosj0LdvSFqvNT
F/u61Dh+3XZYtSOot0Od4K+SMoqYfDU9i6Yf2k1I1Do5PCEBd4vjorSXiQ+ELZan
0YFuxUbREZtvlkzawM3boirJvO5+XArVzEn9r0azOCArvnlhbqpRZ6IXAUeVL6v3
Jrck2yzAAvLdJ3FQoEa6EfzdfVNMHg/5k8QkVp0mYWHnx6oiaSI1VDq74Cdo+Zw5
7EKR7DY7esgOyrxPyZL+sOdSAesDDD2Dpjcqr3TV6aa4SFHuD5SpWx/odt3KIM2u
B8lEJ0jZPGq/CJBHx96p
=C5aQ
-----END PGP SIGNATURE-----
0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: LDAP Modify Undefined attribute

To identify the correct LDAP names for your eDirectory attributes, check
your LDAP configuration:

http://www.novell.com/documentation/edir88/edir88/data/h0000007.html#a5bwxyz

Wolfgang


"adamr05" <adamr05@no-mx.forums.novell.com> wrote in message
news:adamr05.4flvzz@no-mx.forums.novell.com...
>
> It appears whenever I try to add or modify an LDAP attribute that has a
> space or colon, I am getting a
>
>
> ldap_modify: Undefined attribute type (17) error.
>
> This works fine:
> dn: cn=user@delta.com,ou=delta.com,o=Domains
> changetype: modify
> replace: audio
> audio: 99
>
> This breaks:
> dn: cn=user@delta.com,ou=delta.com,o=Domains
> changetype: modify
> replace: EMail Address
> EMail Address: blah@blah.com
>
> This breaks:
> dn: cn=user@delta.com,ou=delta.com,o=Domains
> changetype: modify
> replace: Audit:File Link
> Audit:File Link: eeeee
>
> Not sure what is wrong, I tried escaping the spaces and just about
> everything else, nothing seems to work. Adding these attributes via
> console1 works just fine though.
>
> Thanks in advance.
>
>
> --
> adamr05
> ------------------------------------------------------------------------
> adamr05's Profile: http://forums.novell.com/member.php?userid=89392
> View this thread: http://forums.novell.com/showthread.php?t=418243
>

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.