chgpass, ldap_crans: secrets_new

This commit is contained in:
Daniel STAN 2013-11-07 23:00:46 +01:00
parent e8700aa131
commit bba2b1cf9b
2 changed files with 8 additions and 10 deletions

View file

@ -22,12 +22,9 @@ import getpass, commands, os, sys, base64, syslog
from user_tests import getuser, isadm
from affich_tools import cprint
try :
sys.path.append('/usr/scripts/gestion/secrets')
from secrets import ldap_password, ldap_auth_dn
except :
ldap_password = ''
ldap_auth_dn = ''
import secrets_new as secrets
ldap_password = secrets.get("ldap_password")
ldap_auth_dn = secrets.get("ldap_auth_dn")
uri = 'ldap://ldap.adm.crans.org'
syslog.openlog('chgpass',syslog.LOG_PID,syslog.LOG_AUTH)