From 952d1053a7f71537f86af7b965f3df3f8cf302f3 Mon Sep 17 00:00:00 2001 From: pauget Date: Thu, 11 Aug 2005 22:49:40 +0200 Subject: [PATCH] Serveur ldap.adm.crans.org darcs-hash:20050811204940-41617-e42c0cd683f29ddee0550a74ec1a51a166a7e0be.gz --- gestion/chgpass.py | 5 +++-- gestion/ldap_crans.py | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/gestion/chgpass.py b/gestion/chgpass.py index 8641b25e..c37f5183 100755 --- a/gestion/chgpass.py +++ b/gestion/chgpass.py @@ -28,7 +28,7 @@ except : ldap_password = '' ldap_auth_dn = '' -uri = 'ldaps://zamok.crans.org' +uri = 'ldap://ldap.adm.crans.org' def chgpass(dn) : cprint("""Le nouveau mot de passe doit comporter au minimum 6 caractères. @@ -80,7 +80,8 @@ Il ne doit pas if test.split(':')[-1] != ' ok' : commentaire = { ' it does not contain enough DIFFERENT characters' : 'Il y a trop de caractères identiques.' , - ' it is based on a dictionary word' : 'Le mot de passe est basé sur un mot du dictionnaire' + ' it is based on a dictionary word' : 'Le mot de passe est basé sur un mot du dictionnaire' , + ' it is too simplistic/systematic' : 'Le mot de passe est trop simple/répétitif' }.get(test.split(':')[-1],test.split(':')[-1]) cprint(commentaire,'rouge') continue diff --git a/gestion/ldap_crans.py b/gestion/ldap_crans.py index 89bfe54a..179adf44 100755 --- a/gestion/ldap_crans.py +++ b/gestion/ldap_crans.py @@ -23,7 +23,7 @@ elif hostname in [ 'sila' , 'pegase' ] : rw_uri = 'ldap://vert.adm.crans.org/' elif hostname in [ 'bleu' , 'rouge' ] : anon_bind = 0 - uri = 'ldap://vert.adm.crans.org/' + uri = 'ldap://ldap.adm.crans.org/' rw_uri = uri else : anon_bind = 0 # Doit s'authentifier pour toute action