11-21-2008 05:34 AM - edited 03-13-2019 05:52 PM
I'm programming a service for access client LDAP directory. My problem is that client has difined two "cn" in his LDAP directory. Then if I make "s.AddReturnAttr("cn","Name","%1",60)" the result is "cn1 / cn2" instead of "cn". How can I make that return a single value?
11-21-2008 08:54 AM
It might be helpful if you mentioned what libraries you're using for the search.
11-25-2008 02:00 AM
Hello Stephan. I have intalled CiscoIPPS_SDK_v4[1].1.1 and I'm using "LDAPSearch_v3" object. The source code is:
var s = new ActiveXObject "LDAPSEARCH.LDAPSearchList");
s.port = ldapport;
s.server = ldapserver;
s.searchbase = ldapsearchbase;
s.AddReturnAttr("cn","Name","%1", 60);
s.AddReturnAttr("telephoneNumber", "Telephone", "%1", 40);
s.AddSortingAttr("cn, telephoneNumber", 1);
s.SetSearchOption(50, 60);
s.SearchByFirstName(first + "*");
Response.Write(s.XMLListOutput(currentStart, maxListSize))
Thank's
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide