diff --git a/conf/default-Conf.pm b/conf/default-Conf.pm index ef10695dece9dea828ec62a031fce267f85a849c..a06b6d6248a13881fc4a50c62c47b8b859ef4d2c 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 0000000000000000000000000000000000000000..edaa4839cea4fcaf2702864e0ff25db262f98d9a --- /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}", +} %] + +