Demande de chgpass au cours de l'enregistrement.
darcs-hash:20040909112524-41617-020604c393358bd2d6090a21e7915603e46be24c.gz
This commit is contained in:
parent
6f157c4256
commit
f33c2107e3
1 changed files with 8 additions and 1 deletions
|
@ -26,7 +26,8 @@ import smtplib, sre, os, random, string, time, sys
|
||||||
import ldap, ldap.modlist
|
import ldap, ldap.modlist
|
||||||
|
|
||||||
import config, annuaires, iptools, chgpass, user_tests
|
import config, annuaires, iptools, chgpass, user_tests
|
||||||
from affich_tools import coul
|
from chgpass import chgpass
|
||||||
|
from affich_tools import coul, prompt
|
||||||
from time import sleep,localtime
|
from time import sleep,localtime
|
||||||
|
|
||||||
import ldap_secret
|
import ldap_secret
|
||||||
|
@ -991,6 +992,12 @@ class base_proprietaire(base_classes_crans) :
|
||||||
args+= self._data['uidNumber'][0] + ','
|
args+= self._data['uidNumber'][0] + ','
|
||||||
args+= self._data['uid'][0]
|
args+= self._data['uid'][0]
|
||||||
self.services_to_restart('home',[ args ])
|
self.services_to_restart('home',[ args ])
|
||||||
|
r = prompt("Attribuer tout de suite un mot de passe ? [O/N]","O")
|
||||||
|
if r=='O' or r=='o' :
|
||||||
|
chgpass(self.dn)
|
||||||
|
else :
|
||||||
|
ret += coul(u' Il faudra penser à attribuer un mot de passe\n','jaune')
|
||||||
|
|
||||||
|
|
||||||
# Remise à zero
|
# Remise à zero
|
||||||
self.modifs=[]
|
self.modifs=[]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue