php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #40128 add htpasswd function to Apache2 connectors
Submitted: 2007-01-14 16:47 UTC Modified: 2021-09-12 04:22 UTC
Votes:12
Avg. Score:4.4 ± 1.2
Reproduced:8 of 9 (88.9%)
Same Version:7 (87.5%)
Same OS:7 (87.5%)
From: gk at gknw dot de Assigned: cmb (profile)
Status: No Feedback Package: *General Issues
PHP Version: 5.2.0 OS: all
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: gk at gknw dot de
New email:
PHP Version: OS:

 

 [2007-01-14 16:47 UTC] gk at gknw dot de
Description:
------------
Its often needed to generate an Apache password for authentication. At least on NetWare and Win32 its a nightmare to execute the htpasswd bin from Apache; and even on Linux it might not be possible due to safemode restrictions. Therefore I've created a patch for the Apache2 filter and handler module:
filter:
http://www.gknw.net/test/php_issues/apache2filter_php_functions.c.diff
handler:
http://www.gknw.net/test/php_issues/apache2handler_php_functions.c.diff-2
I have successfully tested this patch on NetWare platform;
and it should work on all other platforms too.
Here's a test script to verify the new function:
http://www.gknw.net/test/php_issues/tap_htpasswd.php
would be great if this could make it into next release.
Thanks!



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-01-14 23:39 UTC] gk at gknw dot de
Just found that the previous patches were slightly incomplete because the Apache headers for the prototypes were missing; have fixed that now, here are the new new patches:
apache2filter:
http://www.gknw.net/test/php_issues/ap2filter_php_functions.c.diff
apache2handler:
http://www.gknw.net/test/php_issues/ap2handler_php_functions.c.diff
Have now also successfully tested this on Win32 with the apache2handler module.
Here's a new working sample for testing:
http://www.mailkastl.at/tstphp/tap_htpasswd.php
Download of the sample:
http://www.gknw.net/test/php_issues/tap_htpasswd.php
 [2021-08-31 09:54 UTC] cmb@php.net
-Status: Open +Status: Feedback -Package: Feature/Change Request +Package: *General Issues -Assigned To: +Assigned To: cmb
 [2021-08-31 09:54 UTC] cmb@php.net
Apparently, these patches are no longer available.  If you're
still interested in this feature, please provide a pull
request[1].

[1] <https://github.com/php/php-src/pulls>
 [2021-09-12 04:22 UTC] php-bugs at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Sep 19 00:03:39 2021 UTC