[sysadmin-bin] Syntax fixes, test it out next time :)



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]