Finish proxy authzid control

This commit is contained in:
Kurt Zeilenga 2002-12-05 18:14:02 +00:00
parent 6730080081
commit db98e44d6a
2 changed files with 11 additions and 12 deletions

View File

@ -509,7 +509,7 @@ static int parseProxyAuthz (
dn.bv_len ? dn.bv_val : "(NULL)", 0 );
#endif
rc = slap_sasl_authorized( conn, &op->o_dn, &dn );
rc = slap_sasl_authorized( conn, &op->o_ndn, &dn );
if( rc ) {
ch_free( dn.bv_val );
@ -517,15 +517,14 @@ static int parseProxyAuthz (
return LDAP_PROXY_AUTHZ_FAILURE;
}
#if 0
ch_free( op->o_dn );
ch_free( op->o_ndn );
ch_free( op->o_dn.bv_val );
ch_free( op->o_ndn.bv_val );
op->o_dn = dn;
#endif
op->o_dn.bv_val = NULL;
op->o_ndn = dn;
ber_dupbv( &op->o_dn, &dn );
*text = "not (yet) implemented";
return LDAP_OTHER;
return LDAP_SUCCESS;
}
static int parseNoOp (

View File

@ -84,8 +84,8 @@ $LDAPWHOAMI -h $LOCALHOST -p $PORT -D "$MANAGERDN" -w $PASSWD \
RC=$?
if test $RC != 0 ; then
echo "ldapwhoami failed ($RC)!"
# kill -HUP $PID
# exit $RC
kill -HUP $PID
exit $RC
fi
echo "Testing ldapwhoami as ${MANAGERDN} for u:ursula..."
@ -95,8 +95,8 @@ $LDAPWHOAMI -h $LOCALHOST -p $PORT -D "$MANAGERDN" -w $PASSWD \
RC=$?
if test $RC != 0 ; then
echo "ldapwhoami failed ($RC)!"
# kill -HUP $PID
# exit $RC
kill -HUP $PID
exit $RC
fi
kill -HUP $PID