]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
libcli/auth: let NTLMv2_RESPONSE_verify_netlogon_creds() check RODC callers check...
authorStefan Metzmacher <metze@samba.org>
Fri, 14 Feb 2025 22:22:45 +0000 (23:22 +0100)
committerRalph Boehme <slow@samba.org>
Sat, 22 Feb 2025 16:00:36 +0000 (16:00 +0000)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
libcli/auth/smbencrypt.c

index ed9c52e0ede1eaa6ab6616a2726ed21a2295d4f3..03195855e926d437f7d5847b06b20e75927aee0b 100644 (file)
@@ -1341,10 +1341,18 @@ NTSTATUS NTLMv2_RESPONSE_verify_netlogon_creds(const char *account_name,
 
        case SEC_CHAN_RODC:
                /*
-                * TODO:
                 * MS-NRPC 3.5.4.5.1.2 RODC server cachability validation
+                *
+                * The caller must check based on
+                * the computer name!
                 */
-               break;
+               if (_computer_name == NULL) {
+                       TALLOC_FREE(frame);
+                       return NT_STATUS_INTERNAL_ERROR;
+               }
+
+               TALLOC_FREE(frame);
+               return NT_STATUS_OK;
        }
 
        TALLOC_FREE(frame);