From d11214cb8528ab0a9e5f1d462cad7a5fbe47aa2b Mon Sep 17 00:00:00 2001 From: Zhihao Ma Date: Fri, 20 Dec 2024 10:42:06 -0500 Subject: [PATCH] adds another common error code. --- bin/pyntlm_auth/rpc.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/pyntlm_auth/rpc.py b/bin/pyntlm_auth/rpc.py index 04f42794e56..d149987bb73 100644 --- a/bin/pyntlm_auth/rpc.py +++ b/bin/pyntlm_auth/rpc.py @@ -102,6 +102,8 @@ def init_secure_connection(): if error_code == 0xc0000022: log.warning("Are you using a wrong password for a machine account?") log.warning("If you are in a cluster, did you re-used the machine account and reset with another password?") + if error_code == 0xc0000122: + log.warning(f"This is usually due to a incorrect AD FQDN. The current AD FQDN you are using is: {server_name}") log.debug("Parameter used in establish secure channel are:") log.debug(f" lp.netbios_name: {netbios_name}")