[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
ldap_simple_bind_s calls
- To: openldap-software@OpenLDAP.org
- Subject: ldap_simple_bind_s calls
- From: Jason Gerfen <jason.gerfen@scl.utah.edu>
- Date: Tue, 03 Aug 2004 09:45:08 -0600
- Organization: Student Computing Marriott Library University of Utah
- User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031013 Thunderbird/0.3
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