--- James A Baker <[EMAIL PROTECTED]> wrote:
> On Jun 1, 2004, at 07:07, Brian Candler wrote:
>
> > On Tue, Jun 01, 2004 at 03:59:06AM -0700, Sagara
> Wijetunga wrote:
> >> The objective of my patch is to get the login
> domain
> >> from an environment variable named LOGINDOMAIN,
> not
> >> from CGI. So that users are not required to type
> or
> >> select the domain name.
> >
> > No need to hack code. Just set the logindomain as
> a hidden form
> > variable;
> > replace
> >
> > [#h#]
> >
> > with something like
> >
> > <input type="hidden" name="logindomain"
> value="example.com">
> >
> > in login.html / expired.html / invalid.html
>
> Ah, but doesn't that presume that he is only
> using/servicing a single
> domain? My assumption was that this change was so
> that each of the
> domains in use would automatically select the
> logindomain form value
> based on their own LOGINDOMAIN environment value --
> rather than being
> for use in a single domain situation, where your
> suggestion would
> (AFAICT) be perfect, Brian.
>
> Is that not the case, Sagara?
Yup, you are right, James. Just imagine if I were to
serve hundreds of domains in a single server. So, each
<VirtualHost> could supply it's domain name as a
Setenv LOGINDOMAIN domainName.
The sqwebmail CGI stub can get this value via the
LOGINDOMAIN and combine with the userid. So that user
does not required to supply domain name. He can login
to SqWebMail like log in to Yahoo, just userid and
password only. Actually to complete the usefulness of
SQWEBMAIL_TEMPLATEDIR and SQWEBMAIL_IMAGEURL, login
domain also must be able to specify via an environment
variable. That's what I'm trying to achieve by hacking
the code.
__________________________________
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/