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

Re: Change "Author" name in SVN log

From: Craig McQueen <ces-tigris_at_mcqueen.id.au>
Date: Tue, 21 Jul 2009 11:07:14 +0900

mercuryman wrote:
> I have setup SVN server with Apache 2 that serves multiple repositories and
> LDAP as authentication agent. Its up and running well. The user ID in LDAP
> database is an alpha-numeric ID like e032408. As this user ID is associated
> with svn commit & svn log output shows this ID as "Author". This maks it
> difficult to know who did the commit. Is there a way to replace/change this
> ID & have SVN read user's "CN" from LDAP database & add it to svn log? Any
> help is greatly appriciated. Here is my conf file.
>
> # Load Subversion Apache Modules
> LoadModule dav_svn_module modules/mod_dav_svn.so
> LoadModule authz_svn_module modules/mod_authz_svn.so
>
> CustomLog logs/svn_logfile "%t %u %{SVN-ACTION}e" env=SVN-ACTION
>
> <Location />
> AuthType Basic
> AuthBasicProvider ldap
> AuthzLDAPAuthoritative off
> AuthName "Subversion repository"
> AuthLDAPURL
> "ldap://ldap.server.com/dc=server,dc=com?uid?sub?(objectClass=*)"
> AuthLDAPBindDN
> uid=svcSubversion,ou=ServiceAccounts,ou=Users,dc=server,dc=com
> AuthLDAPBindPassword password
>
> Require valid-user
> </Location>
>
> <Location /svn>
> DAV svn
> SVNParentPath /mnt/scm/subversion
> SVNListParentPath On
> SVNReposName "Subversion repository"
>
> AuthzSVNAccessFile /etc/httpd/conf.d/access_file
>
> Satisfy Any
> Authname "Subversion repositry"
> </Location>
>

Try using the AuthLDAPRemoteUserAttribute directive in Apache.

E.g. if you're using Windows Active Directory:
AuthLDAPRemoteUserAttribute userPrincipalName

which, if using Windows Active Directory, fills REMOTE_USER with e.g.:
cmcqueen_at_mycompany.com.au

Note that userPrincipalName must be listed as one of the attributes in
the AuthLDAPUrl line.

Regards,
Craig McQueen

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2372794

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-07-21 04:08:24 CEST

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.