From: Tina M. <tin...@pi...> - 2002-04-29 12:16:22
|
On Mon, 29 Apr 2002, Chris Ridd wrote: > Tina Mueller <ti...@ze...> wrote: > > if i use ldapsearch directly i get: > > $ ldapsearch -v -h ldap.company -b 'c=DE' 'uid=some_uid' (or even 'sn=*') > > ldap_init( ldap.company, 389 ) > > filter pattern: uid=some_uid > > returning: ALL > > filter is: (uid=some_uid) > > ldap_search: No such object > > Either the base DN does not exist, or if it does, you are not allowed to > search it (maybe your server doesn't allow anonymous searches). > > Try reading the namingContexts attribute from the root DSE (an entry with > DN of a zero-length string) to find out what the server thinks it holds: > > ldapsearch -h ldap.company -b "" -s base "(objectclass=*)" namingContexts this was the right clue, many thanks! the command returned namingContexts=o=mycompany so my only problem was, that there is no dn for the country, but I tried all my examples with c=DE. now i'm getting results. i somehow thought there would be the dn "c" on all LDAP-servers. thanks again, tina -- http://www.tinita.de \ enter__| |__the___ _ _ ___ http://Movies.tinita.de/ \ / _` / _ \/ _ \ '_(_-< of http://PerlQuotes.tinita.de/ \ \ _,_\ __/\ __/_| /__/ perception |