]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
winbind: Log NOT_IMPLEMENTED as debug
authorDavid Mulder <dmulder@samba.org>
Mon, 11 Mar 2024 13:36:58 +0000 (07:36 -0600)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 27 Mar 2024 02:15:31 +0000 (02:15 +0000)
This message happens frequently when running a
PDC/NT4 mode w/out winbind.

Signed-off-by: David Mulder <dmulder@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Wed Mar 27 02:15:31 UTC 2024 on atb-devel-224

source3/auth/auth_winbind.c

index 46db4f21f7ac61bd3b1e72703878d16029548cc1..ee0704f238bcb9fa9968a21bc63b593f252c55c9 100644 (file)
@@ -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;