[sysadmin-bin] Syntax fixes, test it out next time :)
- From: Andrea Veri <av src gnome org>
- To: gnome-sysadmin gnome org,commits-list gnome org
- Subject: [sysadmin-bin] Syntax fixes, test it out next time :)
- Date: Thu, 12 Oct 2017 16:15:11 +0000 (UTC)
commit 400b2072d2c05854509e3fc18d03c7db90cd00ef
Author: Andrea Veri <averi redhat com>
Date: Thu Oct 12 18:15:02 2017 +0200
Syntax fixes, test it out next time :)
gnome_ldap_utils.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gnome_ldap_utils.py b/gnome_ldap_utils.py
index e46c8f7..5577597 100755
--- a/gnome_ldap_utils.py
+++ b/gnome_ldap_utils.py
@@ -55,5 +55,7 @@ class Gnome_ldap_utils:
return people
def replace_ldap_password(self, userid, password):
+ import ldap
+
replace_password = [(ldap.MOD_REPLACE, 'userPassword', password)]
- l.modify_s('uid=%s,%s' % (self.LDAP_USER_BASE, userid, replace_password)
\ No newline at end of file
+ self.conn.modify_s('uid=%s,%s' % (userid, self.LDAP_USER_BASE), replace_password)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]