From c324d34f6c3495a11c4a049c99dc1ceee23f61bd Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Wed, 4 Jan 2012 18:57:01 -0500 Subject: - use the NDN instead of the target DN as the map key --- src/back-shr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/back-shr.c b/src/back-shr.c index 7a2eadf..180fb33 100644 --- a/src/back-shr.c +++ b/src/back-shr.c @@ -1372,8 +1372,8 @@ backend_shr_add_cb(Slapi_PBlock *pb) /* The plugin was not actually started. */ return 0; } - slapi_pblock_get(pb, SLAPI_ADD_TARGET, &cbdata.ndn); slapi_pblock_get(pb, SLAPI_ENTRY_POST_OP, &cbdata.e); + cbdata.ndn = slapi_entry_get_ndn(cbdata.e); cbdata.pb = pb; slapi_log_error(SLAPI_LOG_PLUGIN, cbdata.state->plugin_desc->spd_id, "added \"%s\"\n", cbdata.ndn); @@ -1479,10 +1479,10 @@ backend_shr_modify_cb(Slapi_PBlock *pb) /* The plugin was not actually started. */ return 0; } - slapi_pblock_get(pb, SLAPI_MODIFY_TARGET, &cbdata.ndn); slapi_pblock_get(pb, SLAPI_MODIFY_MODS, &cbdata.mods); slapi_pblock_get(pb, SLAPI_ENTRY_PRE_OP, &cbdata.e_pre); slapi_pblock_get(pb, SLAPI_ENTRY_POST_OP, &cbdata.e_post); + cbdata.ndn = slapi_entry_get_ndn(cbdata.e_pre); cbdata.pb = pb; slapi_log_error(SLAPI_LOG_PLUGIN, cbdata.state->plugin_desc->spd_id, "modified \"%s\"\n", cbdata.ndn); @@ -1714,8 +1714,8 @@ backend_shr_delete_cb(Slapi_PBlock *pb) /* The plugin was not actually started. */ return 0; } - slapi_pblock_get(pb, SLAPI_DELETE_TARGET, &cbdata.ndn); slapi_pblock_get(pb, SLAPI_ENTRY_PRE_OP, &cbdata.e); + cbdata.ndn = slapi_entry_get_ndn(cbdata.e); cbdata.pb = pb; slapi_log_error(SLAPI_LOG_PLUGIN, cbdata.state->plugin_desc->spd_id, "deleted \"%s\"\n", cbdata.ndn); -- cgit