Bug 15967 - samba-tool is considering log level from smb.conf and ignore -d|--debuglevel on cmdline
Summary: samba-tool is considering log level from smb.conf and ignore -d|--debuglevel ...
Status: NEW
Alias: None
Product: Samba 4.1 and newer
Classification: Unclassified
Component: Tools (show other bugs)
Version: 4.22.2
Hardware: All All
: P5 normal (vote)
Target Milestone: ---
Assignee: Samba QA Contact
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-12-20 01:35 UTC by Frantisek Hanzlik
Modified: 2025-12-20 01:35 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Frantisek Hanzlik 2025-12-20 01:35:00 UTC
this applies at least to "samba-tool gpo backup ..." and "samba-tool domain backup" - even if I use any from commands:

samba-tool domain backup -d 0 --offline --targetdir=/someDir
samba-tool domain backup --debuglevel=0 --offline --targetdir=/someDir
samba-tool gpo backup -d 0 --tmpdir=/someDir
samba-tool gpo backup --debuglevel=0 --tmpdir=/someDir

when I have "log level = 2" (or higher) in Samba /etc/smb.conf, then samba-tool  ignore -d|--debuglevel= cmdline switch and produce unvanted log/debug output.

I'm using Samba-4.22.2 on Debian 12 x86_64: # samba-tool --version
samba-tool: missing subcommand

4.22.2-Debian-4.22.2+dfsg-1~bpo12+1

(message "samba-tool: missing subcommand" is in this case weird too)

Thanks, Franta Hanzlik