Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 16676 invoked from network); 29 Sep 2005 13:50:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 29 Sep 2005 13:50:46 -0000 Received: (qmail 74791 invoked by uid 500); 29 Sep 2005 13:50:35 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 74782 invoked by uid 500); 29 Sep 2005 13:50:35 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 74761 invoked by uid 99); 29 Sep 2005 13:50:35 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Sep 2005 06:50:34 -0700 X-ASF-Spam-Status: No, hits=1.8 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [66.165.220.50] (HELO mailgate3.knet.ca) (66.165.220.50) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Sep 2005 06:50:40 -0700 Received: from localhost (localhost.localdomain [127.0.0.1]) by mailgate3.knet.ca (Postfix) with ESMTP id 5EB493742C for ; Thu, 29 Sep 2005 08:50:11 -0500 (CDT) Received: from mailgate3.knet.ca ([127.0.0.1]) by localhost (mailgate3.knet.ca [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26606-01 for ; Thu, 29 Sep 2005 08:50:08 -0500 (CDT) Received: from [69.71.68.118] (118-68-71-69.rev.knet.ca [69.71.68.118]) by mailgate3.knet.ca (Postfix) with ESMTP id BC8163741F for ; Thu, 29 Sep 2005 08:50:08 -0500 (CDT) Message-ID: <433BF117.3000407@knet.ca> Date: Thu, 29 Sep 2005 08:50:15 -0500 From: Terence Burnard User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: users@httpd.apache.org References: <4339D6A8.2030700@knet.ca> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at knet.ca X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] CGI wont read STDIN/POST X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N > On 9/27/05, Terence Burnard wrote: > >>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. > > > I had to google to figure out what the heck AuthScriptURI is. It > belongs to mod_auth_script, which I have never seen before. > > I think your solution is going to be to use a different auth module. > There are apache modules that allow you to auth directly against ldap > rather than going through a php script. > > If I had to guess what was happening, I would say that php is sucking > up the post contents, because it does not know that it is being called > as an auth handler and not as a content handler. I doubt that is > fixable. > > Joshua. > Thanks for the lead, it helped me fix the problem. It turned out to be mod_auth_script(1.03), all I did was upgrade it to 1.10 and everything is working great. Terence --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org