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?

CommentFileSizeAuthor
#2 ldap_integration.patch4.5 KBalkirkus

Comments

rconstantine’s picture

Assigned: Unassigned » rconstantine

I need this to work too, so I'll do it.

alkirkus’s picture

StatusFileSize
new4.5 KB

I have created this patch which appears to resolve this issue. It isn't pretty but it does seem to work.

rconstantine’s picture

Whoa. OK. I'll check it out. Thanks. Once I've got this thing fully patched, I'll upload an update.

rconstantine’s picture

Status: Active » Fixed

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.

jzornig’s picture

Many thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.