r18226: Ensure we only do this evil thing if it's our realm.
authorJeremy Allison <jra@samba.org>
Thu, 7 Sep 2006 18:34:02 +0000 (18:34 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:51:16 +0000 (11:51 -0500)
Jeremy.
(This used to be commit 0a89b37b1a367470be410ae94b42c813c7dbefe6)

source3/libads/kerberos.c

index a0685b8a1cef1f9b97de83c22ee4b733c45125af..7eb0bdc145d02b766ab3028a0afa626b127e3a09 100644 (file)
@@ -619,8 +619,7 @@ BOOL create_local_private_krb5_conf_for_domain(const char *realm, const char *do
 #define SYSTEM_KRB5_CONF_PATH "/etc/krb5.conf"
        /* Insanity, sheer insanity..... */
 
-
-       {
+       if (strequal(realm, lp_realm())) {
                pstring linkpath;
                int lret;