From ccb62947e9e25e2a00ae2bb0ba411671ee4a00e7 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 26 Apr 2011 11:41:26 +1000 Subject: 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 --- source3/libads/ldap.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'source3/libads/ldap.c') 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) { -- cgit