summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-04-26 11:41:26 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-04-26 17:16:34 +1000
commitccb62947e9e25e2a00ae2bb0ba411671ee4a00e7 (patch)
treeff388e062a320cc966dc971a5e999f5e1aea5d70
parentc18954775e53a0f4dec4e36234dc45559055f96d (diff)
downloadsamba-ccb62947e9e25e2a00ae2bb0ba411671ee4a00e7.tar.gz
samba-ccb62947e9e25e2a00ae2bb0ba411671ee4a00e7.tar.bz2
samba-ccb62947e9e25e2a00ae2bb0ba411671ee4a00e7.zip
s3-libads Remove KRB5_DNS_HACK
We have winbindd write a custom krb5.conf or use a kdc locator plugin to do this properly now. Andrew Bartlett
-rw-r--r--source3/libads/ldap.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c
index 90c645c44a..94af193af1 100644
--- a/source3/libads/ldap.c
+++ b/source3/libads/ldap.c
@@ -658,18 +658,6 @@ got_connection:
ads->auth.kdc_server = SMB_STRDUP(addr);
}
-#if KRB5_DNS_HACK
- /* this is a really nasty hack to avoid ADS DNS problems. It needs a patch
- to MIT kerberos to work (tridge) */
- {
- char *env = NULL;
- if (asprintf(&env, "KRB5_KDC_ADDRESS_%s", ads->config.realm) > 0) {
- setenv(env, ads->auth.kdc_server, 1);
- free(env);
- }
- }
-#endif
-
/* If the caller() requested no LDAP bind, then we are done */
if (ads->auth.flags & ADS_AUTH_NO_BIND) {