[dev] Username in Horde

Michael M Slusarz slusarz at horde.org
Thu Feb 2 18:27:11 UTC 2012


Quoting Michael J Rubinsky <mrubinsk at horde.org>:

> Quoting "B.Baransel BA?CI" <bagcib at itu.edu.tr>:
>
>> Hi again;
>>
>> I think "$GLOBALS['registry']->getAuth()" holds authenticated username.
>> Before authentication, this method gives empty string.
>>
>> In our design, users distributed two imap servers by their Active Directory
>> group. In backend.local.php, i have a php code that takes username and
>> search with ldap_search. According to result of ldap search, imap server is
>> assigned.
>
> This doesn't sound like it belongs in backends.php. This should be  
> done in a hook. Don't have code in front of me at the moment to  
> recommend which hook, but it's one of the preauthentication hooks I  
> believe. Perhaps another dev can chime in here for you.

preauthenticate hook

michael

___________________________________
Michael Slusarz [slusarz at horde.org]



More information about the dev mailing list