You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Wesley J. Landaker" <wj...@icecavern.net> on 2006/10/24 16:16:48 UTC
[SOLVED] Re: Mapping Apache usernames -> subversion usernames
On Friday, 20 October 2006 16:49, Wesley J. Landaker wrote:
> For example, I am using apache2 with mod_auth_kerb so usernames show up
> as "user@REALM.EXAMPLE.ORG".
[...]
> Since every user maps to user@example.org, and there only is one realm, I
> would like them to show up in subversion simply as "user". It seems like
> there has got to be a way[1] to do this easily, either via subversion or
> apache.
Well, after messing around with mod_auth_kerb a little bit and looking at it's
crazy code, I realized that it was going to be easiest to take another path:
Now I'm just using mod_auth_pam. I use the following apache config:
<Location /svn/XXX>
DAV svn
SVNPath /srv/svn/repos/XXX
SSLRequireSSL
AuthPAM_Enabled on
AuthType Basic
Require valid-user
AuthName "XXX Subversion Repository"
AuthzSVNAccessFile /srv/svn/repos/XXX/conf/authz.conf
</Location>
Since I do not have nor want actual local users on my system for every person
accessing Subversion, I then use an apache2 pam config something like this:
auth required pam_krb5.so ignore_root
account required pam_krb5.so
Anyway, maybe that will help if anyone else is trying to do something similar.
--
Wesley J. Landaker <wj...@icecavern.net>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org