External auth problem

Hi, I want ask you for help, im lost :wink:

I have custom application in .jsp - user can login into their section.
from this section I want allow him to log automatically into RT. l/p are
ok. right now it is working only via auth file.

1 - on customer side is .jsp page (via tomcat/apache) with this in head:

int accountID = Qanda.getAccountID(request.getCookies());
if (accountID == 0) {

response.sendRedirect("/billing/sales/customer/login.jsp");
return;
}
… and other

2 - on web server I have in httpd conf:


DocumentRoot /opt/rt3/share/html
AddDefaultCharset UTF-8
ErrorLog logs/rt-error.log
CustomLog logs/rt-access.log common

# these four lines apply to Apache2+mod_perl2 only: {{{
PerlSetVar MasonArgsMethod CGI
PerlModule Apache2
#Apache::compat
RewriteEngine On
RewriteRule ^(.*)/$ $1/index.html
# }}}

PerlModule Apache::DBI
PerlRequire /opt/rt3/bin/webmux.pl
SetHandler perl-script PerlHandler RT::Mason
AuthName "Request Tracker"
AuthType BASIC
AuthUserFile /etc/httpd/conf/pass_rt3

require valid-user

<Location /NoAuth>
satisfy any
allow from all

<Location /NoAuth/images>
SetHandler default-handler

3-in siteconfig i have
Set($WebExternalAuth , ‘1’);
Set($WebFallbackToInternalAuth , ‘1’);
Set($WebExternalGecos , undef);
Set($WebExternalAuto , ‘1’);

in this config it is working, user dont type l/pass at all.

But this is not good as I must have login/pass in file. I have them in
database.

So my question is - how to set env to pass data to RT without auth file ?

I think one way is set env params in .jsp page
someting like … if user ia auth, then set env=…
to allow go rt. But what I should add to httpd conf ?

please help if anyone.

thnx in advance

Miki