Gestion switchs par snmp (momo, tu peux rcuprer ta multiprise, c'est trop
chiant d'avoir un interrupteur dessus) darcs-hash:20040919204056-41617-272808c5ebb1c835d15af323318fce5dbb7fdca4.gz
This commit is contained in:
parent
d5cb816c9d
commit
3b643b222b
2 changed files with 30 additions and 4 deletions
|
@ -30,7 +30,7 @@ from chgpass import chgpass
|
|||
from affich_tools import coul, prompt
|
||||
from time import sleep,localtime
|
||||
|
||||
import ldap_secret
|
||||
from secrets import ldap_password, ldap_auth_dn
|
||||
|
||||
random.seed() # On initialise le générateur aléatoire
|
||||
|
||||
|
@ -200,7 +200,7 @@ class crans_ldap :
|
|||
while not ok:
|
||||
try:
|
||||
self.conn = ldap.initialize(uri)
|
||||
self.conn.bind_s(ldap_secret.auth_dn,ldap_secret.password,ldap.AUTH_SIMPLE)
|
||||
self.conn.bind_s(ldap_auth_dn,ldap_password,ldap.AUTH_SIMPLE)
|
||||
ok = True
|
||||
except ldap.SERVER_DOWN :
|
||||
nbessais += 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue