Edgewall Software
Modify

Opened 13 years ago

Closed 3 years ago

Last modified 3 years ago

#10064 closed defect (wontfix)

Can't change permissions if userid is all uppercase

Reported by: anonymous Owned by:
Priority: normal Milestone:
Component: general Version: 0.12-stable
Severity: major Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Jun Omae)

If you're using smart cards and your Common Name (CN) is somthing like SMITH.JOHN.1234567890, then trying to make this user an admin will fail:

# trac-admin . permission add SMITH.JOHN.1234567890 TRAC_ADMIN
# Error: All upper-cased tokens are reserved for permission names

This topic is diccussed in ticket #2790 where it was decided that it was an error if the userid was all uppercase.

It works if you use the Distinguished Name (DN):

# trac-admin . permission add "/C=US/O=Acme Co./OU=DoD/OU=PKI/OU=EMPLOYEE/CN=SMITH.JOHN.1234567890" TRAC_ADMIN

Is there a fix or work around for this?

Attachments (0)

Change History (6)

comment:1 by anonymous, 13 years ago

Looks like maybe I can remove the code that was added in Changeset 9593.

comment:2 by Carsten Klein <carsten.klein@…>, 13 years ago

+1 for removing this restriction

comment:3 by osimons, 13 years ago

Setting [trac] ignore_auth_case = true in trac.ini should lower-case all usernames, which should be a useable workaround as Trac will only ever see lower-case versions of the CN.

comment:4 by Christian Boos, 12 years ago

Milestone: unscheduled
Priority: highnormal

PatchWelcome (with a commit log showing that the reasons why the test was introduced are well understood and why this is no longer a concern).

comment:5 by Ryan J Ollos, 3 years ago

Milestone: unscheduled
Resolution: wontfix
Status: newclosed

Closing since we have a workaround and I doubt we would want to allow all-uppercase usernames.

comment:6 by Jun Omae, 3 years ago

Description: modified (diff)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) 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.