fedora 4 + authserv & gateway on same machine

twistedpickles <[email protected]>
Newsgroups gmane.network.nocat
Message-ID <[email protected]>
Greetings,

I've searched through the list for a solution to my problem and I haven't
been able to find one yet. I believe my my problem is a fairly easy one and
something I am overlooking.

I'm running Fedora Core 4 with kernel 2.6.13. Both my authserv and gateway
are running on the same machine.

When I connect wirelessly from a client I'm automatically connected and
redirected to "...cgi-bin/login?redirect=..." on the https server. I get an
error on the webpage that reads "Internal Server Error, The server
encountered an internal error or misconfiguration and was not able to
complete your request."

When I enter the login.html page manually into the address bar I get the
page and images but the $Message is not displayed. It actually shows
"$Message". The Login textbox shows "$user", the password textbox also shows
" "***** " which I presume is $pass. When I click on the buttons such as
login I get redirected to "https://10.0.200.1/$CGI" The webpage displays
"Not Found, The requested URL/$CGI was not found on this server".
The "register here" link shows similar to above but reads "The requested
URL/register was not found on the server".

The only time I can access the Internet is when I have accessed the websites
entered into the "AllowedWebHosts" variable.

The nocat log and httpd error log do not reveal anything unusual. The ssl
log however shows:

[Sat Oct 01 13:02:06 2005] [error] [client 10.0.200.66 <http://10.0.200.66>]
(13)Permission denied: exec of '/usr/local/nocat/authserv/cgi-bin/login'
failed
[Sat Oct 01 13:02:06 2005] [error] [client 10.0.200.66 <http://10.0.200.66>]
Premature end of script headers: login

All the files in /usr/local/nocat/gateway and /usr/local/nocat/authserv are
owned by apache. All files in the cgi-bin have permissions of 755.

I have enclosed all my config files. Any help appreciated.

Many thanks!

changes to httpd.conf - the enitre httpd.conf below

added:
Include /usr/local/nocat/authserv/httpd.conf
changed:
DocumentRoot "/usr/local/nocat/authserv/htdocs"
changed:
<Directory "/usr/local/nocat/authserv/htdocs">
changed:
ScriptAlias /cgi-bin/ "/usr/local/nocat/authserv/cgi-bin/"
changed:
<Directory "/usr/local/nocat/authserv/cgi-bin">

________________________________________________________________

###### authserv.conf -- NoCatAuth Authentication Service Configuration.
#
# Format of this file is: <Directive> <Value>, one per
# line. Trailing and leading whitespace is ignored. Any
# line beginning with a punctuation character is assumed to
# be a comment.


Verbosity 10

# PGPKeyPath /usr/local/nocat/authserv/pgp

HomePage http://mixsessions.com

DocumentRoot /usr/local/nocat/authserv/htdocs

DataSource DBI

# For mysql support:
Database dbi:mysql:database=nocat;host=localhost
DB_User nocat
DB_Passwd ********

## Alternately, you can use the Passwd data source.
#
#UserFile /usr/local/nocat/authserv/etc/passwd
#GroupUserFile /usr/local/nocat/authserv/etc/group
#GroupAdminFile /usr/local/nocat/authserv/etc/groupadm
#
# The format of these files is as follows:
#
# In UserFile, each line is of the form <username>:<password>, where the
# password is an MD5 digest of the user's actual password.
#
# In GroupUserFile and GroupAuthFile, each line is of the form
# <group>:<user1>,<user2>,<user3>,...
#
# The UserFile may be updated with the bin/admintool script included in this
# distribution.

UserTable member
UserIDField login
UserPasswdField pass
UserAuthField status
UserStampField created

GroupTable network
GroupIDField network
GroupAdminField admin


MinPasswdLength 6

LocalGateway 10.0.200.1 <http://10.0.200.1>

LoginForm login.html
LoginOKForm login_ok.html
FatalForm fatal.html
ExpiredForm expired.html
RenewForm renew.html
PassiveRenewForm renew_pasv.html

RegisterForm register.html
RegisterOKForm register_ok.html
RegisterFields name url description

UpdateForm update.html
UpdateFields url description

LoginGreeting Greetings! Welcome to the NoCat Network.
LoginMissing Please fill in all fields!
LoginBadUser That e-mail address is unknown. Please try again.
LoginBadPass That e-mail and password do not match. Please try again.
LoginBadStatus Sorry, you are not a registered co-op member.

RegisterGreeting Welcome! Please enter the following information to
register.
RegisterMissing Name, E-mail, and password fields must be filled in.
RegisterUserExists Sorry, that e-mail address is already taken. Are you
already registered?
RegisterBadUser The e-mail address provided appears to be invalid. Did you
spell it correctly?
RegisterInvalidPass All passwords must be at least six characters long.
RegisterPassNoMatch The passwords you provided do not match. Please try
again.
RegisterSuccess Congratulations, you have successfully registered.

UpdateGreeting Enter your E-mail and password to update your info.
UpdateBadUser That e-mail address is unknown. Please try again.
UpdateBadPass That e-mail and password do not match. Please try again.
UpdateInvalidPass New passwords must be at least six characters long.
UpdatePassNoMatch The new passwords you provided do not match. Please try
again.
UpdateSuccess Congratulations, you have successfully updated your account.

###### Fin.

_____________________________________________________________________-

###### gateway.conf -- NoCatAuth Gateway Configuration.
#
# Format of this file is: <Directive> <Value>, one per
# line. Trailing and leading whitespace is ignored. Any
# line beginning with a punctuation character is assumed to
# be a comment.


Verbosity 10


GatewayName the NoCat Network

GatewayMode Passive

GatewayLog /usr/local/nocat/gateway/nocat.log

LoginTimeout 600

HomePage http://mixsessions.com/

DocumentRoot /usr/local/nocat/gateway/htdocs

SplashForm splash.html

StatusForm status.html

TrustedGroups Any

Owners rescobedo@********.com

AuthServiceAddr 10.0.200.1 <http://10.0.200.1>

AuthServiceURL https://$AuthServiceAddr/cgi-bin/login

LogoutURL https://$AuthServiceAddr/logout.html


# ExternalDevice

# InternalDevice

LocalNetwork 10.0.200.0/8 <http://10.0.200.0/8>

# DNSAddr 111.222.333.444

AllowedWebHosts mixsessions.com <http://mixsessions.com>

# IncludePorts 22 80 443

# ExcludePorts 23 25 111

ExcludePorts 25

### Fin!

_______________________________________________________________________

# Apache 1.3 sample configuration for NoCat Auth Service.
#
# This sample config assumes you installed NoCatAuth to
/usr/local/nocat/authserv.
# If you installed it elsewhere, you may need to change paths to suit.
#
# This file can be folded into your httpd configuration by adding
# the following line to your httpd.conf:
#
# Include "/usr/local/nocat/authserv/etc/httpd.conf"

# Put this in a virtual host entry, if needed, and don't forget
# the trailing slash.

ScriptAlias /cgi-bin/ /usr/local/nocat/authserv/cgi-bin/

<Directory "/usr/local/nocat/authserv/cgi-bin">
##
# $PERL5LIB tells Perl where to find the NoCat libraries.
##
SetEnv PERL5LIB "/usr/local/nocat/authserv/lib"
SetEnv NOCAT "/usr/local/nocat/authserv/nocat.conf"
</Directory>

#
# Include the following to fix the MSIE + Mac + SSL braindead implementation
#
SetEnvIf User-Agent ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0

#
# End
#


_______________________________________________________________________
#################### httpd.conf ###################################
ServerTokens OS
ServerRoot "/etc/httpd"
PidFile run/httpd.pid
Timeout 120
KeepAlive Off
MaxKeepAliveRequests 100
KeepAliveTimeout 15

<IfModule prefork.c>
StartServers 8
MinSpareServers 5
MaxSpareServers 20
ServerLimit 256
MaxClients 256
MaxRequestsPerChild 4000
</IfModule>

<IfModule worker.c>
StartServers 2
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>

Listen 80

LoadModule access_module modules/mod_access.so
LoadModule auth_module modules/mod_auth.so
LoadModule auth_anon_module modules/mod_auth_anon.so
LoadModule auth_dbm_module modules/mod_auth_dbm.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule ldap_module modules/mod_ldap.so
LoadModule auth_ldap_module modules/mod_auth_ldap.so
LoadModule include_module modules/mod_include.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule logio_module modules/mod_logio.so
LoadModule env_module modules/mod_env.so
LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule cern_meta_module modules/mod_cern_meta.so
LoadModule expires_module modules/mod_expires.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule headers_module modules/mod_headers.so
LoadModule usertrack_module modules/mod_usertrack.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule mime_module modules/mod_mime.so
LoadModule dav_module modules/mod_dav.so
LoadModule status_module modules/mod_status.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule asis_module modules/mod_asis.so
LoadModule info_module modules/mod_info.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule dir_module modules/mod_dir.so
LoadModule actions_module modules/mod_actions.so
LoadModule speling_module modules/mod_speling.so
LoadModule userdir_module modules/mod_userdir.so
LoadModule alias_module modules/mod_alias.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule cache_module modules/mod_cache.so
LoadModule suexec_module modules/mod_suexec.so
LoadModule disk_cache_module modules/mod_disk_cache.so
LoadModule file_cache_module modules/mod_file_cache.so
LoadModule mem_cache_module modules/mod_mem_cache.so
LoadModule cgi_module modules/mod_cgi.so

Include conf.d/*.conf
Include /usr/local/nocat/authserv/httpd.conf

User apache
Group apache

ServerAdmin root@localhost
UseCanonicalName Off

DocumentRoot "/usr/local/nocat/authserv/htdocs"
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>

<Directory "/usr/local/nocat/authserv/htdocs">
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>

<IfModule mod_userdir.c>
UserDir disable
</IfModule>

DirectoryIndex index.html index.html.var
AccessFileName .htaccess

<Files ~ "^\.ht">
Order allow,deny
Deny from all
</Files>

TypesConfig /etc/mime.types
DefaultType text/plain

<IfModule mod_mime_magic.c>
MIMEMagicFile conf/magic
</IfModule>

HostnameLookups Off
ErrorLog logs/error_log
LogLevel warn

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\""
combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
CustomLog logs/access_log combined

ServerSignature On

Alias /icons/ "/var/www/icons/"
<Directory "/var/www/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>

<IfModule mod_dav_fs.c>
DAVLockDB /var/lib/dav/lockdb
</IfModule>

ScriptAlias /cgi-bin/ "/usr/local/nocat/authserv/cgi-bin/"
<Directory "/usr/local/nocat/authserv/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>

IndexOptions FancyIndexing VersionSort NameWidth=*

AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*
AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core
AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^

DefaultIcon /icons/unknown.gif

ReadmeName README.html
HeaderName HEADER.html
IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t

AddLanguage ca .ca
AddLanguage cs .cz .cs
AddLanguage da .dk
AddLanguage de .de
AddLanguage el .el
AddLanguage en .en
AddLanguage eo .eo
AddLanguage es .es
AddLanguage et .et
AddLanguage fr .fr
AddLanguage he .he
AddLanguage hr .hr
AddLanguage it .it
AddLanguage ja .ja
AddLanguage ko .ko
AddLanguage ltz .ltz
AddLanguage nl .nl
AddLanguage nn .nn
AddLanguage no .no
AddLanguage pl .po
AddLanguage pt .pt
AddLanguage pt-BR .pt-br
AddLanguage ru .ru
AddLanguage sv .sv
AddLanguage zh-CN .zh-cn
AddLanguage zh-TW .zh-tw

LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no
pl pt pt-BR ru sv zh-CN zh-TW

ForceLanguagePriority Prefer Fallback
AddDefaultCharset UTF-8
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddHandler type-map var
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml

Alias /error/ "/var/www/error/"

<IfModule mod_negotiation.c>
<IfModule mod_include.c>

<Directory "/var/www/error">
AllowOverride None
Options IncludesNoExec
AddOutputFilter Includes html
AddHandler type-map var
Order allow,deny
Allow from all
LanguagePriority en es de fr
ForceLanguagePriority Prefer Fallback
</Directory>


</IfModule>
</IfModule>


BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0
BrowserMatch "Microsoft Data Access Internet Publishing Provider"
redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully
BrowserMatch "^gnome-vfs" redirect-carefully



::twistedPickles:: :
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.