s3-auth: Add MIT return code for KDC not reachable
authorAndreas Schneider <asn@samba.org>
Tue, 5 May 2015 14:53:24 +0000 (16:53 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 30 Jul 2015 08:24:26 +0000 (10:24 +0200)
This fixes authentication with local credentials against its own server
using netbios domain name.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
source4/auth/gensec/gensec_gssapi.c

index a12447a9c35bb9eb59e28f47d10f9fd0c8b8a458..ed6d08aeef84603ee372243a3ea624861f6a941a 100644 (file)
@@ -276,6 +276,7 @@ static NTSTATUS gensec_gssapi_client_creds(struct gensec_security *gensec_securi
        case KRB5KDC_ERR_CLIENT_REVOKED:
                DEBUG(1, ("Account locked out: %s\n", error_string));
                return NT_STATUS_ACCOUNT_LOCKED_OUT;
+       case KRB5_REALM_UNKNOWN:
        case KRB5_KDC_UNREACH:
                DEBUG(3, ("Cannot reach a KDC we require to contact %s : %s\n", gensec_gssapi_state->target_principal, error_string));
                return NT_STATUS_NO_LOGON_SERVERS;