Hi Rich,
Thanks again!
--Chandan
On Friday, March 22, 2013, Rich Megginson wrote:
On Friday, March 22, 2013, Rich Megginson wrote:
On 03/22/2013 11:06 AM, Chandan Kumar wrote:
Hello,
So far I have been managed to do some setup of 389 server, thanks to prompt community.
Now, I am having some trouble in getting the MemberOf plugin work for 389-ds-base-1.2.11.15-11. When I add a user into a group, the memberOf attribute is not being added to the user entry.
While googling a bit I came across an older post of this group
based on that, I checked dse.ldif and the Plugin configuration also looks good.
Too bad that google didn't send you here:
https://access.redhat.com/knowledge/docs/en-US/Red_Hat_Directory_Server/9.0/html/Administration_Guide/Advanced_Entry_Management.html#groups-cmd-memberof
Specifically:
"6.1.4.2. Object Classes Which Support memberof Attributes
The most common people object classes — such as inetorgperson and person — do not allow the memberOf attribute. To allow the MemberOf Plug-in to add the memberOf attribute to a user entry, make sure that that entry belongs to the inetUser object class, which does allow the memberOf attribute."
Even in the link you posted:
" objectClass: shadowaccount
objectClass: inetuser
physicalDeliveryOfficeName: Kennebunk
...
"
dn: cn=MemberOf Plugin,cn=plugins,cn=configobjectClass: topobjectClass: nsSlapdPluginobjectClass: extensibleObjectcn: MemberOf Pluginnsslapd-pluginPath: libmemberof-pluginnsslapd-pluginInitfunc: memberof_postop_initnsslapd-pluginType: postoperationnsslapd-pluginEnabled: onnsslapd-plugin-depends-on-type: databasememberofgroupattr: uniqueMembermemberofattr: memberOfnsslapd-pluginId: memberofnsslapd-pluginVersion: 1.2.11.15nsslapd-pluginVendor: 389 Projectnsslapd-pluginDescription: memberof pluginmodifiersName: cn=directory managermodifyTimestamp: 20130322162350Z
The way I am adding users :
dn: uid=chandank,ou=People,dc=ma,dc=netobjectclass: personobjectclass: inetorgpersonobjectclass: posixAccountcn: Chandansn: kgivenName: chandankuid:chandankuidNumber:5006gidNumber:5006objectclass: mepOriginEntrymepManagedEntry: cn=chandankhomeDirectory: /home/chandankloginShell: /bin/bash
The way I am adding them into a group:
dn: cn=sys,ou=Groups,dc=ma,dc=netchangetype: modifyadd: uniqueMemberuniqueMember: uid=chandank,ou=People,dc=ma,dc=net
And after I have added the user I am expecting an MemberOf attribute entry in the user entry itself. I am not sure whether it is the right way to do so.
For the records: Having MemberOf attribute in the user entry would allow me use ldap Access filters in sssd.conf file eg."ldap_access_filter = memberOf=cn=allowedusers,ou=Groups,dc=example,dc=com" and hence will be able to restrict users from login on different systems.
ThanksChandan
--
--
-- 389 users mailing list 389-users@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/389-users
--
--
-- 389 users mailing list 389-users@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/389-users