#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 )
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 , 14 years ago
comment:3 by , 14 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 , 13 years ago
Milestone: | → unscheduled |
---|---|
Priority: | high → normal |
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 , 4 years ago
Milestone: | unscheduled |
---|---|
Resolution: | → wontfix |
Status: | new → closed |
Closing since we have a workaround and I doubt we would want to allow all-uppercase usernames.
comment:6 by , 4 years ago
Description: | modified (diff) |
---|
Looks like maybe I can remove the code that was added in Changeset 9593.