'**********************************************
'Sort the list by givenName (First Name)
'Other options are: sn, mail
ds.Sort.PropertyName = "givenName"
I also found the answer to another question. It appears that with LDAP you can't tell the query to NOT include NULL values. For example, if I query AD for all users, and get accounts that do not have a value for sn, I am unable to specify the following:
!sn=null or \00
You can only query for attributes that MUST have a value:
sn=*
The above will only return results where sn has a value.
Ariston Collander
"No one person's opinions could be said to be 'truer' than another's. For each is the sole judge of his or her own experiences." - Protagoras
ThePharaoh
Member
135 Points
27 Posts
Re: Getting object name instead of value from LDAP query
Apr 27, 2005 04:32 PM|LINK
Added the following:
'**********************************************
'Sort the list by givenName (First Name)
'Other options are: sn, mail
ds.Sort.PropertyName = "givenName"
I also found the answer to another question. It appears that with LDAP you can't tell the query to NOT include NULL values. For example, if I query AD for all users, and get accounts that do not have a value for sn, I am unable to specify the following:
!sn=null or \00
You can only query for attributes that MUST have a value:
sn=*
The above will only return results where sn has a value.
"No one person's opinions could be said to be 'truer' than another's. For each is the sole judge of his or her own experiences." - Protagoras