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

Re: how can I know if I am authenticated



> Hello all
>
> I use the openldap sdk, and in my software users can authenticate
> themselves on an ldapv3 directory server
> I noticed today that on iPlanet directory the ldap_bind function return
> LDAP_SUCCESS if you provide a dn and an empty password
> I guess that the user is actually anonymous after the bind (probably the
>  "non-auhenticated" mode, disabled in openldap...)
> You can also create a user with no password, and so the user is really
> authenticated in this case (I think)
>
> So my question is : what can I do in order to know if I am anonymous or
> authenticated ?
>
> thank you very much
>
> François Beretti

LDAP_WHOAMI extended operation; see
draft-zeilenga-ldap-au-thzid-xx.txt
and libraries/libldap/whoami.c, or
clients/tools/ldapwhoami.c for a code
example.

The server must support it, of course.

p.

-- 
Pierangelo Masarati
mailto:pierangelo.masarati@sys-net.it