From 964865a731755b558a9d12973f229d5302698e4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Gr=C3=B6ger?= Date: Sun, 28 Jun 2020 13:20:02 +0200 Subject: [PATCH] fix DN in resetPassword --- geruecht/controller/mainController/mainPasswordReset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geruecht/controller/mainController/mainPasswordReset.py b/geruecht/controller/mainController/mainPasswordReset.py index f82b6a4..8cc031d 100644 --- a/geruecht/controller/mainController/mainPasswordReset.py +++ b/geruecht/controller/mainController/mainPasswordReset.py @@ -23,7 +23,7 @@ class Base: else: debug.error("username or mail not set") raise Exception('username or mail not set') - adminConn.search(ldapConfig['USER_DN'], '(&(objectClass=person)({}))'.format(search), + adminConn.search(ldapConfig['DN'], '(&(objectClass=person)({}))'.format(search), attributes=['cn', 'sn', 'givenName', 'uid', 'mail']) for user in adminConn.response: user_dn = user['dn']