[horde] Limit login to one domain

Michael M Slusarz slusarz at horde.org
Thu Jun 27 14:56:27 UTC 2013


Quoting pillul <pillul at freenet.de>:

> Hey,
> Thanks for your reply. I changed the preg_match but it doesn't work...
>
> return preg_match("/\w+ at domainaaa.de/i",$userId);

This returns an integer.  The hook documentation requires boolean  
false to be returned if you want to fail the login.  i.e.:

return preg_match("/^\w+ at domainaaa\.de$/i",$userId);

michael


___________________________________
Michael Slusarz [slusarz at horde.org]



More information about the horde mailing list