[dev] Username in Horde

B.Baransel BAĞCI bagcib at itu.edu.tr
Thu Feb 2 14:43:23 UTC 2012


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.

Shortly, i need username that entered in login screen. Which variable is
store username after the submitting login form; before login operation? Or
is it possible to getting username in backend.php?

Regards

Thanks for all..

B.Baransel BAĞCI
Istanbul Technical University
Office of Information Technologies
System Support Group

Phone: +90 212 285 39 30
Fax  : +90 212 285 69 36

-----Original Message-----
From: dev-bounces at lists.horde.org [mailto:dev-bounces at lists.horde.org] On
Behalf Of Michael J Rubinsky
Sent: Sunday, January 29, 2012 5:31 PM
To: dev at lists.horde.org
Subject: Re: [dev] Username in Horde


Quoting "B.Baransel BA?CI" <bagcib at itu.edu.tr>:

> Hi,
>
>
>
> I'm confused with session variables in horde4 & imp5.
>
>
>
> I installed horde4 & imp5 as web based mail client. In confs, i want 
> to assign imap servers by username with ldap search.  In 
> imp/config/backendp.local.php , i'm getting users's Active Directory 
> group with ldap search and assign imap server according to user's group.
>
>
>
> In ldap search, i must use username but i'm unable to getting username 
> from horde. I didn't find which object or session variables hold
username..
>
>
>
> Which file(s) must be included in backend and which object&method can 
> give me the login username?

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


--
mike

The Horde Project (www.horde.org)
mrubinsk at horde.org

--
Horde developers mailing list
Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail:
dev-unsubscribe at lists.horde.org



More information about the dev mailing list