Hello,
I have installed Drupal on my server with an intention of building a website. One of the features that are needed is the ability to log into the website by 'calling' a script on a remote server. I do not have access to the remote script so I can not influence the way it works. It just returns either -1, 0 or 1 depending on whether the username exists, and whether the password is correct.
I got a book on Drupal development, that was somewhat helpful in understanding some of the things, but I have no clue where or how to incorporate my own PHP code into the login process. I've searched across this website (drupal.org) for answers, but I wasn't able to find any information that would give me those answers, probably because I was searching for the wrong keywords.
Help would be greatly appreciated.
Comments
Several modules
Several modules implementing external auth already exist, and you could base your work on one of them. Probably the easiest to understand is http://drupal.org/project/httpauth.