[sork] Passwd username without domain

Peter Meier peter.meier at immerda.ch
Wed Sep 7 03:00:46 PDT 2005


hi

> So how can i tell passwd directly do use <name>@<domain>.<whatever>
> insteat of <name> only.

this patch (for 3.0 beta) is working here. i have it on two machines and it is
working well.
well maybe it is not something like it should be or like the passwd developers
like it. ;-) but it is a temporary working workaround for this issue.
be sure that you don't have the flag of using customized hooks enabled.

----

--- passwd-h3-3.0-beta/main.php 2005-08-16 19:39:26.000000000 +0200
+++ passwd/main.php 2005-09-01 11:29:02.000000000 +0200
@@ -36,7 +36,7 @@
    if ($conf['hooks']['default_username']) {
        $userid = Horde::callHook('_passwd_hook_default_username',
array(Auth::getAuth()));
    } else {
        - $userid = Auth::getBareAuth();
        + $userid = Auth::getAuth();
    }
  }

----

or in words: edit the main.php file in the passwd folder and change on line 36
from $userid = Auth::getBareAuth(); to $userid = Auth::getAuth();

greetings pete


More information about the sork mailing list