summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2012-04-26 16:50:53 -0400
committerSimo Sorce <idra@samba.org>2012-05-04 16:51:28 +0200
commit62f3be7af3f743ddc2ec0c4d8e6a431fae583282 (patch)
tree853df6187ee48714fd8aa5840c292b0673398b84 /source4
parentc2f663263c60e6a4b83d85d70fc1e091d77618f5 (diff)
downloadsamba-62f3be7af3f743ddc2ec0c4d8e6a431fae583282.tar.gz
samba-62f3be7af3f743ddc2ec0c4d8e6a431fae583282.tar.bz2
samba-62f3be7af3f743ddc2ec0c4d8e6a431fae583282.zip
s4-auth-krb: Disable code in MIT build
Unfortunately these functions are not available in MIT and there is no easy workaround or compat funciton I can see at this stage. Will fix properly once MIT gets the necessary functions or if another workaround can be found.
Diffstat (limited to 'source4')
-rw-r--r--source4/auth/kerberos/kerberos_util.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/auth/kerberos/kerberos_util.c b/source4/auth/kerberos/kerberos_util.c
index 31a8405a7f..0776aae9c8 100644
--- a/source4/auth/kerberos/kerberos_util.c
+++ b/source4/auth/kerberos/kerberos_util.c
@@ -195,9 +195,10 @@ static krb5_error_code impersonate_principal_from_credentials(
return ret;
}
+#ifdef SAMBA4_USES_HEIMDAL /* Disable for now MIT reads defaults when needed */
/* get the defaults */
krb5_get_init_creds_opt_set_default_flags(smb_krb5_context->krb5_context, NULL, NULL, krb_options);
-
+#endif
/* set if we want a forwardable ticket */
switch (cli_credentials_get_krb_forwardable(credentials)) {
case CRED_AUTO_KRB_FORWARDABLE:
@@ -210,6 +211,7 @@ static krb5_error_code impersonate_principal_from_credentials(
break;
}
+#ifdef SAMBA4_USES_HEIMDAL /* FIXME: MIT does not have this yet */
/*
* In order to work against windows KDCs even if we use
* the netbios domain name as realm, we need to add the following
@@ -219,6 +221,7 @@ static krb5_error_code impersonate_principal_from_credentials(
*/
krb5_get_init_creds_opt_set_win2k(smb_krb5_context->krb5_context,
krb_options, true);
+#endif
tries = 2;
while (tries--) {