[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: short user names with ssl client certs?

From: Andreas Jellinghaus <aj_at_dungeon.inka.de>
Date: 2005-01-22 20:24:42 CET

Hi Dominic,

thanks a lot, your code works great.

Regards, Andreas

> You should be able to use a small mod_perl2 handler to fix this.
> Assuming you've got mod_perl2 installed that is. Something like this
> might work (untested).
>
> # FixupFakeBasicAuth.pm
> package FixupFakeBasicAuth;
> use strict;
> use mod_perl 1.99_12;
> use Apache::Const -compile => qw( OK );
> use Apache::RequestRec ();
>
> # Pull out the username from the email and set it to be the
> # username.
> sub handler {
> my $r = shift;
> my ( $uid ) = $r->user =~ m/emailAddress=([^@]+)@/i;
> $r->user( $uid ) if $uid;
> return Apache::OK;
> }
> 1;
>
> You need to configure it like this:
>
> PerlModule Apache2
> PerlModule FixupFakeBasicAuth
> <Location /svn>
> PerlFixupHandler FixupFakeBasicAuth
> </Location>
>
> -Dom

-- 
---------------------[ Ciphire Signature ]----------------------
From: aj@dungeon.inka.de signed email body (651 characters)
Date: on 22 January 2005 at 19:23:19 UTC
To:   dom@happygiraffe.net, users@subversion.tigris.org
----------------------------------------------------------------
: Ciphire has secured this email against identity theft.
: Free download at www.ciphire.com. The garbled lines
: below are the sender's verifiable digital signature.
----------------------------------------------------------------
00fAAAAAEAAAAnqPJBiwIAAAwDAAIAAgACACBQ2JmUgw78JvBqhaOBPOsMFbVDS6
UaQIxcChG5IhzQhgEA0eMp7V0xI9MrMhC47uaTDnnuTnqi6z9oLEuev70rCXuaZ8
KtTfKhIpBLbDgE1q87xAHHDOzxQRgGucUQtnBcNg==
------------------[ End Ciphire Signed Message ]----------------
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Jan 22 20:32:17 2005

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.