A customer is using Novell eDirectory 22.214.171.124 on Netware 6.5 sp2. My company's IIS application needs to find out some information from that directory. I'd like the solution to be generic LDAP rather than solved only through Novell tools, as we've also been asked to do the same thing for another customer with MS AD.
I have successfully set up a browser to the eDirectory from the IIS server using the third party LDAP browser tool from Softerra. The connection string that connects and lets me browse is:
where "company" replaces the organization's acronym, and the anonymous mode is used
I have seen in a prior answer some IIS code using the AdsDSOObject which should do this, but it doesn't work for me. I get a table error when the query is executed. From what I've read the table error is thrown when unexpected parameters are provided in the query.
Here's a snippet of the code I found in EE:
oConn.Provider = "ADsDSOOBJECT"
oConn.Properties("Encrypt Password") = False
oConn.Open "ADs Provider", "cn=SchemaReader,cn=staff,dc=" & strDomain & ",dc=com","MYPASSWORD"
strQuery = "<LDAP://" & strDomain &">; (&(objectClass=user)(objectCategory=Person)(sn=*)); sn,givenName,telephoneNumber,mail,sAMAccountname,ADsPath;subtree"
Set oRS = oConn.Execute(strQuery)
The tree has a structure such that I want to get a cn value which is buried under:
ou=[a certain region]
ou=[a certain facility]
then some containers of interest.
Thanks for help on this. Let me know if you need more info.