Verified Commit b318d194 authored by dockx thibault's avatar dockx thibault
Browse files

:sparkles: Feat(SupannFC) - Adds its own custom schema

Adds custom france connect shema and change objectClass and
attributs within its class. Dependancy from supannPerson.
Showing with 60 additions and 9 deletions
+60 -9
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
DESC 'Identité de personne FranceConnect'
MAY ( fdSupannNomDeNaissance $ fdSupannPrenomsEtatCivil $ fdSupannOIDCDateDeNaissance $
fdSupannOIDCGenre $ fdSupannCodeINSEEPaysDeNaissance $ fdSupannFCSub $ fdSupannCodeINSEEVilleDeNaissance ))
...@@ -33,7 +33,7 @@ class supannFC extends simplePlugin ...@@ -33,7 +33,7 @@ class supannFC extends simplePlugin
'plShortName' => _('France Connect'), 'plShortName' => _('France Connect'),
'plDescription' => _('France Connect identity'), 'plDescription' => _('France Connect identity'),
'plSelfModify' => TRUE, 'plSelfModify' => TRUE,
'plObjectClass' => ['supannPerson'], 'plObjectClass' => ['fdFranceConnect'],
'plObjectType' => ['user'], 'plObjectType' => ['user'],
'plIcon' => 'geticon.php?context=applications&icon=supann&size=48', 'plIcon' => 'geticon.php?context=applications&icon=supann&size=48',
'plSmallIcon' => 'geticon.php?context=applications&icon=supann&size=16', 'plSmallIcon' => 'geticon.php?context=applications&icon=supann&size=16',
...@@ -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'),
'supannNomDeNaissance', FALSE 'fdSupannNomDeNaissance', FALSE
), ),
new StringAttribute( new StringAttribute(
_('First names'), _('Space separated first names'), _('First names'), _('Space separated first names'),
'supannPrenomsEtatCivil', FALSE 'fdSupannPrenomsEtatCivil', FALSE
), ),
new DateAttribute( new DateAttribute(
_('Date of birth'), _('Date of birth'), _('Date of birth'), _('Date of birth'),
'supannOIDCDateDeNaissance', FALSE, 'fdSupannOIDCDateDeNaissance', 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'),
'supannOIDCGenre', FALSE, 'fdSupannOIDCGenre', 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'),
'supannCodeINSEEPaysDeNaissance', FALSE, 'fdSupannCodeINSEEPaysDeNaissance', 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'),
'supannCodeINSEEVilleDeNaissance', FALSE, 'fdSupannCodeINSEEVilleDeNaissance', 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'),
'supannFCSub', FALSE, 'fdSupannFCSub', 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['supannFCSub']->setUnique('whole'); $this->attributesAccess['fdSupannFCSub']->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