简体   繁体   中英

Drupal Custom Login by Role

I have a cURL PHP script which is able to validate a username/password against the external source.

What is the best way to integrate this as a login requirement for (select) users in Drupal?

The idea would be to add the external authentication as a login requirement for a role.

The preferred way would probably be to write a little module that implements hook_user for $op=="login"...that allows you to perform any logic you want to whenever a user attempts to log in.

Alternatively, could you set up LDAP? The Drupal LDAP module is pretty nice.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM