r21451: if kerberos is requested ( -k yes ), we should use authentificated connections
authorStefan Metzmacher <metze@samba.org>
Mon, 19 Feb 2007 16:43:56 +0000 (16:43 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:48:37 +0000 (14:48 -0500)
metze
(This used to be commit 426238eb45f0cc41d99961ac554c2528fd8e96f5)

source4/auth/credentials/credentials.c

index 48d44ad8e7ab3a5947bcfb3b6ce6707a276162e3..38bd701b7684666397b89afd72b373ea0f6144a0 100644 (file)
@@ -238,6 +238,11 @@ BOOL cli_credentials_authentication_requested(struct cli_credentials *cred)
        if (cred->username_obtained >= CRED_SPECIFIED) {
                return True;
        }
+
+       if (cli_credentials_get_kerberos_state(cred) == CRED_MUST_USE_KERBEROS) {
+               return True;
+       }
+
        return False;
 }