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

ldap_simple_bind_s calls



Upon looking at the man pages for ldap_simple_bind_s, because it is a synchronous bind type I should be checking for the ldap_error() (which would be LDAP_SUCCESS, and error for everything else) like the following example? Please correct me if I am wrong...

if((ldap_simple_bind_s(ld, uid=username,ou=user,dc=domain,dc=com, secret)) != LDAP_SUCCESS) {
_pam_log(LOG_ERR, "Couldn't bind");
return 0;
}


--
Jason Gerfen
jason.Gerfen@scl.utah.edu

"...Sometimes I just yell at myself. And it
makes me sad, sometimes I make myself cry..."
			~ My nephew Dawsyn