]> git.sur5r.net Git - openldap/commitdiff
cleanup
authorPierangelo Masarati <ando@openldap.org>
Sat, 6 Mar 2004 16:47:58 +0000 (16:47 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 6 Mar 2004 16:47:58 +0000 (16:47 +0000)
servers/slapd/back-meta/bind.c

index 596386edb65f42745f2c0390559a5409c4931d2c..3eb5f0db6c5007ad69446be291526f7791d1c385 100644 (file)
@@ -281,7 +281,8 @@ meta_back_dobind( struct metaconn *lc, Operation *op )
        }
 
        for ( i = 0, lsc = lc->conns; !META_LAST(lsc); ++i, ++lsc ) {
-               int rc;
+               int             rc;
+               struct berval   cred = BER_BVC("");
 
                /*
                 * Not a candidate or something wrong with this target ...
@@ -328,7 +329,8 @@ meta_back_dobind( struct metaconn *lc, Operation *op )
                        lsc->cred.bv_len = 0;
                }
 
-               rc = ldap_bind_s( lsc->ld, 0, NULL, LDAP_AUTH_SIMPLE );
+               rc = ldap_sasl_bind_s(lsc->ld, "", LDAP_SASL_SIMPLE, &cred,
+                               op->o_ctrls, NULL, NULL);
                if ( rc != LDAP_SUCCESS ) {
                        
 #ifdef NEW_LOGGING