[users@httpd] CGI wont read STDIN/POST

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I have been working for a while trying to get Nagios working with
apache.  This is the .htaccess configuration for the directory that the
cgis are in:

AuthName "Nagios Access"
AuthType Basic
#AuthScriptURI "/htlogin/ldap.php?filter=nagios"
require valid-user
AuthUserFile /home/nagios/nagios.users

Now if you notice, the AuthScriptURI is commented out. This is the the
configuration that works.

If I uncomment AuthScriptURI and comment out AuthUserFile, my browser
locks up on this line in the cgi:
     if(!fread(cgiinput,content_length,1,stdin)){
The cgi can retrieve CONTENT_LENGTH and CONTENT_TYPE from the environment.


Now the question I have is:

What configuration would prevent the cgi script from reading the POST
variables on STDIN when the script works fine with AuthUserFile but
hangs on a 'fread' with AuthScriptURI?

The ldap.php script works properly on GET requests, but as mentioned
hangs on POST.


Thanks,


Terence

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux