summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorGarming Sam <garming@catalyst.net.nz>2018-11-19 11:05:59 +1300
committerAndrew Bartlett <abartlet@samba.org>2018-11-20 22:14:16 +0100
commitac90c9faa783fc133229e7c163471d96440ff30e (patch)
tree150e02cebbdc105c3baf5a04ffc78e7055f4f02e /python
parentb7a0d3b110697923a31e353905d3b1bd9385ea9b (diff)
downloadsamba-ac90c9faa783fc133229e7c163471d96440ff30e.tar.gz
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 <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'python')
-rw-r--r--python/samba/netcmd/user.py3
1 files changed, 2 insertions, 1 deletions
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"