[rt-users] external auth problem
adminmiki at alcatel.sk
adminmiki at alcatel.sk
Mon Jan 9 18:47:16 EST 2006
Hi, I want ask you for help, im lost ;)
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
<Location />
SetHandler perl-script
PerlHandler RT::Mason
</Location>
<Directory "/opt/rt3">
AuthName "Request Tracker"
AuthType BASIC
AuthUserFile /etc/httpd/conf/pass_rt3
require valid-user
</Directory>
<Location /NoAuth>
satisfy any
allow from all
</Location>
<Location /NoAuth/images>
SetHandler default-handler
</Location>
</VirtualHost>
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
More information about the rt-users
mailing list