1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-27 05:49:32 +03:00

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>
(cherry picked from commit ac90c9faa7)
This commit is contained in:
Garming Sam
2018-11-19 11:05:59 +13:00
committed by Karolin Seeger
parent 517df6d3da
commit f4105adc28

View File

@ -2104,7 +2104,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"