[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: getting dn from ldap_search_ext_s
"Kevin J. Menard, Jr." wrote:
>
> Hey Pierangelo,
>
> Thursday, August 09, 2001, 3:17:27 AM, you wrote:
>
> PM> "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,
>
> PM> this
>
> >> or build a character
> >> array ptr like char *attributes[] = {"dn", NULL}; ?
>
> PM> This doesn't work: "dn" is not a regular attribute.
>
> Argh. I seem to be finding the exact opposite. I segfault when I use
> LDAP_NO_ATTRS. Here's the gdb bt output:
Sorry for the bad hint. The LDAP_NO_ATTRS must be
in a null-terminated string array, namely
char *attrs[] = { LDAP_NO_ATTRS, NULL };
Pierangelo.
--
Dr. Pierangelo Masarati mailto:ando@sys-net.it
Developer, SysNet s.n.c. http://www.sys-net.it