Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dokuwiki-plugin-oauthgeneric
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
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
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
709
public
dokuwiki-plugin-oauthgeneric
Commits
3a651f4c
Commit
3a651f4c
authored
10 months ago
by
Ing. Michal Švamberg
Browse files
Options
Downloads
Patches
Plain Diff
Uprava identifikace cesnetich uzivatelu
parent
d1e3deab
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
action.php
+13
-0
13 additions, 0 deletions
action.php
with
13 additions
and
0 deletions
action.php
+
13
−
0
View file @
3a651f4c
...
@@ -51,6 +51,19 @@ class action_plugin_oauthgeneric extends Adapter
...
@@ -51,6 +51,19 @@ class action_plugin_oauthgeneric extends Adapter
$grps
=
array_map
(
'trim'
,
$grps
);
$grps
=
array_map
(
'trim'
,
$grps
);
}
}
# CESNET, start
# cesneti uzivatele identifikujeme skrze email shodny s LDAPem
$eppns
=
DotAccess
::
get
(
$result
,
'voperson_external_id'
,
''
);
# msg(print_r($grps, 1));
# msg(print_r($eppns, 1));
foreach
(
$eppns
as
$eppn
)
{
if
(
strpos
(
$eppn
,
"@cesnet.cz"
))
{
$user
=
$eppn
;
}
}
# CESNET, end
// fallbacks for user name
// fallbacks for user name
if
(
empty
(
$user
))
{
if
(
empty
(
$user
))
{
if
(
!
empty
(
$name
))
{
if
(
!
empty
(
$name
))
{
...
...
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