Skip to content
Snippets Groups Projects
Commit 3a651f4c authored by Ing. Michal Švamberg's avatar Ing. Michal Švamberg
Browse files

Uprava identifikace cesnetich uzivatelu

parent d1e3deab
No related branches found
No related tags found
No related merge requests found
...@@ -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)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment