kfw leash: bracket krb.con code with #ifndef NO_KRB4
authorTom Yu <tlyu@mit.edu>
Mon, 12 Dec 2011 20:46:30 +0000 (20:46 +0000)
committerTom Yu <tlyu@mit.edu>
Mon, 12 Dec 2011 20:46:30 +0000 (20:46 +0000)
Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7050

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25572 dc483132-0cff-0310-8789-dd5450dbe970

src/windows/leash/KrbRealmHostMaintenance.cpp

index 7dac506f13fa256ecf83f540616de98c1351686b..7b76c011ec022ccd01a67cf5eed995bde7792f3a 100644 (file)
@@ -231,7 +231,7 @@ BOOL CKrbRealmHostMaintenance::OnApply()
                                   "Leash", MB_OK);
        }
 
-
+#ifndef NO_KRB4
     // Save to Kerberos Four config. file "Krb.con"
     CStdioFile krbCon;
        if (!krbCon.Open(CKrbProperties::m_krbPath, CFile::modeCreate |
@@ -325,6 +325,7 @@ BOOL CKrbRealmHostMaintenance::OnApply()
         krbCon.WriteString(".KERBEROS.OPTION. dns\n");
 
     krbCon. Close();
+#endif // NO_KRB4
     return TRUE;
 }