summaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorJr Aquino <jr.aquino@citrix.com>2011-08-30 17:48:15 -0700
committerMartin Kosek <mkosek@redhat.com>2011-08-31 09:53:11 +0200
commit8b27f1ad273ee5420657194d82c021022c069447 (patch)
tree593b90ed801827ff1eda8fac791cc1a2cef2b049 /install
parent776af82572b56d9c66a2eadabdb5bced9316648a (diff)
downloadfreeipa-8b27f1ad273ee5420657194d82c021022c069447.zip
freeipa-8b27f1ad273ee5420657194d82c021022c069447.tar.gz
freeipa-8b27f1ad273ee5420657194d82c021022c069447.tar.xz
34 Create FreeIPA CLI Plugin for the 389 Auto Membership plugin
Added new container in etc to hold the automembership configs. Modified constants to point to the new container Modified dsinstance to create the container Created automember.py to add the new commands Added xmlrpc test to verify functionality Added minor fix to user.py for constant behavior between memberof and automember https://fedorahosted.org/freeipa/ticket/1272
Diffstat (limited to 'install')
-rw-r--r--install/share/Makefile.am2
-rw-r--r--install/share/automember.ldif32
-rw-r--r--install/share/replica-automember.ldif8
3 files changed, 42 insertions, 0 deletions
diff --git a/install/share/Makefile.am b/install/share/Makefile.am
index c636109..51b9ad2 100644
--- a/install/share/Makefile.am
+++ b/install/share/Makefile.am
@@ -49,6 +49,8 @@ app_DATA = \
entryusn.ldif \
root-autobind.ldif \
sudobind.ldif \
+ automember.ldif \
+ replica-automember.ldif \
$(NULL)
EXTRA_DIST = \
diff --git a/install/share/automember.ldif b/install/share/automember.ldif
new file mode 100644
index 0000000..1520e62
--- /dev/null
+++ b/install/share/automember.ldif
@@ -0,0 +1,32 @@
+# Configuration for Auto Membership Plugin for Master
+# installation. This method should be revisted for
+# optimization due to a bug within 389 DS which prevents
+# the definition files from being added seperatly after
+# the insertion of cn=Auto Membership Plugin,cn=plugins,cn=config
+# and subsequent 389 DS restart.
+dn: cn=Auto Membership Plugin,cn=plugins,cn=config
+changetype: modify
+add: nsslapd-pluginConfigArea
+nsslapd-pluginConfigArea: cn=automember,cn=etc,$SUFFIX
+
+dn: cn=automember,cn=etc,$SUFFIX
+changetype: add
+objectClass: top
+objectClass: nsContainer
+cn: automember
+
+dn: cn=Hostgroup,cn=automember,cn=etc,$SUFFIX
+changetype: add
+objectclass: autoMemberDefinition
+cn: Hostgroup
+autoMemberScope: cn=computers,cn=accounts,$SUFFIX
+autoMemberFilter: objectclass=ipaHost
+autoMemberGroupingAttr: member:dn
+
+dn: cn=Group,cn=automember,cn=etc,$SUFFIX
+changetype: add
+objectclass: autoMemberDefinition
+cn: Group
+autoMemberScope: cn=users,cn=accounts,$SUFFIX
+autoMemberFilter: objectclass=posixAccount
+autoMemberGroupingAttr: member:dn
diff --git a/install/share/replica-automember.ldif b/install/share/replica-automember.ldif
new file mode 100644
index 0000000..15d5d10
--- /dev/null
+++ b/install/share/replica-automember.ldif
@@ -0,0 +1,8 @@
+# Configuration for Auto Membership Plugin for Replica
+# installation. This method should be revisted for
+# optimization due to a bug within 389 DS.
+# dsinstance.py should eventually insert this during common_setup.
+dn: cn=Auto Membership Plugin,cn=plugins,cn=config
+changetype: modify
+add: nsslapd-pluginConfigArea
+nsslapd-pluginConfigArea: cn=automember,cn=etc,$SUFFIX