Edgewall Software

Opened 17 years ago

Last modified 11 years ago

#4231 closed enhancement

[patch] Provide ability to map auth usernames to a different svn account — at Version 4

Reported by: Scott MacVicar <scott@…> Owned by: Christian Boos
Priority: normal Milestone:
Component: version control Version: 0.10.2
Severity: normal Keywords: svnauthz, consider, authzsourcepolicy
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Christian Boos)

We have a separate authentication system in use with different SVN accounts, we needed to be able to map the authentication system user names to SVN accounts for use in Trac.

Patch is attached as well as a sample file, the only other requirement is adding an entry to the [trac] group of trac.ini:

[trac]
authz_username_map = /www/svn/global_conf/svn_map

Change History (6)

by Scott MacVicar <scott@…>, 17 years ago

Attachment: svn_authz_map.patch added

Patch File

by Scott MacVicar <scott@…>, 17 years ago

Attachment: svn_map added

Sample lookup map file

comment:1 by Scott MacVicar <scott@…>, 17 years ago

Keywords: authz added
Milestone: 0.10.3
Summary: Provide ability to map auth usernames to a different svn account[patch] Provide ability to map auth usernames to a different svn account

comment:2 by Christian Boos, 17 years ago

Thanks for the patch. I guess this is useful in some setups as you wrote the patch, but usually the svn names are also the same as the user names in Trac. Anyone else would find this useful?

Also, can you comment on:

the only other requirement was adding an entry to the Trac group of trac.ini

as I didn't get it.

comment:3 by Scott MacVicar <scott@…>, 17 years ago

I think I wrote the last bit late at night, most likely why it doesn't make sense.

Our internal authentication system and RCS have always been seperate, its only in the past week we've decided to merge everything to use Trac. There isn't a plan to change everyone's SVN user name so this is the only real solution.

It may also help if you want only staff members to have read only access but don't want to create a read only account for each one. You could map certain users to the same read only SVN account. Though that suggests that adding wildcard support might be useful so if it doesn't find a match it has a default.

I will point out that I made the user name comparison case sensitive, not sure if this will be a problem for anyone.

in reply to:  3 comment:4 by Christian Boos, 17 years ago

Description: modified (diff)

Replying to Scott MacVicar <scott@vbulletin.com>:

I think I wrote the last bit late at night, most likely why it doesn't make sense.

He, no problem, actually I think I understood by now, and fixed the description accordingly.

Note: See TracTickets for help on using tickets.