summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-02-19 16:43:56 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:48:37 -0500
commit908bc58cdd2642fe61f6e3a07e9d362de6e18ae6 (patch)
tree7873b5413392072f97f9b8a11b19e4ad9820b750
parent3db368ad768857ec0a2e1b322ee9a9c59ad9a297 (diff)
downloadsamba-908bc58cdd2642fe61f6e3a07e9d362de6e18ae6.tar.gz
samba-908bc58cdd2642fe61f6e3a07e9d362de6e18ae6.tar.bz2
samba-908bc58cdd2642fe61f6e3a07e9d362de6e18ae6.zip
r21451: if kerberos is requested ( -k yes ), we should use authentificated connections
metze (This used to be commit 426238eb45f0cc41d99961ac554c2528fd8e96f5)
-rw-r--r--source4/auth/credentials/credentials.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/auth/credentials/credentials.c b/source4/auth/credentials/credentials.c
index 48d44ad8e7..38bd701b76 100644
--- a/source4/auth/credentials/credentials.c
+++ b/source4/auth/credentials/credentials.c
@@ -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;
}