summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/back-shr.c6
1 files 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);