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?
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | ldap_integration.patch | 4.5 KB | alkirkus |
Comments
Comment #1
rconstantine commentedI need this to work too, so I'll do it.
Comment #2
alkirkus commentedI have created this patch which appears to resolve this issue. It isn't pretty but it does seem to work.
Comment #3
rconstantine commentedWhoa. OK. I'll check it out. Thanks. Once I've got this thing fully patched, I'll upload an update.
Comment #4
rconstantine commentedwith 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.
Comment #5
jzornig commentedMany thanks.