]> git.sur5r.net Git - openldap/commitdiff
Restore 2.2 SLAPI behaviour: target DN is not normalized
authorLuke Howard <lukeh@openldap.org>
Sun, 31 Jul 2005 05:23:56 +0000 (05:23 +0000)
committerLuke Howard <lukeh@openldap.org>
Sun, 31 Jul 2005 05:23:56 +0000 (05:23 +0000)
(actually, in 2.2 the target DN was not even prettied, but this
will do)

servers/slapd/slapi/slapi_pblock.c

index 791a3101d10451449c76552bfa9e2ecad758b7c1..eafd4e2e19ea5ea44669a1204cd886b319615454 100644 (file)
@@ -467,7 +467,7 @@ pblock_get( Slapi_PBlock *pb, int param, void **value )
                break;
        case SLAPI_REQUESTOR_DN:
                PBLOCK_ASSERT_OP( pb, 0 );
-               *((char **)value) = pb->pb_op->o_ndn.bv_val;
+               *((char **)value) = pb->pb_op->o_dn.bv_val;
                break;
        case SLAPI_MANAGEDSAIT:
                PBLOCK_ASSERT_OP( pb, 0 );
@@ -500,7 +500,7 @@ pblock_get( Slapi_PBlock *pb, int param, void **value )
                break;
        case SLAPI_TARGET_DN:
                PBLOCK_ASSERT_OP( pb, 0 );
-               *((char **)value) = pb->pb_op->o_req_ndn.bv_val;
+               *((char **)value) = pb->pb_op->o_req_dn.bv_val;
                break;
        case SLAPI_REQUESTOR_ISROOT:
                *((int *)value) = pblock_be_call( pb, be_isroot );