WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

ADSI
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

dsGetProperty Error 1001 Using Slash in Path


Question:

Wondering if someone could help me with the following. I can query the "cn" value on all other groups but this one. I get an error that looks related to the "/" in the name of the group. The error I recieve is
Wil Extender error:1001: Bad ADSI Path Name

AddExtender("WWADS34I.DLL")
Obj = dsgetproperty("LDAP://MyDom.com/CN=MyGroup Is Here/Home,OU=Distribution Groups,OU=Users and Groups,DC=MyDom,DC=Com","cn")
Any Ideas?

Answer:

The slash (/) is the component separator special character of LDAP connection strings (ADSI paths.) In order to use it as part of a common name your need to remove its special meaning. To do this precede it with a back slash (\). So you path becomes
"LDAP://MyDom.com/CN=MyGroup Is Here\/Home,OU=Distribution Groups,OU=Users and Groups,DC=MyDom,DC=Com"
Note that the CN property will not contain the back slash when retrieved via "dsGetProperty".
Article ID:   W16797
File Created: 2007:07:03:14:26:18
Last Updated: 2007:07:03:14:26:18