cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
354
Views
0
Helpful
1
Replies

Help for LDAP error code!!!

michael9102
Level 1
Level 1

Hi. Friends. I am just new to JTAPI. Currently, I try to get the controlled phones from a user object. However, I always get an error from the LDAP provider class. I don't know what to do now. Here is my code.

LDAPProvider ldapProv = new LDAPProvider(callmanager, username, password, 8404, "");

I just follow the document of LDAPProvider class. But in the function signature, I am not sure about the fifth parameter rootDn, so I just use "". Does anybody know what it means?? Thank you for your help very much. Have a nice weekend.

public LDAPProvider(java.lang.String ldapServer,

java.lang.String ldapUserId,

java.lang.String ldapPassword,

int ldapPort,

java.lang.String rootDn)

1 Reply 1

michael9102
Level 1
Level 1

The details of the error is

Problem looking up name:javax.naming.CommunicationException: [LDAP: error code 2

- Protocol error]