summaryrefslogtreecommitdiff
path: root/source4/libcli/auth/kerberos_verify.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2004-12-02 18:27:08 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:06:17 -0500
commit64b516b10546619d3b1adef7fcc4cfef3ad610f9 (patch)
treeed55e190612e6c1f2fadf0c16e24b39917197cb2 /source4/libcli/auth/kerberos_verify.c
parent00948a80724ccfe1454bc40fcfcdc2287b4e3f31 (diff)
downloadsamba-64b516b10546619d3b1adef7fcc4cfef3ad610f9.tar.gz
samba-64b516b10546619d3b1adef7fcc4cfef3ad610f9.tar.bz2
samba-64b516b10546619d3b1adef7fcc4cfef3ad610f9.zip
r4045: readd krb5 support defaulted to disable
use: gensec:krb5=yes gensec:ms_krb5=yes to enable it or -k on the client tools on the command line metze (This used to be commit 0ae5794cf44933d2554e0356baaca24c7a784f71)
Diffstat (limited to 'source4/libcli/auth/kerberos_verify.c')
-rw-r--r--source4/libcli/auth/kerberos_verify.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/libcli/auth/kerberos_verify.c b/source4/libcli/auth/kerberos_verify.c
index 6d87cf8d8b..d00394fd79 100644
--- a/source4/libcli/auth/kerberos_verify.c
+++ b/source4/libcli/auth/kerberos_verify.c
@@ -101,7 +101,9 @@ static krb5_error_code ads_keytab_verify_ticket(krb5_context context, krb5_auth_
}
DEBUG(10, ("Checking principal: %s\n", princ_name));
/* Look for a CIFS ticket */
- if (!strncasecmp(princ_name, "cifs/", 5) || (!strncasecmp(princ_name, "host/", 5))) {
+ if (!strncasecmp(princ_name, "cifs/", 5) ||
+ !strncasecmp(princ_name, "host/", 5) ||
+ !strncasecmp(princ_name, "ldap/", 5)) {
#ifdef HAVE_KRB5_KEYTAB_ENTRY_KEYBLOCK
krb5_auth_con_setuseruserkey(context, auth_context, &kt_entry.keyblock);
#else