From 1a2f3b5f2d7a5fe0caa4e40b09d18a7545e0969a Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Sun, 31 Jul 2005 05:23:56 +0000 Subject: [PATCH] Restore 2.2 SLAPI behaviour: target DN is not normalized (actually, in 2.2 the target DN was not even prettied, but this will do) --- servers/slapd/slapi/slapi_pblock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/servers/slapd/slapi/slapi_pblock.c b/servers/slapd/slapi/slapi_pblock.c index 791a3101d1..eafd4e2e19 100644 --- a/servers/slapd/slapi/slapi_pblock.c +++ b/servers/slapd/slapi/slapi_pblock.c @@ -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 ); -- 2.39.5