summaryrefslogtreecommitdiffstats
path: root/install/updates
diff options
context:
space:
mode:
authorJan Cholasta <jcholast@redhat.com>2013-03-06 10:07:13 +0100
committerMartin Kosek <mkosek@redhat.com>2013-03-06 16:08:20 +0100
commit54080f46b02c04706021a6cd419f5b30d88d2b7b (patch)
treee2b53745a0ffd85d136c14b4fa9928355c8c5e4d /install/updates
parentc6fc0413b610e6c9216557d1de0fabd853754d47 (diff)
downloadfreeipa.git-54080f46b02c04706021a6cd419f5b30d88d2b7b.tar.gz
freeipa.git-54080f46b02c04706021a6cd419f5b30d88d2b7b.tar.xz
freeipa.git-54080f46b02c04706021a6cd419f5b30d88d2b7b.zip
Remove disabled entries from sudoers compat tree.
The removal is triggered by generating an invalid RDN when ipaEnabledFlag of the original entry is FALSE. https://fedorahosted.org/freeipa/ticket/3437
Diffstat (limited to 'install/updates')
-rw-r--r--install/updates/10-schema_compat.update2
1 files changed, 2 insertions, 0 deletions
diff --git a/install/updates/10-schema_compat.update b/install/updates/10-schema_compat.update
index 9835bb8c..e65e67af 100644
--- a/install/updates/10-schema_compat.update
+++ b/install/updates/10-schema_compat.update
@@ -1,5 +1,7 @@
dn: cn=sudoers,cn=Schema Compatibility,cn=plugins,cn=config
+only:schema-compat-entry-rdn:'%ifeq("ipaEnabledFlag", "FALSE", "DISABLED", "cn=%{cn}")'
replace: schema-compat-entry-attribute:'sudoRunAsGroup=%deref("ipaSudoRunAs","cn")::sudoRunAsGroup=%deref_f("ipaSudoRunAsGroup","(objectclass=posixGroup)","cn")'
+
# Change padding for host and userCategory so the pad returns the same value
# as the original, '' or -.
dn: cn=ng,cn=Schema Compatibility,cn=plugins,cn=config