[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Freeipa-devel] [PATCH] 960 remove unused kdc files



These files are deprecated by new ipa-kdb backend, remove them if they exist.

rob
>From 1f7477db4c41eb13c9de5bf00262a4a1308c2065 Mon Sep 17 00:00:00 2001
From: Rob Crittenden <rcritten redhat com>
Date: Wed, 22 Feb 2012 16:40:29 -0500
Subject: [PATCH] Remove unused kpasswd.keytab and ldappwd files if they
 exist.

These were used by ipa_kpasswd and krb5-server-ldap respectivily.

https://fedorahosted.org/freeipa/ticket/2397
---
 install/tools/ipa-upgradeconfig |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/install/tools/ipa-upgradeconfig b/install/tools/ipa-upgradeconfig
index 725a9d106833b8892fedf9897061e80ebf4500e6..b440c414e589abd52db1296cb9b7543183efafa7 100644
--- a/install/tools/ipa-upgradeconfig
+++ b/install/tools/ipa-upgradeconfig
@@ -266,6 +266,10 @@ def main():
     except (ldap.ALREADY_EXISTS, ipalib.errors.DuplicateEntry):
         pass
 
+    # Clean up old KDC files if they exist
+    installutils.remove_file('/var/kerberos/krb5kdc/kpasswd.keytab')
+    installutils.remove_file('/var/kerberos/krb5kdc/ldappwd')
+
 try:
     if __name__ == "__main__":
         sys.exit(main())
-- 
1.7.6.5


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]