[sysadmin-bin] Remove the password sanitizer from foundation-operations too
- From: Andrea Veri <av src gnome org>
- To: gnome-sysadmin gnome org,commits-list gnome org
- Subject: [sysadmin-bin] Remove the password sanitizer from foundation-operations too
- Date: Fri, 3 Oct 2014 16:43:51 +0000 (UTC)
commit 7278fb9af589be53aaba65f8d097db6518b63330
Author: Andrea Veri <av gnome org>
Date: Fri Oct 3 18:43:47 2014 +0200
Remove the password sanitizer from foundation-operations too
membership/foundation-operations.py | 13 +------------
1 files changed, 1 insertions(+), 12 deletions(-)
---
diff --git a/membership/foundation-operations.py b/membership/foundation-operations.py
index 207b336..ed2fd54 100755
--- a/membership/foundation-operations.py
+++ b/membership/foundation-operations.py
@@ -38,18 +38,7 @@ LDAP_USER_BASE='cn=users,cn=accounts,dc=gnome,dc=org'
TODAY = strftime("%Y-%m-%d", gmtime())
-file = open('/home/admin/secret/freeipa','r')
-lines = file.readlines()
-
-for line in lines:
- if line.find("ldap_password") > -1:
- dirty_password = line.split()
- ldap_password = str(dirty_password)
-
- sanitize_file=["ldap_password","=","\"","'","[","]"]
- for i in range(len(sanitize_file)):
- ldap_password = ldap_password.replace(sanitize_file[i],"")
-file.close()
+execfile('/home/admin/secret/freeipa')
try:
l = ldap.open('localhost')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]