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

ldap_bind error



hi all,
i have trouble with ldap_bind is someone could tell me if the following
is right...
ldap_bind_s send me back LDAP_SUCCESS even if the password is wrong...


 if ((ld = ldap_open("193.50.240.2",LDAP_PORT))== NULL)
    {
      ldap_perror("ldap_init");
      return( 1 );
    }
  printf("connnexion ok\n");

  if (ldap_bind_s( ld, dn, password, LDAP_AUTH_SIMPLE ) !=LDAP_SUCCESS)
    {
      ldap_perror( ld, "bind" );
      ldap_unbind( ld );
      return( 1 );
}


begin:vcard 
n:verdon;pierre-yves
x-mozilla-html:FALSE
org:iut vannes
adr:;;;;;;
version:2.1
email;internet:verdon@iu-vannes.fr
title:assistant ingénieur
x-mozilla-cpt:;0
fn:pierre-yves verdon
end:vcard