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 );
                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 (
 
 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..."
 RC=$?
 if test $RC != 0 ; then
        echo "ldapwhoami failed ($RC)!"
-#      kill -HUP $PID
-#      exit $RC
+       kill -HUP $PID
+       exit $RC
 fi
 
 kill -HUP $PID