# Login does not work after reboot

**URL:** <https://community.taiga.io/t/login-does-not-work-after-reboot/826>\
**Category:** Self hosted Taiga\
**Created:** [March 1, 2023, 3:16pm UTC](https://community.taiga.io/t/login-does-not-work-after-reboot/826 "2023-03-01T15:16:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonas](https://dub1.discourse-cdn.com/flex017/user_avatar/community.taiga.io/jonas/32/698_2.png) [@Jonas](https://community.taiga.io/u/Jonas)\
**Post date:** [March 1, 2023, 3:16pm UTC](https://community.taiga.io/t/login-does-not-work-after-reboot/826/1 "2023-03-01T15:16:33Z")

</div>

Hello,

I have changed the password of a user. After that I restarted Taiga once (runs in Docker). Now no user can log in and the following error message appears:  
Content-Type: text/plain; charset=“utf-8”  
MIME-Version: 1.0  
Content-Transfer-Encoding: 7bit  
Subject: [Django] ERROR (EXTERNAL IP): Internal Server Error: /api/v1/auth  
From: root@localhost  
To: [example@example.com](mailto:example@example.com)  
Date: Mon, 27 Feb 2023 10:51:10 -0000  
Message-ID: [167749507039.42.13139045575238632615@8026e75c3e08](mailto:167749507039.42.13139045575238632615@8026e75c3e08)

Internal Server Error: /api/v1/auth

## Exception Value: slugify\_uniquely() missing 1 required positional argument: ‘model’ Request information: USER: AnonymousUser

ERROR:2023-02-27 10:51:10,379: Internal Server Error: /api/v1/auth  
Traceback (most recent call last):  
File “/opt/venv/lib/python3.7/site-packages/django/core/handlers/exception.py”, line 34, in inner  
response = get\_response(request)  
File “/opt/venv/lib/python3.7/site-packages/django/core/handlers/base.py”, line 115, in \_get\_response  
response = self.process\_exception\_by\_middleware(e, request)  
File “/opt/venv/lib/python3.7/site-packages/django/core/handlers/base.py”, line 113, in \_get\_response  
response = wrapped\_callback(request, \*callback\_args, \*\*callback\_kwargs)  
File “/taiga-back/taiga/base/api/viewsets.py”, line 95, in view  
return self.dispatch(request, \*args, \*\*kwargs)  
File “/opt/venv/lib/python3.7/site-packages/django/views/decorators/csrf.py”, line 54, in wrapped\_view  
return view\_func(\*args, \*\*kwargs)  
File “/taiga-back/taiga/base/api/views.py”, line 449, in dispatch  
response = self.handle\_exception(exc)  
File “/taiga-back/taiga/base/api/views.py”, line 447, in dispatch  
response = handler(request, \*args, \*\*kwargs)  
File “/taiga-back/taiga/auth/api.py”, line 77, in create  
data = auth\_plugins[login\_type]‘login\_func’  
File “/opt/venv/lib/python3.7/site-packages/taiga\_contrib\_ldap\_auth\_ext/services.py”, line 82, in ldap\_login\_func  
username=username, email=email, full\_name=full\_name, password=password\_input)  
File “/usr/local/lib/python3.7/contextlib.py”, line 74, in inner  
return func(\*args, \*\*kwds)  
File “/opt/venv/lib/python3.7/site-packages/taiga\_contrib\_ldap\_auth\_ext/services.py”, line 100, in register\_or\_update  
username\_unique = SLUGIFY(username)  
TypeError: slugify\_uniquely() missing 1 required positional argument: ‘model’

---

<div class="post-metadata">

**Author:** ![daniel.herrero](https://dub1.discourse-cdn.com/flex017/user_avatar/community.taiga.io/daniel.herrero/32/301_2.png) [@daniel.herrero](https://community.taiga.io/u/daniel.herrero)\
**Post date:** [March 3, 2023, 8:28am UTC](https://community.taiga.io/t/login-does-not-work-after-reboot/826/2 "2023-03-03T08:28:30Z")

</div>

Hi @Jonas,

Reviewing your logs it’s an unsupported LDAP extension the responsible of causing that exception when trying to log in into Taiga.

Your logs…

```auto
File “/opt/venv/lib/python3.7/site-packages/taiga_contrib_ldap_auth_ext/services.py”, line 100, in register_or_update
username_unique = SLUGIFY(username)
TypeError: slugify_uniquely() missing 1 required positional argument: ‘model’

```

The [lines causing the problem](https://github.com/Monogramm/taiga-contrib-ldap-auth-ext/blob/master/taiga_contrib_ldap_auth_ext/services.py#L99) in the extension’s code …

```auto
30 SLUGIFY = getattr(settings, 'LDAP_MAP_USERNAME_TO_UID', slugify_uniquely)
...
99 if SLUGIFY:
100 username_unique = SLUGIFY(username)

```

Although Taiga doesn’t support that extension officially, we would recommend you to review the [**Configuration**](https://github.com/Monogramm/taiga-contrib-ldap-auth-ext#taiga-back) section in their documentation, as it seems something related to a missing variable value in your settings:

```auto
# Function to map LDAP username to local DB user unique identifier.
# Upon successful LDAP bind, will override returned username attribute
# value. May result in unexpected failures if changed after the database
# has been populated.
# 
def _ldap_slugify(uid: str) -> str:
    # example: force lower-case
    #uid = uid.lower()
    return uid
    
# To enable the function above, uncomment the line below to store the function in the variable
#LDAP_MAP_USERNAME_TO_UID = _ldap_slugify` <========= IS IT UNCOMMENTED ?

```

You can either research more by yourself trying to review their settings requirements, or contact them directly in any of their repositories in order to get more help:

> [madmath03 (Mathieu Brunot) · GitHub](https://github.com/madmath03)  
> [GitHub - Monogramm/docker-taiga: 🐳 Docker images for a full Taiga environment with additional plugins.](https://github.com/Monogramm/docker-taiga)  
> [GitHub - Monogramm/taiga-contrib-ldap-auth-ext: 🐍 Extended Taiga plugin for LDAP authentication](https://github.com/Monogramm/taiga-contrib-ldap-auth-ext)

We hope you find the solution soon.
