Hi,

I am running into an connection error when using the LDAPSearch function
from the NOVLLIBLDAP-JS ECMAScript object (package version 2.0.0)
I put all parameters of the function to the trace and for me they are
looking good.
An ldapsearch from the serverconsole is also possible using the
host,port,user and password!

[09/01/16 14:35:11.632]:TK-LDAP ST:LDAP Search Settings:
Host: 10.10.0.162
Port: 389
User: uid=IDM,cn=Administrators, cn=8770 administration,o=nmc
Password: XXXXXXX
Base: o=TEST,o=directoryRoot
Scope: one
Filter:
"(&(objectclass=inetOrgPerson)(employeenumber=DE00 7150)(employeetype=primary))"

[09/01/16 14:35:11.632]:TK-LDAP ST: Action:
do-set-local-variable("lv.primaryTelefoneNumber",scope="policy" ,arg-node-set(token-xpath("es:ldapSearch($lv.LDAP.host,$lv.LDAP.port,$ lv.LDAP.user,directory,$lv.LDAP.context,$lv.LDAP.s cope,$lv.LDAP.filter.primary,$lv.LDAP.attrList)")) ).
[09/01/16 14:35:11.633]:TK-LDAP ST:
arg-node-set(token-xpath("es:ldapSearch($lv.LDAP.host,$lv.LDAP.port,$ lv.LDAP.user,directory,$lv.LDAP.context,$lv.LDAP.s cope,$lv.LDAP.filter.primary,$lv.LDAP.attrList)"))
[09/01/16 14:35:11.633]:TK-LDAP ST:
token-xpath("es:ldapSearch($lv.LDAP.host,$lv.LDAP.port,$ lv.LDAP.user,directory,$lv.LDAP.context,$lv.LDAP.s cope,$lv.LDAP.filter.primary,$lv.LDAP.attrList)")
[09/01/16 14:35:11.655]:TK-LDAP ST: Token Value: {<status>
@level = "error"}.
[09/01/16 14:35:11.655]:TK-LDAP ST: Arg Value: {<status> @level
= "error"}.
[09/01/16 14:35:11.655]:TK-LDAP ST: Action:
do-trace-message(level="3","LDAP Result:
"+token-xml-serialize(token-local-variable("lv.primaryTelefoneNumber"))).
[09/01/16 14:35:11.656]:TK-LDAP ST: arg-string("LDAP Result:
"+token-xml-serialize(token-local-variable("lv.primaryTelefoneNumber")))
[09/01/16 14:35:11.656]:TK-LDAP ST: token-text("LDAP Result:
")
[09/01/16 14:35:11.656]:TK-LDAP ST:
token-xml-serialize(token-local-variable("lv.primaryTelefoneNumber"))
[09/01/16 14:35:11.656]:TK-LDAP ST:
token-xml-serialize(token-local-variable("lv.primaryTelefoneNumber"))
[09/01/16 14:35:11.656]:TK-LDAP ST:
token-local-variable("lv.primaryTelefoneNumber")
[09/01/16 14:35:11.656]:TK-LDAP ST: Token Value: {<status>
@level = "error"}.
[09/01/16 14:35:11.657]:TK-LDAP ST: Arg Value: {<status>
@level = "error"}.
[09/01/16 14:35:11.657]:TK-LDAP ST: Token Value: "<status
level="error">JavaException: com.novell.ldap.LDAPException: Connect
Error</status>".
[09/01/16 14:35:11.657]:TK-LDAP ST: Arg Value: "LDAP Result:
<status level="error">JavaException: com.novell.ldap.LDAPException:
Connect Error</status>".
[09/01/16 14:35:11.657]:TK-LDAP ST:LDAP Result: <status
level="error">JavaException: com.novell.ldap.LDAPException: Connect
Error</status>
[09/01/16 14:35:11.658]:TK-LDAP ST:Policy returned:
[09/01/16 14:35:11.658]:TK-LDAP ST:

Can anybody provide some hints to solve the problem?


--
tschloesser
------------------------------------------------------------------------
tschloesser's Profile: https://forums.netiq.com/member.php?userid=3232
View this thread: https://forums.netiq.com/showthread.php?t=56525