[horde] Limit login to one domain

pillul pillul at freenet.de
Thu Jun 27 09:42:12 UTC 2013


Hey,
Thanks for your reply. I changed the preg_match but it doesn't work...

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


I added "domainaaa.de" and still can login in with "domain.de"

If i add:

return ($userId != 'test at domain.de');

the user test at domain.de cant login so the hooks get executed.


sincerly,
pillul


Am 27.06.2013, 11:23 Uhr, schrieb Arjen de Korte  
<arjen+horde at de-korte.org>:

> Citeren pillul at freenet.de:
>
>> Hey,
>>  i have the some problem, i tried a preauthentication hook like:
>> return preg_match("/w+ at domain.de/i",$userId);
>> But it doesnt work....
>
> Your regular expression looks wonky. Try "/\w+ at domain.de/i" instead.
>
>> Any ideas?


More information about the horde mailing list