[sysadmin-bin] More characters to sanitize the ldap_password field from



commit 685661a556dade988f9c4f8e3028fa5322070d96
Author: Andrea Veri <av gnome org>
Date:   Fri Mar 21 23:24:10 2014 +0100

    More characters to sanitize the ldap_password field from

 cleanup-accounts.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/cleanup-accounts.py b/cleanup-accounts.py
index b778685..13293d0 100755
--- a/cleanup-accounts.py
+++ b/cleanup-accounts.py
@@ -20,7 +20,7 @@ for line in lines:
                 dirty_password = line.split()
                 ldap_password = str(dirty_password)
 
-                sanitize_file=["ldap_password","=","\""]
+                sanitize_file=["ldap_password","=","\"","'","[","]"]
                 for i in range(len(sanitize_file)):
                         ldap_password = ldap_password.replace(sanitize_file[i],"")
 file.close()


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]