From: Garming Sam Date: Sun, 18 Nov 2018 22:05:59 +0000 (+1300) Subject: sync_passwords: Remove dirsync cookie logging for continuous operation X-Git-Tag: tdb-1.3.17~725 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ac90c9faa783fc133229e7c163471d96440ff30e;p=thirdparty%2Fsamba.git sync_passwords: Remove dirsync cookie logging for continuous operation Under normal operation, users shouldn't see giant cookies in their logs. We still log the initial cookie retrieved from the cache database, which should still be helpful for identifying corrupt cookies. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13686 Signed-off-by: Garming Sam Reviewed-by: Andrew Bartlett --- diff --git a/python/samba/netcmd/user.py b/python/samba/netcmd/user.py index 447f1a345f6..b3af8fffd6a 100644 --- a/python/samba/netcmd/user.py +++ b/python/samba/netcmd/user.py @@ -2121,7 +2121,8 @@ samba-tool user syncpasswords --terminate \\ assert res_controls[0].oid == "1.2.840.113556.1.4.841" res_controls[0].critical = True self.dirsync_controls = [str(res_controls[0]), "extended_dn:1:0"] - log_msg("dirsyncControls: %r\n" % self.dirsync_controls) + # This cookie can be extremely long + # log_msg("dirsyncControls: %r\n" % self.dirsync_controls) modify_ldif = "dn: %s\n" % (self.cache_dn) modify_ldif += "changetype: modify\n"