Basic setup

Q: I have a working setup fresh install authenticating against AD.
Problem is, i have no super users as it’s a fresh install. I hear
there is a root/password account but in order to use that i have to
disable AD authentication in my apache.conf. As per:

<VirtualHost *:80>

ServerName  rnd-test.mpc.local
ServerAlias rnd-test

PerlRequire /disk1/web/vhost/rnd-test.mpc.local/rt/bin/webmux.pl
AddDefaultCharset UTF-8

DocumentRoot /disk1/web/vhost/rnd-test.mpc.local/rt/share/html

ErrorLog /disk1/web/vhost/rnd-test.mpc.local/log/error.log
CustomLog /disk1/web/vhost/rnd-test.mpc.local/log/access.log combined

<Location /disk1/web/vhost/rnd-test.mpc.local/rt/share/html>
SetHandler perl-script
PerlHandler RT::Mason

Depending on how much i kick the apache.conf I either get the message
"Well done, you’re almost there" or a 404 and the error below.

[Fri Aug 1 10:31:45 2008] [warning]: [Mason] Cannot resolve file to
component: /disk1/web/vhost/rnd-test.mpc.local/rt/share/html/index.html
(is file outside component root?) at
/usr/lib/perl5/site_perl/5.8.8/HTML/Mason/ApacheHandler.pm line 852.
(/usr/lib/perl5/site_perl/5.8.8/HTML/Mason/ApacheHandler.pm:852)

CentOS 4.4
RT 3.6.5
Postgres
Apache2
mod_perl2

Any ideas?

Cheers,
Kristian

http://wiki.bestpractical.com/view/ManualApacheConfigOn Fri, Aug 1, 2008 at 3:14 PM, Kristian Davies kristian.davies@gmail.com wrote:

Q: I have a working setup fresh install authenticating against AD.
Problem is, i have no super users as it’s a fresh install. I hear
there is a root/password account but in order to use that i have to
disable AD authentication in my apache.conf. As per:

<VirtualHost *:80>

ServerName rnd-test.mpc.local
ServerAlias rnd-test

PerlRequire /disk1/web/vhost/rnd-test.mpc.local/rt/bin/webmux.pl
AddDefaultCharset UTF-8

DocumentRoot /disk1/web/vhost/rnd-test.mpc.local/rt/share/html

ErrorLog /disk1/web/vhost/rnd-test.mpc.local/log/error.log
CustomLog /disk1/web/vhost/rnd-test.mpc.local/log/access.log combined

<Location /disk1/web/vhost/rnd-test.mpc.local/rt/share/html>
SetHandler perl-script
PerlHandler RT::Mason

Depending on how much i kick the apache.conf I either get the message
“Well done, you’re almost there” or a 404 and the error below.

[Fri Aug 1 10:31:45 2008] [warning]: [Mason] Cannot resolve file to
component: /disk1/web/vhost/rnd-test.mpc.local/rt/share/html/index.html
(is file outside component root?) at
/usr/lib/perl5/site_perl/5.8.8/HTML/Mason/ApacheHandler.pm line 852.
(/usr/lib/perl5/site_perl/5.8.8/HTML/Mason/ApacheHandler.pm:852)

CentOS 4.4
RT 3.6.5
Postgres
Apache2
mod_perl2

Any ideas?

Cheers,
Kristian


The rt-users Archives

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

Best regards, Ruslan.

ManualApacheConfig - Request Tracker Wiki

After kicking it to death it was actually:

#Set($WebExternalAuth , 1);
#Set($WebFallbackToInternalAuth , ‘true’);
#Set($WebExternalGecos , undef);
#Set($WebExternalAuto , 1);

Leaving apache.conf as:

PerlModule Apache::DBI
PerlRequire /disk1/web/vhost/rnd-test.mpc.local/rt/bin/webmux.pl
AddDefaultCharset UTF-8

DocumentRoot /disk1/web/vhost/rnd-test.mpc.local/rt/share/html

    ErrorLog /disk1/web/vhost/rnd-test.mpc.local/log/error.log
    CustomLog /disk1/web/vhost/rnd-test.mpc.local/log/access.log combined

PerlLoadModule Apache2::MultiAuth
PerlSetVar MSADDomain MYAD.mpc.local
PerlSetVar MSADServer smoo1.mpc.local
PerlSetVar MSPort     639
PerlSetVar MSADTLS    yes
AuthModule Apache2::AuthenMSAD

PerlAuthenHandler Apache2::MultiAuth

<Directory /disk1/web/vhost/rnd-test.mpc.local/rt/share/html>
    AllowOverride all
    SetHandler perl-script
    PerlHandler RT::Mason
    Require valid-user
   AuthType Basic
   AuthName "UNIX or Windows Login"
</Directory>

Cheers,
Kristian