samba-tool: Use samba.glue.get_burnt_cmdline rather than regex
authorAndrew Bartlett <abartlet@samba.org>
Fri, 21 Jul 2023 01:30:39 +0000 (13:30 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 21 Jul 2023 05:23:32 +0000 (05:23 +0000)
commita53ebc288f47329c997d52325eeeb5e91ce43b75
tree602e647e959f9b36d9fed38c6152d7bedce15579
parent3f9e455898554b726bf1689f743b2d9cb6b59537
samba-tool: Use samba.glue.get_burnt_cmdline rather than regex

This use avoids having two different methods to match on command-line
passwords.  We already have a dependency on the setproctitle python
module, and this does not change as the (C) libbsd setproctitle()
can't be run from within a python module.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15289

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
python/samba/getopt.py
python/samba/tests/cred_opt.py