summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/back-nis.c7
-rw-r--r--src/back-sch.c12
2 files changed, 18 insertions, 1 deletions
diff --git a/src/back-nis.c b/src/back-nis.c
index 906f25a..0588795 100644
--- a/src/back-nis.c
+++ b/src/back-nis.c
@@ -334,6 +334,13 @@ backend_set_entry(Slapi_Entry *e, struct backend_set_data *data)
plugin_id = data->common.state->plugin_desc->spd_id;
/* Pull out the NDN of this entry. */
ndn = slapi_entry_get_ndn(e);
+ if (ndn != NULL) {
+ slapi_log_error(SLAPI_LOG_PLUGIN, plugin_id,
+ "examining input entry \"%s\"\n", ndn);
+ } else {
+ slapi_log_error(SLAPI_LOG_PLUGIN, plugin_id,
+ "examining unnamed input entry(?)\n");
+ }
/* Pull out the keys and value for the entry. */
all_keys = backend_gather_data(data->common.state, e,
data->common.group,
diff --git a/src/back-sch.c b/src/back-sch.c
index a6602c4..c17a353 100644
--- a/src/back-sch.c
+++ b/src/back-sch.c
@@ -277,6 +277,13 @@ backend_set_entry(Slapi_Entry *e, struct backend_set_data *data)
plugin_id = data->common.state->plugin_desc->spd_id;
e_dn = slapi_entry_get_sdn(e);
ndn = slapi_entry_get_ndn(e);
+ if (ndn != NULL) {
+ slapi_log_error(SLAPI_LOG_PLUGIN, plugin_id,
+ "examining input entry \"%s\"\n", ndn);
+ } else {
+ slapi_log_error(SLAPI_LOG_PLUGIN, plugin_id,
+ "examining unnamed input entry(?)\n");
+ }
/* Generate the RDN for the entry. */
rdn = format_get_data(data->common.state, e,
data->common.group, data->common.set,
@@ -358,7 +365,10 @@ backend_set_entry(Slapi_Entry *e, struct backend_set_data *data)
value[k] = NULL;
if ((k > 0) && (attr != NULL) && (len > 0)) {
/* We assumed attribute=value when we
- * saved this particular value. */
+ * saved this particular value.
+ * Pull the attribute name out
+ * of the last attribute=value
+ * pair that we examined. */
val = memchr(attr, '=', len);
if (val != NULL) {
*val = '\0';