int candidate
)
{
- struct berval mdn = { 0, NULL };
- int rc;
+ struct berval mdn = { 0, NULL };
+ int rc;
+ ber_int_t msgid;
/*
* Rewrite the bind dn if needed
}
}
- rc = ldap_bind_s( lc->conns[ candidate ].ld, mdn.bv_val, cred->bv_val, method );
+ rc = ldap_sasl_bind(lc->conns[ candidate ].ld, mdn.bv_val,
+ LDAP_SASL_SIMPLE, cred, op->o_ctrls, NULL, &msgid);
if ( rc != LDAP_SUCCESS ) {
rc = ldap_back_map_result( rc );
} else {
{
struct metasingleconn *lc = params;
- return ldap_bind_s( ld, lc->bound_dn.bv_val, lc->cred.bv_val, LDAP_AUTH_SIMPLE );
+ return ldap_bind_s( ld, lc->bound_dn.bv_val, lc->cred.bv_val,
+ LDAP_AUTH_SIMPLE );
}
/*