1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

samba-tool: no traceback for unauthenticated rootdse access

Under some circumstances rootdse returns an operations error with
"Operation unavailable without authentication" instead of insufficient
access rights.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andreas Schneider <asn@samba.org>

Autobuild-User(master): Douglas Bagnall <dbagnall@samba.org>
Autobuild-Date(master): Fri Dec 20 00:00:02 UTC 2024 on atb-devel-224
This commit is contained in:
Douglas Bagnall 2024-07-30 09:53:14 +12:00 committed by Douglas Bagnall
parent d8b7712c53
commit 5ad1a93107

View File

@ -245,6 +245,9 @@ class Command(object):
elif ldb_ecode == ERR_INSUFFICIENT_ACCESS_RIGHTS:
self._print_error("User has insufficient access rights")
force_traceback = False
elif ldb_emsg == "Operation unavailable without authentication":
self._print_error(ldb_emsg)
force_traceback = False
else:
self._print_error(message, ldb_emsg, 'ldb')