| Project: | Organic Groups - Multiple Mandatory Groups by Role |
| Version: | 6.x-1.3 |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | rconstantine |
| Status: | closed (fixed) |
Issue Summary
I've set up ldap_integration and ldap_groups so that users authenticate against an ldap service and get assigned to various roles depending upon values in an ldap attribute. The first time a user logs in their account is created and the roles assigned correctly. However the og_multiple_mandatory_groups_by_role does not assign the user account to any groups associated to those roles. I have to manually edit and save the user account before any groups are assigned.
Is it possible to modify og_multiple_mandatory_groups_by_role so that it will perform group assignments at the time accounts are created by the ldap_integration module? Or alternately, does ldap_integration need to be changed to trigger the group assignment when it creates accounts?
Comments
#1
I need this to work too, so I'll do it.
#2
I have created this patch which appears to resolve this issue. It isn't pretty but it does seem to work.
#3
Whoa. OK. I'll check it out. Thanks. Once I've got this thing fully patched, I'll upload an update.
#4
with very minor changes, i've added this to my code. i'm not sure what isn't "pretty" about it though. it's a simple patch. good job.
#5
Many thanks.
#6
Automatically closed -- issue fixed for 2 weeks with no activity.