s3-libads Remove KRB5_DNS_HACK
authorAndrew Bartlett <abartlet@samba.org>
Tue, 26 Apr 2011 01:41:26 +0000 (11:41 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 26 Apr 2011 07:16:34 +0000 (17:16 +1000)
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

index 90c645c44ad6546006d04ffc59e623baa7878352..94af193af1cbb533d95f437b12e6d39c91955467 100644 (file)
@@ -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) {