diff --git a/authentik/sources/kerberos/auth.py b/authentik/sources/kerberos/auth.py index 9080cea8fd6b..3110ef8db90c 100644 --- a/authentik/sources/kerberos/auth.py +++ b/authentik/sources/kerberos/auth.py @@ -73,7 +73,9 @@ def auth_user( if ( user_source_connection.source.kerberossource.password_login_update_internal_password ): - user_source_connection.user.set_password(password, sender=user_source_connection.source) + user_source_connection.user.set_password( + password, sender=user_source_connection.source + ) user_source_connection.user.save() return user, user_source_connection.source # Password doesn't match, onto next source diff --git a/authentik/sources/ldap/signals.py b/authentik/sources/ldap/signals.py index 83fd894aded0..75e8408930f5 100644 --- a/authentik/sources/ldap/signals.py +++ b/authentik/sources/ldap/signals.py @@ -13,7 +13,6 @@ from authentik.core.signals import password_changed from authentik.events.models import Event, EventAction from authentik.flows.planner import PLAN_CONTEXT_PENDING_USER -from authentik.sources.ldap.auth import LDAPBackend from authentik.sources.ldap.models import LDAPSource from authentik.sources.ldap.password import LDAPPasswordChanger from authentik.sources.ldap.tasks import ldap_connectivity_check, ldap_sync_single