Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Attention: The Community will be in read-only mode on 12/14/2017 from 12:00 am pacific to 11:30 am.

During this time you will only be able to see content. Other interactions such as posting, replying to questions, or marking content as helpful will be disabled for few hours.

We apologize for the inconvenience while we perform important updates to the Community.

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

Re: LDAP Search

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

Re: LDAP 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

343
Views
0
Helpful
2
Replies
CreatePlease to create content