[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: getting object by its DN

> Is there any simple ways to get LDAP object by its DN in OpenLDAP SDK?
> ldap_search() doesn't recognize filter like: dn=cn=sombody,ou=dept1,o=mycomp
> I know, that by splitting DN into cn and rest I can make search using rest of DN as base, but is that the only way?
> What is the cannonical approach?

use a search with scope=base, basedn=DN and a search filter of

Norbert Klasen
DFN Directory Services                           tel: +49 7071 29 70335
ZDV, Universität Tübingen                        fax: +49 7071 29 5912
D-72074 Tübingen                    norbert.klasen@zdv.uni-tuebingen.de
Germany                                     http://www.directory.dfn.de