[imp] domain in imp_get_vinfo

Nate Mollring nmollring@cennecs.org
Tue Nov 19 16:19:44 2002


Quoting Marcos Monge <mmonge@satec.es>:

> 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 :(
> 
Just so I understand, your userid's to login in to the mail server aren't the 
same as the first part of the email(before the @)--why is that?  You want your 
users to be able to login using the first part of their email as the userid, 
but behind the scenes you need imp to login to the mail server using the actual 
userid?  It sounds like it's beyond the scope of what I can help you with.
Nate


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


Central Nebraska Community Services
http://www.welcome2cncs.com


More information about the imp mailing list