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

Hook Script to change username case

From: Reinhard Brandstaedter <reinhard.brandstaedter_at_ams-engineering.com>
Date: 2005-10-25 09:27:25 CEST


I'm using Subversion on Apache on a Linux box. I've implemented
per-directory access (authz file) for every repository and
authentication from Apache via pam_radius connected to Microsoft IAS
(Active Directory).

All of my Windows users log in with their windows login (which is a 4
letter word). As known, Windows users tend to be not case-sensitive as
Windows itself is not case-sensitive with usernames etc.

So in the Subversion authz file I specify the same usernames as in the
windows domain but SVN differs between the case.

Is there a way (hook script) to convert the client-supplied username to
lower case, so I only can use a lower case username in the authz file

The user "BrRe" can authenticate to windows (and thus to subversion)
with "brre" "BRRE" "bRRe". But if I grant this user rights in the
authzfile with

BrRe = rw

This user can only write to the trunk if the user supplied his name
exactly as "BrRe".
I kept telling my clients to use the right case but I think 90% of my
support-calls still are related to username case.

My question:
Is it possible to change the username case (to lower) via hook script so
that the whole commit process uses the lower case username, transparent
to the user itself?
If not via hook script, is there a way to do this in apache?


To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Oct 25 09:30:27 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.