Hello, Marcin, hello Clément,

with your help (thanks again!) I could figure out where the problem is.

It is this line (your sample here):
var destDn = ldap.search("ou=users,ou=demo", "(sAMAccountName=" + uid + ")");

In my case it is
var destDn = 
ldap.search("ou=People,ou=biernathtest,ou=grouper,ou=groups,o=fu-berlin,c=de", 
"(cn=" + uid + ")");
whicht gives the javax.naming.NameNotFoundException: [LDAP: error code 32 - No 
Such Object] exception; the uid however was correct.

Trying
var destDn = 
ldap.search("ou=People,ou=biernathtest,ou=grouper,ou=groups,o=fu-berlin,c=de", 
"(cn=biernath)");
gives the same exception.

But:

Opening my Softerra LDAP Administrator and copying and pasting exactly these 
strings into the search mask however shows a result:

[cid:[email protected]]


>> there IS an entry and it can also be found by a search!!!


What is wrong with the ldap.search-function? What must I do to make it work?

BTW: Rhino Debugger did not work. Maybe because I use Debian instead of Windows?


Greetings,

Jutta


--------------------
Jutta Biernath
Freie Universität Berlin
Zentraleinrichtung für Datenverarbeitung (ZEDAT)
Identity & Customer Management, FUDIS
Fabeckstr. 32
14195 Berlin
Tel. +49 30 838-75090
Fax +49 30 838-475090

Von: Clément OUDOT [mailto:[email protected]]
Gesendet: Dienstag, 25. November 2014 16:59
An: Marcin Baluta
Cc: Biernath, Jutta; lsc-userslsc-users
Betreff: Re: [lsc-users] Groups sync



2014-11-25 16:50 GMT+01:00 Marcin Baluta 
<[email protected]<mailto:[email protected]>>:
Maybe you could try this:

java.lang.System.out.println(variable)

Yes, and you can also run the Rhino debugger, see : 
http://lsc-project.org/wiki/documentation/latest/scripting/start#debugger

Clément.
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org

lsc-users mailing list
[email protected]
http://lists.lsc-project.org/listinfo/lsc-users

Reply via email to