Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
ldap
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jean-Philippe Metivier
ldap
Commits
a421d20a
Commit
a421d20a
authored
4 years ago
by
David Surville
Browse files
Options
Downloads
Patches
Plain Diff
Ajout des attributs "unicaenSecuriteCompte" et "unicaenServiceEtat"
parent
8279d1ff
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/UnicaenLdap/Entity/Base/People.php
+24
-15
24 additions, 15 deletions
src/UnicaenLdap/Entity/Base/People.php
with
24 additions
and
15 deletions
src/UnicaenLdap/Entity/Base/People.php
+
24
−
15
View file @
a421d20a
...
...
@@ -158,21 +158,8 @@ class People extends Entity
'ucbnStructureRecherche'
,
'uidNumber'
,
'unicaenMonEtupass'
,
'unicaenServiceAnnuaire'
,
'unicaenServiceControleAcces'
,
'unicaenServiceEmploiDuTemps'
,
'unicaenServiceEspaceStockage'
,
'unicaenServiceImpression'
,
'unicaenServiceIntranet'
,
'unicaenServiceMessageAlerte'
,
'unicaenServiceMessagerie'
,
'unicaenServicePosteTravail'
,
'unicaenServiceReinscription'
,
'unicaenServiceRessourcesDocumentaires'
,
'unicaenServiceRestauration'
,
'unicaenServiceImpression'
,
'unicaenServiceWifiCampus'
,
'unicaenServiceWifiEduroam'
,
'unicaenSecuriteCompte'
,
'unicaenServiceEtat'
,
'unicaenTermsOfUse'
,
'userCertificate'
,
'userPassword'
,
...
...
@@ -311,6 +298,7 @@ class People extends Entity
'\[code=(?<code>[\w\-]+)\]'
.
'\[libelle=(?<libelle>.+)\]$/'
;
static
protected
$role_src_pattern
=
'/^(?<code>\d{4});(?<libelle>.+)$/'
;
static
protected
$service_etat_pattern
=
'/^(?<etiquette>\{[\w\-]+\})(?<value>(A|I|S){1})$/'
;
/**
...
...
@@ -1572,6 +1560,27 @@ class People extends Entity
return
$this
;
}
/**
* Attribut Ldap "unicaenServiceEtat"
*
* @param array|string|null $value
* @param bool $append
* @return $this
* @throws Exception
* @throws LdapException
*/
public
function
setUnicaenServiceEtat
(
$value
=
null
,
$append
=
false
)
{
$value
=
$this
->
preFormat
(
$value
);
$value
=
array_filter
(
$value
,
function
(
$v
)
{
return
preg_match
(
self
::
$service_etat_pattern
,
$v
);
});
$this
->
appendOrNot
(
'unicaenServiceEtat'
,
$value
,
$append
);
return
$this
;
}
/**
* Attribut Ldap "unicaenTermsOfUse"
*
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment