[development] authentication module without the @foo

Gordon Heydon gordon at heydon.com.au
Mon Jan 30 22:10:06 UTC 2006


Hi,

If this is a 4.7 development then take a look at logintoboggan as it
gets around this so that you can log in using your email address instead
of your user name.

Maybe you could do something similar.

Gordon.

On Mon, 2006-01-30 at 18:54 +0100, Bèr Kessels wrote:
> Hi,
> 
> I recently developed mysql_auth module [1]. Its rather silly/small, but still 
> usefull. It allows users to authenticate against any other database, not 
> nessecarily in drupal form, postgre works too, despite the name.  I am 
> testing now, but will release as soon as I have this last issue solved :)
> 
> Right. What I want, is to get the authentication to be performed for any user. 
> Not just user at foo, but if Joe is not fond local, then it should check for Joe 
> in the other table. Drupal has this hardcoded, so the authentication hooks 
> cannot do this. 
> 
> But I was wondering if there is another way to authenticate users? Some 
> user_load trick I am not aware of? Ot maybe a patch that I can +1 to remove 
> the hardcoded @ check?
> 
> Blèèèèèr
> 
> [1] http://help.sympal.nl/user/help#mysql_auth
> 
> PS: I know about the way to share user tables but that is
>  a) only usefull for tables in the form of drupal tables. (you cannot check 
> for MyStrangeAPPusers)
>  b) not perfect, because you need to share a /lot/ of tables, also ones like 
> the {sequences}. it has side effects
>  c) not very safe if you want to allow users from A to log in on B but those 
> from B not on A.



More information about the development mailing list