From f9a8baa95691c898b93486d13f90682f5d02df20 Mon Sep 17 00:00:00 2001 From: tohe Date: Mon, 24 Aug 2020 23:20:16 +0200 Subject: [PATCH] Introduced wmdeGroup which is a posxGroup derived class to manage also groupOfNames --- files/wmdeGroup.inc | 23 +++++++++++++++++++++++ manifests/lam.pp | 6 +++++- templates/wmde.conf.erb | 2 +- 3 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 files/wmdeGroup.inc diff --git a/files/wmdeGroup.inc b/files/wmdeGroup.inc new file mode 100644 index 0000000..29a2d3d --- /dev/null +++ b/files/wmdeGroup.inc @@ -0,0 +1,23 @@ +attributes['member']){ + $this->attributes['member']=array( + "cn=dummy" + ); + } + return parent::display_html_attributes(); + } + + function get_metaData() { + $return = parent::get_metaData(); + $return['objectClasses'] = array('posixGroup','groupOfNames'); + $return['attributes'] = array('gidNumber', $this->passwordAttrName, 'memberUid','member'); + return $return; + } +} diff --git a/manifests/lam.pp b/manifests/lam.pp index bfc9829..1912515 100644 --- a/manifests/lam.pp +++ b/manifests/lam.pp @@ -76,7 +76,11 @@ class wmdeit_ldap::lam( } -> file {"$docroot/config/pdf": ensure => directory, - } + } -> + file {"$docroot/lib/modules/wmdeGroup.inc": + ensure => file, + content => file("wmdeit_ldap/wmdeGroup.inc") + } $configs.each | String $name, $conf | { file {"$docroot/config/$name.conf": diff --git a/templates/wmde.conf.erb b/templates/wmde.conf.erb index 284ed27..bef25d3 100644 --- a/templates/wmde.conf.erb +++ b/templates/wmde.conf.erb @@ -55,7 +55,7 @@ types: modules_user: inetOrgPerson,posixAccount,shadowAccount types: suffix_group: ou=group,dc=wikimedia,dc=de types: attr_group: #cn;#gidNumber;#memberUID;#description -types: modules_group: posixGroup +types: modules_group: wmdeGroup # Password mail subject lamProMailSubject: Your password was reset