[attributs] Ajout de legends
This commit is contained in:
parent
0e9404ae93
commit
2c1edaa310
1 changed files with 13 additions and 0 deletions
13
attributs.py
13
attributs.py
|
@ -1439,6 +1439,7 @@ class article(Attr):
|
|||
@crans_attribute
|
||||
class dnsIpv6(boolAttr):
|
||||
ldap_name = "dnsIpv6"
|
||||
legend = "Détermine si l'ipv6 apparait dans le dns"
|
||||
|
||||
@crans_attribute
|
||||
class rewriteMailHeaders(boolAttr):
|
||||
|
@ -1452,28 +1453,33 @@ class machineAlias(boolAttr):
|
|||
class issuerCN(Attr):
|
||||
ldap_name = "issuerCN"
|
||||
can_modify = [nounou]
|
||||
legend = "Common Name de l'éméteur du certificat"
|
||||
|
||||
@crans_attribute
|
||||
class serialNumber(Attr):
|
||||
ldap_name = "serialNumber"
|
||||
python_type = int
|
||||
can_modify = [nounou]
|
||||
legend = "Numéro de série du certificat"
|
||||
|
||||
@crans_attribute
|
||||
class start(intAttr):
|
||||
ldap_name = "start"
|
||||
can_modify = [nounou]
|
||||
legend = "Date de début"
|
||||
|
||||
@crans_attribute
|
||||
class end(intAttr):
|
||||
ldap_name = "end"
|
||||
can_modify = [nounou]
|
||||
legend = "Date de fin"
|
||||
|
||||
@crans_attribute
|
||||
class crlUrl(Attr):
|
||||
ldap_name = "crlUrl"
|
||||
optional = True
|
||||
can_modify = [parent, nounou]
|
||||
legend = "Adresse de la liste de révocation pour le certificat"
|
||||
|
||||
@crans_attribute
|
||||
class revocked(boolAttr):
|
||||
|
@ -1481,6 +1487,7 @@ class revocked(boolAttr):
|
|||
singlevalue = True
|
||||
optional = True
|
||||
can_modify = [nounou]
|
||||
legend = "Détermine si le certificat est révoqué"
|
||||
|
||||
@crans_attribute
|
||||
class certificat(Attr):
|
||||
|
@ -1488,6 +1495,7 @@ class certificat(Attr):
|
|||
binary = True
|
||||
python_type = str
|
||||
can_modify = [parent, nounou]
|
||||
legend = "Certificat"
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(certificat, self).__init__(*args, **kwargs)
|
||||
|
@ -1569,18 +1577,21 @@ class certificatUsage(intAttr):
|
|||
ldap_name = "certificatUsage"
|
||||
singlevalue = True
|
||||
can_modify = [parent, nounou]
|
||||
legend = "Utilisation du certificat pour un enregistrement TLSA"
|
||||
|
||||
@crans_attribute
|
||||
class selector(intAttr):
|
||||
ldap_name = "selector"
|
||||
singlevalue = True
|
||||
can_modify = [parent, nounou]
|
||||
legend = "Détermine si le certificat est complet ou contient juste la clef publique pour TLSA"
|
||||
|
||||
@crans_attribute
|
||||
class matchingType(intAttr):
|
||||
ldap_name = "matchingType"
|
||||
singlevalue = True
|
||||
can_modify = [parent, nounou]
|
||||
legend = "Détermine ce que l'on veux mettre dans l'enregistrement TLSA (certificat complet ou hash)"
|
||||
|
||||
@crans_attribute
|
||||
class xid(intAttr):
|
||||
|
@ -1589,6 +1600,7 @@ class xid(intAttr):
|
|||
unique = True
|
||||
singlevalue = True
|
||||
can_modify = []
|
||||
legend = "Identifiant du certificat"
|
||||
|
||||
|
||||
@crans_attribute
|
||||
|
@ -1596,6 +1608,7 @@ class hostCert(dnsAttr):
|
|||
optional = False
|
||||
can_modify = [parent, nounou]
|
||||
ldap_name = "hostCert"
|
||||
"Nom de domaine utilisé pour le certificat"
|
||||
|
||||
def parse_value(self, host):
|
||||
if not host in self.parent.machine()['host'] + self.parent.machine()['hostAlias']:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue