cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
541
Views
0
Helpful
2
Replies

LDAP Search

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?

2 Replies 2

stephan.steiner
Spotlight
Spotlight

It might be helpful if you mentioned what libraries you're using for the search.

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

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: