LDAP: Log when password update fail

- Remove unused import
This commit is contained in:
nikolark committed 2016-01-27 11:19:07 +01:00
1 parent c27c0ff2f8
commit bb93fdd787
2 files changed
+1 -2

No files matched your search

-1
View File
@@ -1,6 +1,5 @@
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import connections
import logging
from neuf_ldap.utils import ldap_create
from passlib.hash import mysql41
+1 -1
View File
@@ -27,7 +27,7 @@ def set_ldap_password(username, raw_password):
user = LdapUser.objects.get(username=username)
user.set_password(raw_password)
except LdapUser.DoesNotExist:
# Ignore
logger.warning('Could not set password in LDAP for user with username {}'.format(username))
pass