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

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

LDAPSearch problem

Hi,

I installed CiscoIPPS_SDK_v4[1].1.1 and used LDAPSearch COM object in my custom code to browse LDAP directory. And it works fine with CallManager 3.2. But I can't get it to work with CallManager 4.1.

Not sure that problem is in COM object since I can browse LDAP on CM 3.2 with LDAPBrowser (www.ldapbrowser.com), but when I try the same on CM 4.1 I can connect and get down to users, but when I want to see user attributes I get [ERROR 32] No such object.

As I said, I can see sn, givenName, telephonNumber, mail… with CM 3.2, but not with CM 4.1.

Any idea?

Are there any settings with LDAP directory I should know about?

Roman

3 REPLIES

Re: LDAPSearch problem

Hi,

how do you call the object?

did you try without putting the version in the call;

var s = new ActiveXObject("LDAPSEARCH.LDAPSearchList");

HTH

New Member

Re: LDAPSearch problem

Version?

I have reference to the LDAPSEARCHLib COM object.

And the code is in C#:

LDAPSEARCHLib.LDAPSearchList S = new LDAPSEARCHLib.LDAPSearchListClass();

S.Server = "my server IP";

S.Port = 8404;

S.SearchBase = "ou=users, o=cisco.com";

S.AddReturnAttr("givenName,sn","Name","%1,%2", 20);

S.SearchByPhoneNumber(textBox2.Text);

string xml_output = S.XMLListOutput(1, 1);

XmlDocument xmldoc = new XmlDocument();

xmldoc.LoadXml(xml_output);

XmlNode nameNode = xmldoc.SelectSingleNode(@"//Name");

textBox1.Text = nameNode.InnerText;

on the form in textBox2 I put telephone number and then in the textBox1 I get name and sure name of the person connected to that telephone number.

Code works with CM 3.2, but not with CM 4.1.

New Member

Re: LDAPSearch problem

I solved problem.

S.AuthName = "cn=Directory Manager, o=cisco.com";

S.AuthPasswd = "cisco";

It works with this.

141
Views
0
Helpful
3
Replies