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.

CommentFileSizeAuthor
#2 1547368-drush-cas-user-create.patch998 bytesbfroehle

Comments

bfroehle’s picture

Does it work if you create the user via the "Add CAS User" page (admin/people/cas/create)?

bfroehle’s picture

Status: Active » Needs review
StatusFileSize
new998 bytes

Probably should be a configurable drush option, but for now I suppose we should default 'invoke_cas_user_presave' to TRUE.

vinmassaro’s picture

It 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!

bfroehle’s picture

Status: Needs review » Fixed

Thanks for the report. Committed to 6.x-3.x and 7.x-1.x.

Status: Fixed » Closed (fixed)

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

Anonymous’s picture

Issue summary: View changes

clarity

  • Commit 1e8eaf1 on 7.x-1.x, 8.x-1.x by bfroehle:
    Issue #1547368 by bfroehle: Fixed drush cas-user-create does not...