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

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