From: David Mulder Date: Mon, 11 Mar 2024 13:36:58 +0000 (-0600) Subject: winbind: Log NOT_IMPLEMENTED as debug X-Git-Tag: tdb-1.4.11~1367 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=9550d37f2f9170c183d5a5e8f666cbbf21c5f444;p=thirdparty%2Fsamba.git winbind: Log NOT_IMPLEMENTED as debug This message happens frequently when running a PDC/NT4 mode w/out winbind. Signed-off-by: David Mulder Reviewed-by: Andrew Bartlett Autobuild-User(master): Andrew Bartlett Autobuild-Date(master): Wed Mar 27 02:15:31 UTC 2024 on atb-devel-224 --- diff --git a/source3/auth/auth_winbind.c b/source3/auth/auth_winbind.c index 46db4f21f7a..ee0704f238b 100644 --- a/source3/auth/auth_winbind.c +++ b/source3/auth/auth_winbind.c @@ -124,7 +124,11 @@ static NTSTATUS check_winbind_security(const struct auth_context *auth_context, } status = pdb_enum_trusted_domains(talloc_tos(), &num_domains, &domains); - if (!NT_STATUS_IS_OK(status)) { + if (NT_STATUS_EQUAL(status, NT_STATUS_NOT_IMPLEMENTED)) { + DBG_DEBUG("pdb_enum_trusted_domains() not implemented " + "for this passdb backend\n"); + return status; + } else if (!NT_STATUS_IS_OK(status)) { DBG_ERR("pdb_enum_trusted_domains() failed - %s\n", nt_errstr(status)); return status;