Edgewall Software
Modify

Opened 18 years ago

Closed 13 years ago

Last modified 11 years ago

#4231 closed enhancement (worksforme)

[patch] Provide ability to map auth usernames to a different svn account

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

Attachments (2)

svn_authz_map.patch (1.2 KB ) - added by Scott MacVicar <scott@…> 18 years ago.
Patch File
svn_map (48 bytes ) - added by Scott MacVicar <scott@…> 18 years ago.
Sample lookup map file

Download all attachments as: .zip

Change History (13)

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

Attachment: svn_authz_map.patch added

Patch File

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

Attachment: svn_map added

Sample lookup map file

comment:1 by Scott MacVicar <scott@…>, 18 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, 18 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@…>, 18 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, 18 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.

comment:5 by Christian Boos, 18 years ago

Keywords: consider added
Milestone: 0.10.50.12

comment:6 by Christian Boos, 15 years ago

Keywords: svnauthz added; authz removed
Milestone: 0.132.0

comment:7 by Christian Boos, 15 years ago

Milestone: 2.0unscheduled

Milestone 2.0 deleted

comment:8 by Remy Blank, 14 years ago

Milestone: triagingnext-major-0.1X

Related to #2456, we should allow defining aliases for users.

comment:9 by Christian Boos, 13 years ago

Resolution: worksforme
Status: newclosed

We support the [alias] section of svn authz files since r9082 (so in 0.12), and this could be used to achieve the same effect as in the proposed patch.

comment:10 by Christian Boos, 13 years ago

Milestone: next-major-0.1X

comment:11 by Ryan J Ollos, 11 years ago

Keywords: authzsourcepolicy added

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christian Boos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christian Boos to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.