Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 93546 invoked from network); 26 Mar 2006 10:07:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Mar 2006 10:07:36 -0000 Received: (qmail 58017 invoked by uid 500); 26 Mar 2006 10:07:31 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 57991 invoked by uid 500); 26 Mar 2006 10:07:30 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 57980 invoked by uid 99); 26 Mar 2006 10:07:30 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 26 Mar 2006 02:07:30 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of tomAtLinux@gmx.at designates 213.165.64.20 as permitted sender) Received: from [213.165.64.20] (HELO mail.gmx.net) (213.165.64.20) by apache.org (qpsmtpd/0.29) with SMTP; Sun, 26 Mar 2006 02:07:29 -0800 Received: (qmail invoked by alias); 26 Mar 2006 10:07:07 -0000 Received: from mail.bestsolution.at (EHLO [192.168.100.12]) [83.64.113.2] by mail.gmx.net (mp017) with SMTP; 26 Mar 2006 12:07:07 +0200 X-Authenticated: #6137719 Message-ID: <442667C6.7090601@gmx.at> Date: Sun, 26 Mar 2006 12:07:02 +0200 From: Tom Schindl User-Agent: Mozilla Thunderbird 1.0.7-4mdk (X11/20051221) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Dennis Sinelnikov CC: modperl@perl.apache.org Subject: Re: Controlling subversion access References: <20060325223420.1EAEF10FB000@asf.osuosl.org> In-Reply-To: <20060325223420.1EAEF10FB000@asf.osuosl.org> X-Enigmail-Version: 0.93.0.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigC95A11CA32B7AD435CE9F488" X-Y-GMX-Trusted: 0 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigC95A11CA32B7AD435CE9F488 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Hi Dennis, first of all it would be nice if you could tell us what version of Apache/mod-perl you are running. Second I'm not sure I userstand what you are trying to do because I'm not very familiar with SSL and DAV. If I'm not completely mistaken things like $ENV{SSL_CLIENT_S_DN} are set on request time and not on startup where the perl-sections in your httpd.conf are parsed. What you need to implement is a handler which is working after mod_ssl has done it's job and before mod_dav is doing its job but therefore you must know in which phase of Apache they are working= =2E If elaborate a bit more I'm sure we (mod_perl) can help you ;-) Tom Dennis Sinelnikov wrote: > Dear fellow developers, >=20 > =20 >=20 > Here is what I=92m trying to do in my httpd-ssl.conf: >=20 > =20 >=20 > >=20 > $client_dn =3D $ENV{SSL_CLIENT_S_DN}; >=20 > $client_dn =3D~ /.*UID=3D(.*)$/; >=20 > $client_uid =3D $1; >=20 > =20 >=20 > $Location{"/svnroot"} =3D { >=20 > DAV =3D> 'svn', >=20 > SVNPath =3D> '/home/svnroot', >=20 > SSLUserName =3D> $client_uid, >=20 > AuthzSVNAccessFile =3D> '/usr/local/apache2/conf/svnauthorizati= on' >=20 > } >=20 > >=20 > =20 >=20 > Obviously, the above code is not quite right (otherwise I would not be > emailing everyone ;) >=20 > Basically, I=92m trying to parse the UID off of the Client=92s certific= ate > DN and use it to set SSLUserName, so I can later use that uid in > svnauthorization file to control read/write privileges of my subversion= > repository per user basis. The reason why I need to parse UID off of > the DN is because for some reason SSL_CLIENT_S_DN_UID is not getting > set, but I see it in my log when I log the full DN (bug?). If anyone > had to do similar authorization using the client cert, please let me > know and any suggestions are welcome.=20 >=20 > Thanks much! >=20 > Dennis >=20 --------------enigC95A11CA32B7AD435CE9F488 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Using GnuPG with Mandriva - http://enigmail.mozdev.org iD8DBQFEJmfKkVPeOFLgZFIRArZZAJkB39eOBMg8NADzXryKbf93ivBHwwCfQOfK NdxAsl8RjDHJcc1hLnxknVg= =jXHJ -----END PGP SIGNATURE----- --------------enigC95A11CA32B7AD435CE9F488--