smbclient command is not logging to the log.smbclient file. The command is issued with the "-l" flag with a directory location set to "/var/log/samba" # smbclient -l /var/log/samba //samba-server/share -d10 - This Does not dump logs inside /var/log/samba/log.smbclient Issue not present in :samba-3.6.23 Issue present in: samba-4.9.1 onwards How reproducible? always
There is significant change in introduction of debug_backends between samba-3.6.23 and samba-4.9.1 (gdb) ptype debug_backends type = struct debug_backend { const char *name; int log_level; int new_log_level; void (*reload)(_Bool, _Bool, const char *, char *); void (*log)(int, const char *, const char *); char *option; } [5] (gdb) p debug_backends[0] $8 = { name = <> "file", log_level = -1, new_log_level = -1, reload = 0x0, log = <> <debug_file_log>, option = 0x0 }
https://gitlab.com/samba-team/samba/-/merge_requests/1276
Created attachment 15957 [details] patch for 4.12 and 4.11
Karolin, please apply to the relevant branches. Btw. is there still a 4.10 maintenance release planned? I have some bugs which should be fixed in 4.10 too, this included.
(In reply to Andreas Schneider from comment #4) Hi Andreas, we can schedule an additional 4.10 bugfix release if needed. Please let me know which other issues should be addressed. Thanks! Cheers, Karo
Pushed to autobuild-v4-12-test. Patchset does not apply on v4-11-test, re-assigning to Andreas.
Created attachment 15973 [details] additional patch for 4.11 Cherry-picked patches from v4-12-test.
It isn't an additional patch for 4.11 it the patch generated from the v4-11-test branch. Copy and Paste error in the attachement description.
Created attachment 15974 [details] patch for 4.11
Comment on attachment 15974 [details] patch for 4.11 LGTM
This patch seems to introduce a regression resulting in broken auth_audit logging. When I revert the change it works again. Looking...
Fixes for bug 14426 that tracks the regression introduced by this commit are now available.
(In reply to Andreas Schneider from comment #9) Pushed to autobuild-v4-11-test.
Pushed to v4-11-test. Closing out bug report. Thanks!