Lines Matching defs:dn
40 static int simple_bind_nolock( LDAP *ld, const char *dn, const char *passwd,
42 static int simple_bindifnot_s( LDAP *ld, const char *dn, const char *passwd );
45 * ldap_simple_bind - bind to the ldap server. The dn and
56 ldap_simple_bind( LDAP *ld, const char *dn, const char *passwd )
66 rc = simple_bind_nolock( ld, dn, passwd, 1 );
73 simple_bind_nolock( LDAP *ld, const char *dn, const char *passwd,
95 if ( dn == NULL )
96 dn = "";
107 rc = (ld->ld_cache_bind)( ld, msgid, LDAP_REQ_BIND, dn, &bv,
124 NSLDAPI_LDAP_VERSION( ld ), dn, LDAP_AUTH_SIMPLE, passwd ) == -1 ) {
137 (char *)dn, ber ));
143 * authentication. The dn and password of the entry to which to bind are
153 ldap_simple_bind_s( LDAP *ld, const char *dn, const char *passwd )
162 return( simple_bindifnot_s( ld, dn, passwd ));
165 if ( (msgid = ldap_simple_bind( ld, dn, passwd )) == -1 )
182 simple_bindifnot_s( LDAP *ld, const char *dn, const char *passwd )
194 if ( dn == NULL ) {
195 dn = ""; /* to make comparisons simpler */
202 && 0 == strcmp( dn, binddn )) {
237 if ( (msgid = simple_bind_nolock( ld, dn, passwd, 0 )) == -1 ) {