From: Pierangelo Masarati Date: Sat, 6 Mar 2004 16:47:58 +0000 (+0000) Subject: cleanup X-Git-Tag: OPENLDAP_REL_ENG_2_2_BP~354 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=29a51624830855cc6df43b3325dff5ae284a056f;p=openldap cleanup --- diff --git a/servers/slapd/back-meta/bind.c b/servers/slapd/back-meta/bind.c index 596386edb6..3eb5f0db6c 100644 --- a/servers/slapd/back-meta/bind.c +++ b/servers/slapd/back-meta/bind.c @@ -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