You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by John D Groenveld <jd...@elvis.arl.psu.edu> on 2004/06/14 23:34:50 UTC
[mp2] Authen handler with htgroup authorization
Is using a Perl Authen Handler with Apache AuthGroupFile supported?
If not, I'll write an Authz handler, but I didn't see it documented.
AuthName test
AuthType Basic
PerlAuthenHandler My::AuthenOK
AuthGroupFile /tmp/htgroup
Require group test
$ /opt/perl-5.8.4/bin/HEAD http://lx50:9090
Enter username for test at lx50:9090:
401 Authorization Required
Connection: close
Date: Mon, 14 Jun 2004 21:24:55 GMT
Server: Apache/2.0.49 (Unix) mod_perl/1.99_13 Perl/v5.8.4 DAV/2
WWW-Authenticate: Basic realm="test"
Content-Type: text/html; charset=iso-8859-1
Client-Date: Mon, 14 Jun 2004 21:24:55 GMT
Client-Peer: 146.186.196.136:9090
Client-Response-Num: 1
$ uname -srp
SunOS 5.9 i386
$ pstack core
core 'core' of 7301: /opt/apache2/bin/httpd -d /home/lx50.1/jdg117/ap9090 -X
d238f539 strcmp (82c2b28, 0) + 115
d2250b41 groups_for_user (82baac8, 0, 80f8ee0) + d8
d2250d33 check_user_access (82bab00) + 6e
08085d29 ap_run_auth_checker (82bab00) + 26
08086225 ap_process_request_internal (82bab00) + 2a3
08087742 ap_sub_req_method_uri () + a2
08087776 ap_sub_req_lookup_uri (80f8f70, 82bcb08, 0) + 16
d1ec0904 fixup_dir (82bcb08) + 1d4
08085a29 ap_run_fixups (82bcb08) + 26
0808624e ap_process_request_internal (82bcb08) + 2cc
080707c0 ap_process_request (82bcb08) + 1d
0806c5ed ap_process_http_connection (8296a78) + 5b
0807b829 ap_run_process_connection (8296a78) + 26
0807baee ap_process_connection (8296a78, 82969a0) + 37
08071ad8 child_main (0) + 346
08071bd1 make_child (80b9df8, 0) + 5a
08071cc8 startup_children (5) + 36
08071f9d ap_mpm_run (80b8058, 80e2100, 80b9df8) + 12a
080775e9 main (4, 8047710, 8047724) + 615
0806c1fa ???????? ()
John
groenveld@acm.org
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html
Re: [mp2] Authen handler with htgroup authorization
Posted by Geoffrey Young <ge...@modperlcookbook.org>.
John D Groenveld wrote:
> Is using a Perl Authen Handler with Apache AuthGroupFile supported?
> If not, I'll write an Authz handler, but I didn't see it documented.
>
> AuthName test
> AuthType Basic
> PerlAuthenHandler My::AuthenOK
> AuthGroupFile /tmp/htgroup
> Require group test
> Server: Apache/2.0.49 (Unix) mod_perl/1.99_13 Perl/v5.8.4 DAV/2
can you try current CVS if you get the chance?
>
> $ pstack core
> core 'core' of 7301: /opt/apache2/bin/httpd -d /home/lx50.1/jdg117/ap9090 -X
> d238f539 strcmp (82c2b28, 0) + 115
> d2250b41 groups_for_user (82baac8, 0, 80f8ee0) + d8
oops :)
I'll try to investigate it this week. is your PerlAuthenHandler just
returning OK? and I am assuming that the mp2 test suite passes ok as well?
--Geoff
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html