-
renater.salaun authored
Define a new attribute in the datasource 'internal_uid' used for both generating eduPersonTargetedId and user consent. Otherwise we're in trouble if 'uid' is not defined for a given account profile git-svn-id: https://svn.geant.net/GEANT/edugain_testidp_account_manager/trunk@114 047e039d-479c-447e-8a29-aa6bf4a09bab
renater.salaun authoredDefine a new attribute in the datasource 'internal_uid' used for both generating eduPersonTargetedId and user consent. Otherwise we're in trouble if 'uid' is not defined for a given account profile git-svn-id: https://svn.geant.net/GEANT/edugain_testidp_account_manager/trunk@114 047e039d-479c-447e-8a29-aa6bf4a09bab
teacher1.tt2 798 B
[% account_sp_entityid = account.get('sp_entityid') %]
[% account_id = account.get('id') %]
[% SET account_profile = {
'type' => 'Teacher',
'comment' => 'An active teacher has both "member" and "faculty" values set for eduPersonAffiliation.',
'internal_uid' => "${account_id}",
'uid' => "${account_id}",
'eduPersonAffiliation' => ['member', 'faculty'],
'eduPersonScopedAffiliation' => ["member@${conf.idp_scope}", "faculty@${conf.idp_scope}"],
'displayName' => 'Peter Müller',
'cn' => 'Peter Müller',
'mail' => "peter.muller@${conf.idp_scope}",
'eduPersonPrincipalName' =>"${account_id}@${conf.idp_scope}",
'schacHomeOrganization' => "${conf.idp_scope}",
'schacHomeOrganizationType' => 'urn:schac:homeOrganizationType:int:other',
} %]