Verified Commit 0e407825 authored by dockx thibault's avatar dockx thibault
Browse files

:ambulance: Fix(SupannFC) - Changes schema to objectClass only

Only adds the objectClass to schema and adapt the class
accordingly.
Showing with 10 additions and 57 deletions
+10 -57
attributetype ( 1.3.6.1.4.1.38414.88.1.1 NAME 'fdSupannNomDeNaissance'
DESC 'nom de famille de naissance'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SINGLE-VALUE
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{256} )
attributetype ( 1.3.6.1.4.1.38414.88.1.2 NAME 'fdSupannPrenomsEtatCivil'
DESC 'prenoms d etat civil'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SINGLE-VALUE
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{256} )
attributetype ( 1.3.6.1.4.1.38414.88.1.3 NAME 'fdSupannOIDCDateDeNaissance'
DESC 'date de naissance au format AAAA-MM-JJ'
EQUALITY caseExactMatch
SUBSTR caseExactSubstringsMatch
ORDERING caseExactOrderingMatch
SINGLE-VALUE
SYNTAX 1.3.6.1.4.1.1466.115.121.1.44{10} )
attributetype ( 1.3.6.1.4.1.38414.88.1.4 NAME 'fdSupannOIDCGenre'
DESC 'genre : "female", "male" ou "other"'
EQUALITY caseIgnoreMatch
SINGLE-VALUE
SYNTAX 1.3.6.1.4.1.1466.115.121.1.44{32} )
attributetype ( 1.3.6.1.4.1.38414.88.1.5 NAME 'fdSupannCodeINSEEPaysDeNaissance'
DESC 'code INSEE du pays de naissance'
EQUALITY numericStringMatch
ORDERING numericStringOrderingMatch
SINGLE-VALUE
SYNTAX 1.3.6.1.4.1.1466.115.121.1.36{5} )
attributetype ( 1.3.6.1.4.1.38414.88.1.6 NAME 'fdSupannCodeINSEEVilleDeNaissance'
DESC 'code INSEE de la commune de naissance'
EQUALITY numericStringMatch
ORDERING numericStringOrderingMatch
SINGLE-VALUE
SYNTAX 1.3.6.1.4.1.1466.115.121.1.36{5} )
attributetype ( 1.3.6.1.4.1.38414.88.1.7 NAME 'fdSupannFCSub'
DESC 'identifiant cible de personne FranceConnect'
EQUALITY caseExactIA5Match
SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{255} )
objectclass ( 1.3.6.1.4.1.38414.88.2.1 NAME 'fdFranceConnect' SUP top AUXILIARY objectclass ( 1.3.6.1.4.1.38414.88.2.1 NAME 'fdFranceConnect' SUP top AUXILIARY
DESC 'Identité de personne FranceConnect' DESC 'Identité de personne FranceConnect'
MAY ( fdSupannNomDeNaissance $ fdSupannPrenomsEtatCivil $ fdSupannOIDCDateDeNaissance $ MAY ( supannNomDeNaissance $ supannPrenomsEtatCivil $ supannOIDCDateDeNaissance $
fdSupannOIDCGenre $ fdSupannCodeINSEEPaysDeNaissance $ fdSupannFCSub $ fdSupannCodeINSEEVilleDeNaissance )) supannOIDCGenre $ supannCodeINSEEPaysDeNaissance $ supannFCSub $ supannCodeINSEEVilleDeNaissance ))
...@@ -51,27 +51,27 @@ class supannFC extends simplePlugin ...@@ -51,27 +51,27 @@ class supannFC extends simplePlugin
'attrs' => [ 'attrs' => [
new StringAttribute( new StringAttribute(
_('Birth name'), _('Last name from birth'), _('Birth name'), _('Last name from birth'),
'fdSupannNomDeNaissance', FALSE 'supannNomDeNaissance', FALSE
), ),
new StringAttribute( new StringAttribute(
_('First names'), _('Space separated first names'), _('First names'), _('Space separated first names'),
'fdSupannPrenomsEtatCivil', FALSE 'supannPrenomsEtatCivil', FALSE
), ),
new DateAttribute( new DateAttribute(
_('Date of birth'), _('Date of birth'), _('Date of birth'), _('Date of birth'),
'fdSupannOIDCDateDeNaissance', FALSE, 'supannOIDCDateDeNaissance', FALSE,
'Y-m-d', '', 'Y-m-d', '',
// min and max: // min and max:
NULL, 'now' NULL, 'now'
), ),
new SelectAttribute( new SelectAttribute(
_('Gender'), _('Gender'), _('Gender'), _('Gender'),
'fdSupannOIDCGenre', FALSE, 'supannOIDCGenre', FALSE,
['other', 'female', 'male'], '', [_('Other'), _('Female'), _('Male')] ['other', 'female', 'male'], '', [_('Other'), _('Female'), _('Male')]
), ),
new StringAttribute( new StringAttribute(
_('Country of birth'), _('INSEE code of country of birth'), _('Country of birth'), _('INSEE code of country of birth'),
'fdSupannCodeINSEEPaysDeNaissance', FALSE, 'supannCodeINSEEPaysDeNaissance', FALSE,
'', '',
'', '',
'/^\d{5}$/', '/^\d{5}$/',
...@@ -79,7 +79,7 @@ class supannFC extends simplePlugin ...@@ -79,7 +79,7 @@ class supannFC extends simplePlugin
), ),
new StringAttribute( new StringAttribute(
_('City of birth'), _('INSEE code of city of birth, if in France'), _('City of birth'), _('INSEE code of city of birth, if in France'),
'fdSupannCodeINSEEVilleDeNaissance', FALSE, 'supannCodeINSEEVilleDeNaissance', FALSE,
'', '',
'', '',
'/^[\dAB]{5}$/', '/^[\dAB]{5}$/',
...@@ -93,7 +93,7 @@ class supannFC extends simplePlugin ...@@ -93,7 +93,7 @@ class supannFC extends simplePlugin
new SetAttribute( new SetAttribute(
new StringAttribute( new StringAttribute(
_('Subject'), _('Subject from OpenID Connect standard in the France Connect system'), _('Subject'), _('Subject from OpenID Connect standard in the France Connect system'),
'fdSupannFCSub', FALSE, 'supannFCSub', FALSE,
'', '',
'', '',
'/^[[:ascii:]]{1,255}$/' '/^[[:ascii:]]{1,255}$/'
...@@ -108,6 +108,6 @@ class supannFC extends simplePlugin ...@@ -108,6 +108,6 @@ class supannFC extends simplePlugin
{ {
parent::__construct($dn, $object, $parent, $mainTab); parent::__construct($dn, $object, $parent, $mainTab);
$this->attributesAccess['fdSupannFCSub']->setUnique('whole'); $this->attributesAccess['supannFCSub']->setUnique('whole');
} }
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment