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

Re: Author name modification on the fly

From: Andrey Repin <anrdaemon_at_freemail.ru>
Date: Sun, 19 Apr 2009 22:03:44 +0400

Greetings, Mark Phippard!

>> I deployed a subversion server using apache and kerberos to authenticate the
>> users. The problem with kerberos is that the username is long, it includes
>> the kerberos realm. It's also a problem because I plan to deploy a slave
>> server wich will use another authentication scheme and I would like to keep
>> the log homogeneous.
>> Is it possible to modify the author name (by removing the realm) with a
>> hook?

> You can either use a pre-commit hook to change the author name in the
> TXN for the commit or a post-commit hook to change the revprop after
> the commit finishes. The pre-revprop-change hook would have to be
> enabled and allow you to do the latter.

> Using the post-commit hook would be the easiest way and would be how I did it.

Just a question.
Could the authentication engine do this work for you?
I.e., mod_auth_sspi can strip domain part and provide only username to the
demanding application. (However, it's still only stripped from result, after
the user has been verified)

 Andrey Repin (anrdaemon_at_freemail.ru) 19.04.2009, <22:01>
Sorry for my terrible english...
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-04-19 20:06:07 CEST

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