Opened 4 years ago

Closed 4 years ago

#31161 closed Bug (duplicate)

Remote User - user name with "\".

Reported by: MarcinP94 Owned by: nobody
Component: contrib.auth Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Hi,
I launched ActiveDirectory in my project (on the IIS server) by adding the following library in setting.py:
"Django.contrib.auth.middleware.AuthenticationMiddleware", "django.contrib.auth.middleware.RemoteUserMiddleware".

Therefore, everyone to visit the website has been automatically created an account with the user name with order "companty\ id".
Aftherthat i cannot create any properties for that account because char "\" is prohibited. Is any chance to solve this issue ?

Regards,
Marcin

Change History (1)

comment:1 by Mariusz Felisiak, 4 years ago

Resolution: duplicate
Status: newclosed
Summary: Remote User - user name with "\"Remote User - user name with "\".
Version: 2.2master

Duplicate of #18101. You should create and use a custom user model (with different username's validators).

Note: See TracTickets for help on using tickets.
Back to Top