[horde] Default login domain?

Barry Flanagan barryf-lists at flanagan.ie
Tue Jul 10 10:40:23 UTC 2007


Nathan Lager wrote:
> That looks like it'll do nicely, except that I cant seem to make it
> work.  I found the examples in horde/config/hooks.php, but I cant seem
> to make them work. 
> 
> I uncommented the host name appending examples, and then made some minor
> changes to make them work for the hostname I'm working with, but they
> don't seem to be working. 
> 
> I found a comment in hooks.php that says you need to enable custom hooks
> in conf.php, but this didn't seem to help me either. 
> 
> Any suggestions? 

You need to set
$conf['hooks']['username'] = true;

in horde/config/conf.php

hope this helps.


-Barry

> 
> Thanks.
> 
> -----------------------------------------
> Nathan
> Network Administrator
> Accu-Find Internet Services
> 1-888-WEB-3371
> 
> 
> -----Original Message-----
> From: Barry Flanagan [mailto:barryf-lists at flanagan.ie] 
> Sent: Wednesday, July 04, 2007 5:47 AM
> To: Nathan Lager
> Cc: horde at lists.horde.org
> Subject: Re: [horde] Default login domain?
> 
> Nathan Lager wrote:
>> The server I am setting up horde on services many domains, one domain
> is
>> special.  We need to allow their users to login without entering their
>> domain name. 
>>
>>  
>>
>> As an example, all other users login with user at domain.com, this one
>> domain should be just user, no @domain.com. 
>>
>> I thought I could just make a second copy of horde, and add a realm to
>> imp/config/servers.php, according to the documentation in servers.php,
>> this should tack an @domain.com to the end of the login. 
>>
>>  
>>
>> I made the copy, gave it its own virtual host, and added the realm.
> But
>> when I try to login using the username without the domain, it is
>> rejected.  
>>
>>  
> 
> 
> Have a look in horde/hooks.php a the  _username_hook_tobackend and
> _username_hook_frombackend hooks. You should be able to make these do
> that you require.
> 


-- 

-Barry Flanagan


More information about the horde mailing list