[horde] Horde installation for users in multiple domains
diego at llosa.net
diego at llosa.net
Fri Oct 22 08:23:06 PDT 2004
Thomas,
Thanks I got it to work for passwd. I am still having difficulties
with the one
for sam.
I have in horde/sam/config/conf.php :
$conf['hooks']['username'] = true;
and then in horde/config/hooks.php :
if (!function_exists('_sam_hook_username')) {
function _sam_hook_username($horde_uid)
{
if (strstr($horde_uid, '@')) {
$parts = explode('@', $horde_uid);
return $parts[0];
} else {
return $horde_uid;
}
}
}
But still does not work. It fails to add the @domain part to the
username. Any
ideas why is not working?
Thanks in advance
Quoting Thomas O'Brien <thomas at creativebusinessystems.com>:
> Quoting diego at llosa.net:
>
>> I have installed Horde latest CVS HEAD successfully but I am having a minor
>> problem.
>>
>> I got Passwd: 3.0-cvs and Sam: 0.1-cvs to work but my problem is that this
>> installation of horde allows users in multiple domains to login with IMAP
>> authentication.
>>
>> For example I have diego at llosa.net and diego at otherdomain.us being different
>> users.
>>
>> Users in multiple domains can login just fine but both Passwd and
>> Sam use just
>> diego for the username instead of diego at llosa.net or diego at otherdomain.us.
>>
>> Is there a way to fix that? So that those modules use the entire
>> login instead
>> of just the username with no domain.
>>
>> Thanks in advance
>>
>> Diego
>
> I believe what your looking for, for passwd anyway is:
>
> $conf['hooks']['default_username'] = true;
>
> in /passwd/config/conf.php or
>
> check "Use a custom hook for determining the default username"
> from Administration-Configuration-Password
>
> I don't use SAM.
>
> Thomas
>
> -- Horde mailing list - Join the hunt: http://horde.org/bounties/#horde
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: horde-unsubscribe at lists.horde.org
>
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
More information about the horde
mailing list