Lines Matching refs:dn
38 static int simple_bind_nolock( LDAP *ld, const char *dn, const char *passwd,
40 static int simple_bindifnot_s( LDAP *ld, const char *dn, const char *passwd );
54 ldap_simple_bind( LDAP *ld, const char *dn, const char *passwd ) in ldap_simple_bind() argument
64 rc = simple_bind_nolock( ld, dn, passwd, 1 ); in ldap_simple_bind()
71 simple_bind_nolock( LDAP *ld, const char *dn, const char *passwd, in simple_bind_nolock() argument
93 if ( dn == NULL ) in simple_bind_nolock()
94 dn = ""; in simple_bind_nolock()
105 rc = (ld->ld_cache_bind)( ld, msgid, LDAP_REQ_BIND, dn, &bv, in simple_bind_nolock()
122 NSLDAPI_LDAP_VERSION( ld ), dn, LDAP_AUTH_SIMPLE, passwd ) == -1 ) { in simple_bind_nolock()
135 (char *)dn, ber )); in simple_bind_nolock()
151 ldap_simple_bind_s( LDAP *ld, const char *dn, const char *passwd ) in ldap_simple_bind_s() argument
160 return( simple_bindifnot_s( ld, dn, passwd )); in ldap_simple_bind_s()
163 if ( (msgid = ldap_simple_bind( ld, dn, passwd )) == -1 ) in ldap_simple_bind_s()
180 simple_bindifnot_s( LDAP *ld, const char *dn, const char *passwd ) in simple_bindifnot_s() argument
192 if ( dn == NULL ) { in simple_bindifnot_s()
193 dn = ""; /* to make comparisons simpler */ in simple_bindifnot_s()
200 && 0 == strcmp( dn, binddn )) { in simple_bindifnot_s()
235 if ( (msgid = simple_bind_nolock( ld, dn, passwd, 0 )) == -1 ) { in simple_bindifnot_s()