[imp] domain in imp_get_vinfo

Marcos Monge mmonge@satec.es
Tue Nov 19 15:48:48 2002


Nate Mollring wrote:
> Quoting Marcos Monge <mmonge@satec.es>:
> 
>>I have a little problem with IMP 3.1/horde 2.2.
>>I have IMP in one web server (only 1 web domain), and multiple imap servers,
>>
>>configured in servers.php, each server with his own maildomain/realm value.
>>
>>My users are in ldap. The mail address and the uid are different (the login 
>>in the imap server must be with uid) 
>>
>>I want that the users do login via web using his mail address (only the 
>>first part), and choose the server. For example:
>>
>>uid=pepe
>>mail=jose@subdomain1.domain.com
>>
>>I want the user only put "jose" in the login screen, and choose 
>>"@subdomain1.domain.com" from the server list.
> 
> If you want to login using the mail userid, use imap to authenticate.


This is what I'm using... In servers.php I have several servers (all IMAP), 
each with a different subdomain.

I need that this domain defined in servers.php is avalaible in imp_get_vinfo 
function, to compose the mail addres of the user, and search in the ldap for 
the correct UID that will be used to connect to the IMAP server.

The user type the first part of his email addres, his password, and choose the 
  adecuate server. I need the value of "maildomain" or "realm" that is 
configured in servers.php for that server, in the imp_get_vinfo function, but 
I don't know the variable that contains this data. I have tried with the 
variable $realm, and $realm_value without success :(


-- 
Un Saludo
Marcos Monge <mmonge@satec.es>
Area de Sistemas



More information about the imp mailing list