Opened 13 years ago

Closed 13 years ago

#532 closed defect (fixed)

New members should be added to a default group

Reported by: landry Owned by: geonetwork-devel@…
Priority: major Milestone: v2.6.5
Component: General Version: v2.6.0
Keywords: ldap, groups Cc:

Description

This is for GN 2.6.0, but i suppose it's still an issue in trunk.

I have my users stored in LDAP, so GN doesn't know them if they never connected. So the first time they connect to GN and their user is created in GN, they don't belong to any group, and the admin (me) needs to add them to a group so that they can post a metadata.

So there should be the possibility to set a 'default group' where all new users are when they connect.. or there should be the possibility to set/retrieve the group name (or group id) in a LDAP attr, as it's done for the profile.

So far, my workaround is to add them to the default group in my system through cron and a sql req like 'insert into usergroups(userid,groupid) select id as userid, 2 as groupid from users left join usergroups on usergroups.userid=users.id where userid is null;'

Change History (1)

comment:1 by josegar74, 13 years ago

Resolution: fixed
Status: newclosed

Changes in ldap/shibboleth to:

  • Allow to configure default group for ldap and shibboleth users.
  • Allow to configure group attribute to retrieve groups for users from ldap/shibboleth. if the retrieved group doesn't exist in GeoNetwork then is created.

If no default group is configured or no group attribute is provided in the configuration, works as before.

Note: See TracTickets for help on using tickets.