[imp] custom_login.php

Liam Hoekenga liamr at umich.edu
Thu Feb 19 15:09:08 PST 2004


One of our departmental instances of our webmail service has requested
that we replace the normal horde login screen.  I modified
custom_login.php, everything looks swell...  the form appears to have the
values from config/servers.php I need..

<form action="/horde/imp/redirect.php?Horde=5c7e3e7931cb96c43d6382f3d8572dcb"
    method="post">
<input type="hidden" name="server" value="imap.blah.umich.edu" />
<input type="hidden" name="protocol" value="imap/ssl/novalidate-cert" />
<input type="hidden" name="port" value="993" />
<input type="hidden" name="folders" value="mail/" />
<input type="hidden" name="namespace" value="" />
<input type="hidden" name="maildomain" value="blah.umich.edu" />
<input type="hidden" name="realm" value="blah.umich.edu" />
<input type="hidden" name="url" value="/login.php" />
uniqname: <input name="imapuser" type="text" maxlength="8">
password: <input name="pass" type="password">

despite appearing to have all the correct information, it tries to log me
in w/ the first entry in config/servers.conf.  I'm trying to use the
"preferred" mechanism for the other hosts in the this conf file, and while
I do have the preferred field set for this host, I kind of figured that me
specifying all of the field values in the login form would take
precedence.  The documentation for "preferred" says that if hostname
doesn't match one of the server stanza's preferred field, that it'll use
the first server entry in the file... which it's doing despite both
setting "preferred" *and* specifying the settings to all of these fields
(as illustrated in scripts/custom_login.php).

Kinda confused here... any ideas?

Liam


More information about the imp mailing list