[attributs, objets] Ajout de l'attribut shadowExpire
This commit is contained in:
parent
7e55e8325d
commit
bc751c415b
2 changed files with 12 additions and 1 deletions
10
attributs.py
10
attributs.py
|
@ -1676,3 +1676,13 @@ class hostCert(dnsAttr):
|
|||
if not host in self.parent.machine()['host'] + self.parent.machine()['hostAlias']:
|
||||
raise ValueError("hostCert doit être inclus dans les host et hostAlias de la machine parente : %s" % ', '.join(str(item) for item in self.parent.machine()['host'] + self.parent.machine()['hostAlias']))
|
||||
self.value = host
|
||||
|
||||
@crans_attribute
|
||||
class shadowExpire(intAttr):
|
||||
"""
|
||||
Durée de validité du mot de passe d'un compte.
|
||||
On l'utilise en mettant sa valeur à 0 pour désactiver un compte
|
||||
"""
|
||||
optinal = True
|
||||
can_modify = [nounou, bureau]
|
||||
ldap_name = "shadowExpire"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue