I want to authenticate users against another computer system instead of against Drupal's own user authentication. How to I override the user authentication so that I can implement my custom code?

Thanks,
Kurz

Comments

tripisirus’s picture

It all depends on the nature/parameter of the authentication you want to make. To achieve this, you would need to patch the user module.
It would be good if you explain to more details how u want your authentication to be.

yelvington’s picture

You do not need to patch the user module. You do not hack the core. You write a module extending the user system using the published hooks.

In addition to examples in the downloadable contributed modules collection, here are examples.

http://yetanotherprogrammingblog.com/node/14
https://webfiles.uci.edu/jromine/drupal/ (powerpoint presentation and source code)

kurzweil4’s picture

Thanks! I will have go over this in detail, but it seems to be exactly what I needed to know.