[pubcookie-users] login.cgi errors
Breeze P. Howard
bhoward at acns.fsu.edu
Wed Feb 19 12:35:13 PST 2003
When I go to my webpage that is protected by Pubcookie using the .htaccess
file, it does redirect me to the login.cgi script correctly. But the
login.cgi script gives me an "Internal Server Error".
The webpage is http://wireless.fsu.edu/testapp
and the redirect is to https://wireless.fsu.edu/cgi-bin/login.cgi
At first, the errors that were coming up in the apache error_log were
ld.so.1: login.cgi: fatal: libldap.so.2: open failed: No such file or
directory
[Tue Feb 18 11:08:32 2003] [error] [client 146.201.3.44]
Premature end of script headers: /usr/local/apache/cgi-bin/login.cgi
I put some sym links into /usr/lib, so it could find
/usr/local/lib/libldap.so.2 and liblber.so.2. And now the only error I am
getting is the second one. "Premature end of script headers".
I know there is a probably a better way to fix the first error, but I'm
not too concerned with it now since I "fixed" it... I only mention it, in
case it is relevant to the rest of the problem.
Also, I should mention that when I run the login.cgi from the command
line, it gives me what looks like normal output. I included it below
along with all of my system specs and config excerps.
Any help or direction you guys can give me would be appreciated.
Thanks, Breeze
System specs:
-------------
Solaris 8
Sun Fire 280
Pubcookie 3.0.0beta3 (login and app server on same machine)
login server built with enable-ldap auth.
Apache 1.3.27 (DSO support)
openSSL 0.9.6g
mod_ssl 2.8.12-1.3.27
In my httpd.conf
----------------
AllowOverride AuthConfig
<IfDefine SSL>
PubcookieAuthTypeNames basic_flavor
PubcookieInactiveExpire -1
PubcookieLogin https://wireless.fsu.edu/cgi-bin/login.cgi
</IfDefine>
in my .htaccess
----------------
AuthType basic_flavor
require valid-user
Output of login.cgi when run from command line
----------------------------------------------
Pragma: No-Cache
Cache-Control: no-store, no-cache, must-revalidate
Expires: Sat, 1 Jan 2000 01:01:01 GMT
Content-Type: text/html
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<SCRIPT LANGUAGE="JavaScript">
window.location.replace("https://");
</SCRIPT>
<NOSCRIPT>
<meta http-equiv="Refresh" content="0;URL=https://">
</NOSCRIPT>
<title>pubcookie redirect</title>
</head>
<body bgcolor="white">
<!--redirecting to https://-->
</body>
</html>
---------------------
Breeze P. Howard
bhoward at acns.fsu.edu
(850) 644-2591
Academic Computing & Networking Services
Florida State University
More information about the pubcookie-users
mailing list