Commit db98e44d authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Finish proxy authzid control

parent 67300800
......@@ -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 (
......
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment