[horde] Require a certain domain

Jan Schneider jan at horde.org
Thu May 4 15:02:49 UTC 2017


Zitat von David Cunningham <dcunningham at additionnetworks.net>:

>> On May 4, 2017, at 8:32 AM, Jan Schneider <jan at horde.org> wrote:
>>
>>
>> Zitat von David Cunningham <dcunningham at additionnetworks.net>:
>>
>>> Hi All,
>>>
>>> I have the latest Horde operating with virtual host configs for  
>>> each domain we use so we can differentiate many of the preferences  
>>> based on domains.
>>>
>>> My problem is that users can stumble upon another domain and still log in.
>>>
>>> Is there any way to restrict the domain of the email address that  
>>> the user can log in with.  For example, if the domain is  
>>> https://testportal.<https://testportal.additionnetworks.net>name.com<http://name.com> only allow users with username at test.<mailto:username at test.additionnetworks.net>name.com to log in to the virtual  
>>> host?
>>>
>>> Thanks!
>>
>> You can use the preauthenticate hook for that.
>>
>
> Can you provide an example?  Sorry, I am not any good at this sort of thing.

There already are examples at config/hook.php.dist that show how to  
get the login name, or how to deny logins.

-- 
Jan Schneider
The Horde Project
https://www.horde.org/



More information about the horde mailing list