You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm creating a website with django for the first time and I needed the users to be authenticated with Active Directory so I used django-windowsauth package, but now when someone logs in for the first time their username is in DOMAIN\USERNAME format, therefore when I want to change their permissions in /admin/ it says the username can't contain backslash! I have read the django-windowsauth documentation but couldn't find anything on this.
I tried changing the DOMAIN\USERNAME to USERNAME and I was able to save the changes but upon next login a new user was created as DOMAIN\USERNAME. to avoid this I used the database to change the username back to DOMAIN\USERNAME , but this is not practical after production.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm creating a website with django for the first time and I needed the users to be authenticated with Active Directory so I used django-windowsauth package, but now when someone logs in for the first time their username is in DOMAIN\USERNAME format, therefore when I want to change their permissions in /admin/ it says the username can't contain backslash! I have read the django-windowsauth documentation but couldn't find anything on this.
I tried changing the DOMAIN\USERNAME to USERNAME and I was able to save the changes but upon next login a new user was created as DOMAIN\USERNAME. to avoid this I used the database to change the username back to DOMAIN\USERNAME , but this is not practical after production.
Beta Was this translation helpful? Give feedback.
All reactions