I have LDAP tokens set up to populate user profile fields when a CAS user first logs in. The fields are populated correctly when a user is created by visiting /cas, but not when created by drush cas-user-create.
I'm filing as a bug since it appears that this should be working. I thought other modules were able to do their thing when the cas_user_register function runs. I'm willing to write a patch if someone can point me in the right direction. Thanks.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 1547368-drush-cas-user-create.patch | 998 bytes | bfroehle |
Comments
Comment #1
bfroehle commentedDoes it work if you create the user via the "Add CAS User" page (admin/people/cas/create)?
Comment #2
bfroehle commentedProbably should be a configurable drush option, but for now I suppose we should default 'invoke_cas_user_presave' to TRUE.
Comment #3
vinmassaro commentedIt does work when using the "Add CAS User" button. I see 'invoke_cas_user_presave' is true in this case.
This patch works great. Thanks for the quick help!
Comment #4
bfroehle commentedThanks for the report. Committed to 6.x-3.x and 7.x-1.x.
Comment #5.0
(not verified) commentedclarity