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

Re: getting dn from ldap_search_ext_s

"Kevin J. Menard, Jr." wrote:
> Hey openldap-software,
>   Ok, what's the best way to just get the dn from a search?
>   Pass LDAP_NO_ATTRS or "1.1" as the fifth argument, 

this; then you need to call 


to get the entry, and


to get a copy of the dn. Remember to free it.

> or build a character
>   array ptr like char *attributes[] = {"dn", NULL}; ?

This doesn't work: "dn" is not a regular attribute.


Dr. Pierangelo Masarati    mailto:ando@sys-net.it
Developer, SysNet s.n.c.   http://www.sys-net.it