Commit 4bf9c8a6 authored by David Surville's avatar David Surville
Browse files

Ajout attribut "unicaenLeocarteCSN"

parent 2be356ef
Loading
Loading
Loading
Loading
+23 −0
Original line number Diff line number Diff line
@@ -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"
     *