Skip to content
Snippets Groups Projects
Commit ea950ef6 authored by renater.salaun's avatar renater.salaun
Browse files

Add account profiles

git-svn-id: https://svn.geant.net/GEANT/edugain_testidp_account_manager/trunk@65 047e039d-479c-447e-8a29-aa6bf4a09bab
parent 1bebcd77
No related branches found
No related tags found
No related merge requests found
......@@ -81,7 +81,7 @@ our %global = (
'federation_metadata_file_path' => '/opt/testidp/IdPAccountManager/conf/edugain-md.xml',
## valid account profiles
'account_profiles' => ['student1','teacher1'],
'account_profiles' => ['student1','teacher1','alumni1','librarywalkin1','employee1','researcher1'],
);
1; # Magic true value required at end of module
......
[% account_sp_entityid = account.get('sp_entityid') %]
[% account_id = account.get('id') %]
[% SET account_profile = {
'uid' => "${account_id}",
'eduPersonAffiliation' => ['alum'],
'eduPersonScopedAffiliation' => ["alum@${conf.idp_scope}"],
'displayName' => 'Ruby Anderson',
'cn' => 'Ruby Anderson',
'mail' => "ruby.anderson@${conf.idp_scope}",
'eduPersonPrincipalName' =>"${account_id}@${conf.idp_scope}",
'eduPersonTargetedID' =>"${conf.idp_entityid}!${account_sp_entityid}!X622UR2A7PG1uVhATobBOrMz+Ys=",
'schacHomeOrganization' => "${conf.idp_scope}",
'schacHomeOrganizationType' => 'urn:schac:homeOrganizationType:int:university',
} %]
[% account_sp_entityid = account.get('sp_entityid') %]
[% account_id = account.get('id') %]
[% SET account_profile = {
'uid' => "${account_id}",
'eduPersonAffiliation' => ['member','staff','employee'],
'eduPersonScopedAffiliation' => ["member@${conf.idp_scope}","staff@${conf.idp_scope}","employee@${conf.idp_scope}"],
'displayName' => 'Morgan Hsu',
'cn' => 'Morgan Hsu',
'mail' => "morgan.hsu@${conf.idp_scope}",
'eduPersonPrincipalName' =>"${account_id}@${conf.idp_scope}",
'eduPersonTargetedID' =>"${conf.idp_entityid}!${account_sp_entityid}!X622UR2A7PG1uVhATobBOrMz+Ys=",
'schacHomeOrganization' => "${conf.idp_scope}",
'schacHomeOrganizationType' => 'urn:schac:homeOrganizationType:int:university',
} %]
[% account_sp_entityid = account.get('sp_entityid') %]
[% account_id = account.get('id') %]
[% SET account_profile = {
'uid' => "${account_id}",
'eduPersonAffiliation' => ['library-walk-in'],
'eduPersonScopedAffiliation' => ["library-walk-in@${conf.idp_scope}"],
'displayName' => 'Dorian Segura',
'cn' => 'Dorian Segura',
'mail' => "dorian.segora@${conf.idp_scope}",
'eduPersonPrincipalName' =>"${account_id}@${conf.idp_scope}",
'eduPersonTargetedID' =>"${conf.idp_entityid}!${account_sp_entityid}!X622UR2A7PG1uVhATobBOrMz+Ys=",
'schacHomeOrganization' => "${conf.idp_scope}",
'schacHomeOrganizationType' => 'urn:schac:homeOrganizationType:int:university',
'eduPersonEntitlement' => 'urn:mace:dir:entitlement:common-lib-terms',
} %]
[% account_sp_entityid = account.get('sp_entityid') %]
[% account_id = account.get('id') %]
[% SET account_profile = {
'uid' => "${account_id}",
'eduPersonAffiliation' => ['member', 'faculty'],
'eduPersonScopedAffiliation' => ["member@${conf.idp_scope}", "faculty@${conf.idp_scope}"],
'displayName' => 'Jean Valjean',
'cn' => 'Jean Valjean',
'mail' => "peter.smithjean.valjean@${conf.idp_scope}",
'eduPersonPrincipalName' =>"${account_id}@${conf.idp_scope}",
'eduPersonTargetedID' =>"${conf.idp_entityid}!${account_sp_entityid}!X622UR2A7PG1uVhATobBOrMz+Ys=",
'schacHomeOrganization' => "${conf.idp_scope}",
'schacHomeOrganizationType' => 'urn:schac:homeOrganizationType:int:public-research-institution',
} %]
......@@ -4,7 +4,7 @@
[% SET account_profile = {
'uid' => "${account_id}",
'eduPersonAffiliation' => ['member', 'faculty'],
'eduPersonScopedAffiliation' => ["member@${conf.idp_scope}", "student@${conf.idp_scope}"],
'eduPersonScopedAffiliation' => ["member@${conf.idp_scope}", "faculty@${conf.idp_scope}"],
'displayName' => 'Peter Smith',
'cn' => 'Peter Smith',
'mail' => "peter.smith@${conf.idp_scope}",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment