[sork] Help please; horde version, forwards customization

Dorneles Treméa dorneles at x3ng.com.br
Thu Mar 6 17:18:37 PST 2003


Hi Eric,

> If you normally have the full name, then you can get it from 
> the Auth::getAuth() function.

Thanks again! With this I get 'user at domain'... :-)

> Set the hook to true.

$conf['hooks']['username'] = true;
$conf['hooks']['default_username'] = true;

> Edit horde/config/hooks.php and modify the function 
> _passwd_hook_username() to return what you want.
> What you want to return is likely just the passed in username
> with the @realm part appended. If you have multiple realms/domains
> though this gets more complicated.

Hum... Horde 2.1 does't seems to have this file... :-(

So, I created it with following content (based on current hooks.php
from Horde CVS):

<?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();
    }
}

?>

Question: is there a way to 'lock' the username? I mean,
if a user loggin as 'abc at xyz.com' it can only change
this password (field 'username' disabled for edit).

PS: Vpopmail since version 5.1.19 uses a mix from crypt
and md5 to generate passwords. I will update this code
and send a patch.

Regards,

-- 

Dorneles Treméa
Caxias do Sul - RS - Brasil
+55 54 9114 9312 - UIN: 2413568
X3ng Web Technology <http://www.x3ng.com.br>

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS/IT d- s:->: a23 C+++ UBL++++$ P--- L++ E-- W+++
N++ o? K? w+ O M+ V-- PS+ PE- Y-- PGP++ t+ 5 X++ R+
tv+ b(++) DI+ D++ G+>+++ e++>++++ h---- r+++ y+++**
------END GEEK CODE BLOCK------

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.horde.org/archives/sork/attachments/20030306/eeebfd68/attachment.bin


More information about the sork mailing list