First off I don't recommend using the SQL format for
querying LDAP stores, it appears to be more trouble than it is worth, especially
if you have a problem and need help because fewer people understand it. Also the
SQL format tends to imply functionality for people that isn't available in LDAP.
I would go look at ADO examples that use LDAP queries.
Second, do you mean what attributes total exist? If so you
can use something like
adfind -sc sl:* -af
objectcategory=attributeschema
If you mean just for a user object then you want something
like
adfind -default -f sAMAccountType=805306368
allowedattributes -list -maxe 1
joe
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Williams
Sent: Friday, May 26, 2006 9:44 AM
To: [email protected]
Subject: [ActiveDir] OT - What can I retrieve from LDAP?
I'm doing a LDAP query in a script. I have it selecting telephoneNumber and displayName. Is there a place that lists the other things I can have it select? I have googled for this but not much luck.
objCommand.CommandText = "Select telephoneNumber, displayName From 'LDAP://" _
Mike
