From c5759669f537bb1a740e81a7faeabe05beabac6f Mon Sep 17 00:00:00 2001 From: "renater.salaun" <renater.salaun@047e039d-479c-447e-8a29-aa6bf4a09bab> Date: Thu, 25 Feb 2016 13:54:30 +0000 Subject: [PATCH] Add a new user profile with no attribute, except the eduPersonTargetedID git-svn-id: https://svn.geant.net/GEANT/edugain_testidp_account_manager/trunk@121 047e039d-479c-447e-8a29-aa6bf4a09bab --- conf/default-Conf.pm | 2 +- templates/accountProfiles/limitedset1.tt2 | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 templates/accountProfiles/limitedset1.tt2 diff --git a/conf/default-Conf.pm b/conf/default-Conf.pm index ef10695..a06b6d6 100644 --- a/conf/default-Conf.pm +++ b/conf/default-Conf.pm @@ -81,7 +81,7 @@ our %global = ( 'federation_metadata_file_path' => '/opt/testidp/IdPAccountManager/conf/edugain-md.xml', ## valid account profiles - 'account_profiles' => ['generic1','student1','student2','teacher1','teacher2','alumni1','librarywalkin1','employee1','researcher1'], + 'account_profiles' => ['limitedset1','generic1','student1','student2','teacher1','teacher2','alumni1','librarywalkin1','employee1','researcher1'], ); 1; # Magic true value required at end of module diff --git a/templates/accountProfiles/limitedset1.tt2 b/templates/accountProfiles/limitedset1.tt2 new file mode 100644 index 0000000..edaa483 --- /dev/null +++ b/templates/accountProfiles/limitedset1.tt2 @@ -0,0 +1,10 @@ +[% account_sp_entityid = account.get('sp_entityid') %] +[% account_id = account.get('id') %] + +[% SET account_profile = { + 'type' => 'LimitedSet', + 'comment' => 'This account provides only an eduPersonTargetedID attribute.', + 'internal_uid' => "user${account_id}", +} %] + + -- GitLab