Come on tell us what you really think Gil...
 
Actually I still haven't read the ADSI section of your book. I opened it, saw the ADSI piece was first, skipped through it and got to the LDAP and started reading.
 
BTW, I should get royalties on that thing. You know how many people I have made go out and buy that book? Must be hundreds at this point.
 
  joe


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gil Kirkpatrick
Sent: Wednesday, February 16, 2005 3:30 PM
To: [email protected]
Subject: RE: [ActiveDir] LDAP query question

ADSI is so lame.
 
Try escaping the slash in the DN with "\2f", e.g. "cn=foo\2fbar,cn=user,dc=domain,dc=com". If this is C or some variant, don't forget to escape the backslash itself.
 
-gil


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Passo, Larry
Sent: Wednesday, February 16, 2005 12:05 PM
To: [email protected]
Subject: [ActiveDir] LDAP query question

I have developed a number of applications that do various queries on AD. However, I have run into a problem with doing an LDAP query in groups that have been named with the “/” character in their name. Since the group was named with a “/”, the distinguished name for the object also has the “/” character. When my app tries to connect to the object using the following, an error results:

 

Create Object("LDAP://" & distinguishedname)

 

The LDAP query is assuming that I’m trying to do a query of the form LDAP://server/distinguishedname. The WINNT provider has the same issue.

 

Any suggestions? (Besides renaming the groups?)

Reply via email to