# \[SOLVED\] Login error 400, taiga/admin doesnt have load files

**URL:** <https://community.taiga.io/t/solved-login-error-400-taiga-admin-doesnt-have-load-files/1088>\
**Category:** Third party\
**Tags:** ldap, thirdparty\
**Created:** [April 22, 2023, 9:21pm UTC](https://community.taiga.io/t/solved-login-error-400-taiga-admin-doesnt-have-load-files/1088 "2023-04-22T21:21:38Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pavel\_Fankhauser](https://dub1.discourse-cdn.com/flex017/user_avatar/community.taiga.io/pavel_fankhauser/32/943_2.png) [@Pavel\_Fankhauser](https://community.taiga.io/u/Pavel_Fankhauser)\
**Post date:** [April 22, 2023, 9:21pm UTC](https://community.taiga.io/t/solved-login-error-400-taiga-admin-doesnt-have-load-files/1088/1 "2023-04-22T21:21:39Z")

</div>

Hello,  
i have issues with the taiga login (i use my admin account).  
I have ldap plugin installed ([Pull requests · Monogramm/taiga-contrib-ldap-auth-ext · GitHub](https://github.com/Monogramm/taiga-contrib-ldap-auth-ext/pulls)) and i get same errors login in with an user from the domain.

I get following error message:

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/taiga/original/1X/3bd1d15e1e3033823ba7c12757dcd02f821514b1.png)

Including this: {“\_error\_message”: “Method ‘GET’ not allowed.”, “\_error\_type”: “taiga.base.exceptions.MethodNotAllowed”}

Also the admin page doesnt load some resources:  
“Failed to load resource: the server responded with a status of 404 (Not Found)”  
“nav\_sidebar.css:1”

Nginx error log:  
1006#1006: \*8 open() “/home/taiga/taiga-back/static/admin/css/responsive.css” failed (2: No such file or directory), client: 10.12.126.54, server: taiga.bl.ch, request: “GET /static/admin/css/responsive.css HTTP/1.1”, host: “taiga.bl.ch”, referrer: “[https://taiga.bl.ch/admin/](https://taiga.bl.ch/admin/)”

I reinstalled taiga-back, then added the previous config. Problem still here.

Ill be happy for some help.

Many thanks,  
Pavel Fankhauser

---

<div class="post-metadata">

**Author:** ![Pavel\_Fankhauser](https://dub1.discourse-cdn.com/flex017/user_avatar/community.taiga.io/pavel_fankhauser/32/943_2.png) [@Pavel\_Fankhauser](https://community.taiga.io/u/Pavel_Fankhauser)\
**Post date:** [April 23, 2023, 4:29pm UTC](https://community.taiga.io/t/solved-login-error-400-taiga-admin-doesnt-have-load-files/1088/2 "2023-04-23T16:29:01Z")

</div>

Hello again,

I solved the missing files error, the admin page works again.

I still have the 400 error on login. Ldap user and normal.

I changed my config a couple of times.  
Some configurations allowed me to log in with my admin account but not with any other. Not sure which config it is tho…

If anyone know what it could be ill be happy for some help.

Many thanks,  
Pavel Fankhauser

---

<div class="post-metadata">

**Author:** ![Pavel\_Fankhauser](https://dub1.discourse-cdn.com/flex017/user_avatar/community.taiga.io/pavel_fankhauser/32/943_2.png) [@Pavel\_Fankhauser](https://community.taiga.io/u/Pavel_Fankhauser)\
**Post date:** [April 25, 2023, 1:40pm UTC](https://community.taiga.io/t/solved-login-error-400-taiga-admin-doesnt-have-load-files/1088/3 "2023-04-25T13:40:36Z")

</div>

Hello,  
I tested it again.

I found that i can log in using my created users via the admin console.

The registration works suddently for some reason… 5 min ago it didnt work.

Ldap doesnt work.  
I get error 500: POST [https://taiga.bl.ch/api/v1/auth](https://taiga.bl.ch/api/v1/auth) 500 (Internal Server Error)

![image](https://europe1.discourse-cdn.com/flex017/uploads/taiga/original/1X/a8761490764f936f557c8ce5c8beedf2b7fdc819.png)

---

<div class="post-metadata">

**Author:** ![Pavel\_Fankhauser](https://dub1.discourse-cdn.com/flex017/user_avatar/community.taiga.io/pavel_fankhauser/32/943_2.png) [@Pavel\_Fankhauser](https://community.taiga.io/u/Pavel_Fankhauser)\
**Post date:** [April 26, 2023, 6:16am UTC](https://community.taiga.io/t/solved-login-error-400-taiga-admin-doesnt-have-load-files/1088/4 "2023-04-26T06:16:31Z")

</div>

Hello again.

I fixed it.

I had to uncomment this one:

# To enable the function above, uncomment the line below to store the function in the variable

LDAP\_MAP\_USERNAME\_TO\_UID = \_ldap\_slugify \<—

Didnt read the whole config.

Sorry for the inconvenience.

Kind regards,  
Pavel Fankhauser

---

<div class="post-metadata">

**Author:** ![david.barragan](https://dub1.discourse-cdn.com/flex017/user_avatar/community.taiga.io/david.barragan/32/293_2.png) [@david.barragan](https://community.taiga.io/u/david.barragan)\
**Post date:** [April 26, 2023, 8:23am UTC](https://community.taiga.io/t/solved-login-error-400-taiga-admin-doesnt-have-load-files/1088/5 "2023-04-26T08:23:17Z")

</div>

Hi, @Pavel_Fankhauser

I’m glad you were finally able to get it working. I don’t know the ldap plugin so I can’t help much there. I have two comments about how to debug errors.

- If the error is in back, ia in some API call (an HTTP 500), you will not see any trace in the browser. It’s better to review the taiga-back logs. You can also enable debug mode by adding `DEBUG = True` in the settings (`local.py`).
- Although I don’t know how the ldap plugin works exactly. I know that the Api and Django Admin Panel authentication system are not the same. It is likely that the plugin only modifies the API and to access to the admin panel, you can only use a Taiga user with her credentials (created with `createsuperuser`).

Best regards
