diff --git a/src/UnicaenLdap/Entity/Base/People.php b/src/UnicaenLdap/Entity/Base/People.php index 9c5ad32c1ec1c8ad3026a750e4184aa8e8a87b06..7f00b7130341fc8eae18ef0b3f5054a071b2f56d 100644 --- a/src/UnicaenLdap/Entity/Base/People.php +++ b/src/UnicaenLdap/Entity/Base/People.php @@ -157,6 +157,7 @@ class People extends Entity 'ucbnStatus', 'ucbnStructureRecherche', 'uidNumber', + 'unicaenLeocarteCSN', 'unicaenMonEtupass', 'unicaenRefId', 'unicaenSecuriteCompte', @@ -214,6 +215,7 @@ class People extends Entity 'ucbnServicePapercut', 'ucbnSquidHash', 'uidNumber', + 'unicaenLeocarteCSN', 'unicaenRefId', 'userPassword', ]; @@ -1562,6 +1564,27 @@ class People extends Entity return $this; } + /** + * Attribut Ldap "unicaenLeocarteCSN" + * + * @param array|string|null $value + * @param bool $append + * @return self + * @throws Exception + * @throws LdapException + */ + public function setUnicaenLeocarteCSN($value = null, $append = false) + { + $value = $this->preFormat($value); + $value = array_filter($value, function($v) { + return preg_match('/^[0-9A-F]{14}$/i', $v); + }); + + $this->appendOrNot('unicaenLeocarteCSN', $value, $append); + + return $this; + } + /** * Attribut Ldap "unicaenRefId" *