[objets, attributs] Ajout d'une classe objet inetOrgPerson
Parce que sinon, ça plante quand je récupère l'inetOrgPerson respbats dans mon jouet fuse.
This commit is contained in:
parent
c29e92e3b8
commit
ac5f2f17ae
2 changed files with 7 additions and 1 deletions
|
@ -395,7 +395,7 @@ class objectClass(Attr):
|
|||
can_view = [nounou, apprenti]
|
||||
|
||||
def parse_value(self, val):
|
||||
if val not in [ 'top', 'organizationalUnit', 'posixAccount', 'shadowAccount',
|
||||
if val not in [ 'top', 'organizationalUnit', 'inetOrgPerson', 'posixAccount', 'shadowAccount',
|
||||
'proprio', 'adherent', 'club', 'machine', 'machineCrans',
|
||||
'borneWifi', 'machineWifi', 'machineFixe', 'x509Cert', 'TLSACert',
|
||||
'baseCert', 'cransAccount', 'service', 'facture', 'freeMid', 'privateKey' ]:
|
||||
|
|
|
@ -719,6 +719,12 @@ def crans_object(classe):
|
|||
ObjectFactory.register(classe.ldap_name, classe)
|
||||
return classe
|
||||
|
||||
@crans_object
|
||||
class InetOrgPerson(CransLdapObject):
|
||||
ldap_name = "inetOrgPerson"
|
||||
def __repr__(self):
|
||||
return str(self.__class__.__name__) + " : cn=" + str(self['cn'][0])
|
||||
pass
|
||||
|
||||
class proprio(CransLdapObject):
|
||||
u""" Un propriétaire de machine (adhérent, club…) """
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue