2014-11-26 10:58 GMT+01:00 Biernath, Jutta <[email protected]>:

>  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:
>
>
>
>
>
>
>
> >> 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?
>


Try to remove  the context (o=fu-berlin,c=de) :


var destDn = ldap.search("ou=People,ou=biernathtest,ou=grouper,ou=groups",
"(cn=" + uid + ")");







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


You need a graphical environement to open the 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