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
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')