[horde] Kolab 2.1 multidomain password change patch

Jan Schneider jan at horde.org
Mon Oct 17 13:26:35 PDT 2005


Zitat von Fabio Pietrosanti <lists at pietrosanti.it>:

> Hi all,
>
> with kolab 2.1 to full support the change of password for users of
> primary and secondary domains those modification are needed.
>
> This fix apply either to Horde HEAD either to Horde STABLE removing
> kolab passwd driver limitation that doesn't allow to change password on
> secondary domain.
> Auth::getAuth() return the username including the domain name allowing
> password change.
>
> -- Passwd configuration
> FILE: horde/passwd/config/conf.php
> $conf['hooks']['default_username'] = true;
>
> -- Hooks Addendum: (inside the Kolab hooks)
> FILE: horde/config/hooks.php
> if (!function_exists('_passwd_hook_username')) {
>    function _passwd_hook_username($userid)
>    {
>        return Auth::getAuth();
>    }
> }
> if (!function_exists('_passwd_hook_default_username')) {
>    function _passwd_hook_default_username($userid)
>    {
>        return Auth::getAuth();
>    }
> }

This is not necessary.

> -- Kolab Driver FIX: REMOVE explicit issue regarding local maildomain
> horde/passwd/lib/Driver/kolab.php
>       // Make sure we're using the full user at domain format.
> //        if (strstr('@', $username) === false) {
> //           $username .= '@' .
> $GLOBALS['conf']['kolab']['imap']['maildomain'];
> //        }

Can you elaborate on this? Most of us don't use Kolab, so we have no 
idea what you're trying to achieve and how.

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/



More information about the horde mailing list