[horde] Access to Authenticated Username?

Michael M Slusarz slusarz at horde.org
Wed May 15 21:47:08 UTC 2013


Quoting Andy Dorman <adorman at ironicdesign.com>:

> Sorry to bother with such a low-level question, but we are working  
> on moving from Horde 3 to Horde 5 and are working on adapting our  
> older imp servers.php code to the appropriate backends.local.php
>
> We need to access the username for the current authenticated user in  
> oder to fetch the hostname for their IMAP server and some other  
> settings from our LDAP db.
>
> We used to use Auth::getAuth() for the authenticated user.  What  
> should we use now?

$GLOBALS['registry']->getAuth()

michael

___________________________________
Michael Slusarz [slusarz at horde.org]



More information about the horde mailing list