]> git.ipfire.org Git - thirdparty/samba.git/commit
samba-tool: tidy up uncaught insufficient rights LdbError
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Sun, 3 Mar 2024 21:43:17 +0000 (10:43 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 4 Mar 2024 02:16:33 +0000 (02:16 +0000)
commitccfa16e2ec48da4ab601ca6b8b0ccfc77d625085
treebdc57682a68465234db00ad1ca8ed78a36a9f51e
parentee94d7085570da981b0772c141a76a899c7b0e66
samba-tool: tidy up uncaught insufficient rights LdbError

It is likely that many sub-commands will produce a traceback when people
go `-H ldap://server -Ubob` when they needed to go `-UAdministrator`.

We can catch these and show only the core message.

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