|
LDAP
does not allow for empty values.
If an attribute has a value it’s stored with the entry, otherwise it is
not (RFC 2251 section 4.1.8). This
would be true of any LDAP directory, including NDS and Netscape Directory
Server. More
importantly, why is that important to your application? Charles Oppermann Author, Microsoft Windows
2000 Active Directory Programming -----Original
Message----- Charles. Thank you for the
response. Unfortunately,
this operation removes the attribute as well, i.e if I had an
attribute 'x' with the value "something", the 'clear' operation would
delete the attribute from the attribute list of 'x' object. What I'm
looking for is the way to assign empty value, not NULL. Another words, there
are three types of values for an attribute: <none>
- the attribute will not appear in the list, when you retrieve the object from
LDAP; empty -
the attribute will appear in the list but will contain an empty string; "something"
- the attribute will appear in the list and will contain a string; So far, I was
unsuccesfull to do the second choice :-(. -----Original
Message----- All LDAP directories,
including Active Directory, have the concept of “clearing” an attribute. This removes the value from the
attribute. In Visual Basic it
would look like this: x.PutEx ADS_PROPERTY_CLEAR,
"otherHomePhone", vbNull Charles Oppermann Author, Microsoft Windows
2000 Active Directory Programming -----Original Message----- Does anyone knows, how to add an
attribute, that has an empty value. I can do it in Novell NDS, or
Netscape Directory Server, but it seems to me, that AD has some sort of restriction. |
Title: RE: [ActiveDir] Windows 2000 Professional Client (Native/Mixed mode)
- [ActiveDir] Empty values in attributes Ryjouk, Valeri (Valeri)
- RE: [ActiveDir] Empty values in attributes Charles Oppermann
- RE: [ActiveDir] Empty values in attributes Ryjouk, Valeri (Valeri)
- RE: [ActiveDir] Empty values in attributes Charles Oppermann
- RE: [ActiveDir] Empty values in attributes Ryjouk, Valeri (Valeri)
- RE: [ActiveDir] Empty values in attribute... Steve Judd
- RE: [ActiveDir] Empty values in attributes Ryjouk, Valeri (Valeri)
- RE: [ActiveDir] Empty values in attribute... Steve Judd
