summaryrefslogtreecommitdiffstats
path: root/base/server/upgrade
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2013-11-14 15:32:11 -0500
committerEndi S. Dewata <edewata@redhat.com>2013-11-20 12:17:29 -0500
commitb5d353f13eefeed5a234850d5c95e3fc03340d36 (patch)
tree8037b51b7be65fb010a8bb9f9de7a962804fef2d /base/server/upgrade
parentb1a187e3e731f25a37f7df0a2cd361224125b531 (diff)
downloadpki-b5d353f13eefeed5a234850d5c95e3fc03340d36.tar.gz
pki-b5d353f13eefeed5a234850d5c95e3fc03340d36.tar.xz
pki-b5d353f13eefeed5a234850d5c95e3fc03340d36.zip
Replaced auth.properties with acl.properties.
The ACL mapping files have been renamed from auth.properties to acl.properties to match the actual content and moved into the subsystem conf folder. The authentication method mapping files have been extracted from the interceptor into actual files. The ACLInterceptor and AuthMethodInterceptors have been modified to read the default mapping first, then overwrite it with custom mapping if it exists in the subsystem folder. The UpdateAuthzProperties upgrade script has been replaced with RemoveAuthProperties that will remove the old auth.properties.
Diffstat (limited to 'base/server/upgrade')
-rw-r--r--base/server/upgrade/10.0.6/.gitignore4
-rwxr-xr-xbase/server/upgrade/10.0.99/02-RemoveAuthProperties (renamed from base/server/upgrade/10.0.99/02-UpdateAuthzProperties)13
2 files changed, 9 insertions, 8 deletions
diff --git a/base/server/upgrade/10.0.6/.gitignore b/base/server/upgrade/10.0.6/.gitignore
new file mode 100644
index 000000000..5e7d2734c
--- /dev/null
+++ b/base/server/upgrade/10.0.6/.gitignore
@@ -0,0 +1,4 @@
+# Ignore everything in this directory
+*
+# Except this file
+!.gitignore
diff --git a/base/server/upgrade/10.0.99/02-UpdateAuthzProperties b/base/server/upgrade/10.0.99/02-RemoveAuthProperties
index 992b2d518..83719fc75 100755
--- a/base/server/upgrade/10.0.99/02-UpdateAuthzProperties
+++ b/base/server/upgrade/10.0.99/02-RemoveAuthProperties
@@ -21,25 +21,22 @@
import os
import pki
-import shutil
import pki.server.upgrade
-class UpdateAuthzProperties(pki.server.upgrade.PKIServerUpgradeScriptlet):
+class RemoveAuthProperties(pki.server.upgrade.PKIServerUpgradeScriptlet):
def __init__(self):
- self.message = 'Update auth.properties'
+ self.message = 'Remove auth.properties'
def upgrade_subsystem(self, instance, subsystem):
+
auth_properties = os.path.join(
instance.base_dir,
'webapps', subsystem.name,
'WEB-INF', 'auth.properties')
self.backup(auth_properties)
- default_auth_properties = os.path.join(
- pki.SHARE_DIR, subsystem.name,
- 'webapps', subsystem.name,
- 'WEB-INF', 'auth.properties')
- shutil.copyfile(default_auth_properties, auth_properties)
+ if os.path.exists(auth_properties):
+ os.remove(auth_properties)