Author: jra Date: 2005-07-25 18:28:36 +0000 (Mon, 25 Jul 2005) New Revision: 8756
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=8756 Log: Add debug messages so we can see what attributes and values are being set/deleted/modified in an ldap query. Jeremy. Modified: trunk/source/lib/smbldap.c Changeset: Modified: trunk/source/lib/smbldap.c =================================================================== --- trunk/source/lib/smbldap.c 2005-07-25 15:04:25 UTC (rev 8755) +++ trunk/source/lib/smbldap.c 2005-07-25 18:28:36 UTC (rev 8756) @@ -440,6 +440,7 @@ /* 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; } @@ -455,6 +456,7 @@ * 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); } @@ -463,6 +465,7 @@ 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); } }