r8757: Add debug messages so we can see what attributes and values are being
authorJeremy Allison <jra@samba.org>
Mon, 25 Jul 2005 18:28:39 +0000 (18:28 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:00:16 +0000 (11:00 -0500)
set/deleted/modified in an ldap query.
Jeremy.
(This used to be commit 813207205436ba4ebd2148285f937c05be8ffd22)

source3/lib/smbldap.c

index 4a8ef63806f58e132a135732c0d8d419796ec36a..d1f3f82cb561a2267b9a747f7035090bd720182d 100644 (file)
@@ -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);
        }
 }