summaryrefslogtreecommitdiffstats
path: root/source/lib
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2005-07-25 18:28:39 +0000
committerJeremy Allison <jra@samba.org>2005-07-25 18:28:39 +0000
commit60c634edde4669222a660848fae15593efceb480 (patch)
tree74d7bf4329ef6eda9cb3e788b9493a59f71897cd /source/lib
parentef1047dcd0213942084d1e28bba5c554c6b3af90 (diff)
downloadsamba-60c634edde4669222a660848fae15593efceb480.tar.gz
samba-60c634edde4669222a660848fae15593efceb480.tar.xz
samba-60c634edde4669222a660848fae15593efceb480.zip
r8757: Add debug messages so we can see what attributes and values are being
set/deleted/modified in an ldap query. Jeremy.
Diffstat (limited to 'source/lib')
-rw-r--r--source/lib/smbldap.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/lib/smbldap.c b/source/lib/smbldap.c
index 4a8ef63806f..d1f3f82cb56 100644
--- a/source/lib/smbldap.c
+++ b/source/lib/smbldap.c
@@ -431,6 +431,7 @@ ATTRIB_MAP_ENTRY sidmap_attr_list[] = {
/* Believe it or not, but LDAP will deny a delete and
an add at the same time if the values are the
same... */
+ DEBUG(10,("smbldap_make_mod: attribute |%s| not changed.\n", attribute));
return;
}
@@ -446,6 +447,7 @@ ATTRIB_MAP_ENTRY sidmap_attr_list[] = {
* in Novell NDS. In NDS you have to first remove attribute and then
* you could add new value */
+ DEBUG(10,("smbldap_make_mod: deleting attribute |%s| values |%s|\n", attribute, oldval));
smbldap_set_mod(mods, LDAP_MOD_DELETE, attribute, oldval);
}
@@ -454,6 +456,7 @@ ATTRIB_MAP_ENTRY sidmap_attr_list[] = {
the old value, should it exist. */
if ((newval != NULL) && (strlen(newval) > 0)) {
+ DEBUG(10,("smbldap_make_mod: adding attribute |%s| value |%s|\n", attribute));
smbldap_set_mod(mods, LDAP_MOD_ADD, attribute, newval);
}
}