diff --git a/lib/AccountManager/Account.pm b/lib/AccountManager/Account.pm index 15f16bade9e80d83565c4bf5ad510e0680bc2a6a..e1d33e6ee16830bd970649bf98d67fdcd3d4ceca 100644 --- a/lib/AccountManager/Account.pm +++ b/lib/AccountManager/Account.pm @@ -48,6 +48,18 @@ my %sn = ( fullset1 => 'Lightfoot - eduGAIN Access Check account', ); +my %displayName = ( + alumni1 => 'Ã…sold Wahlstrøm - eduGAIN Access Check account', + employee1 => 'Linnéa Hsu - eduGAIN Access Check account', + fullset1 => 'Gundabald Lightfoot - eduGAIN Access Check account', + librarywalkin1 => 'Ramón Núñez - eduGAIN Access Check account', + researcher1 => 'Stéphane Larivière - eduGAIN Access Check account', + student1 => 'Ciarán MacCárthaigh - eduGAIN Access Check account', + student2 => 'Damiën Kuijper - eduGAIN Access Check account', + teacher1 => 'Peter Müller - eduGAIN Access Check account', + generic1 => '山崎 å¼˜åæ¨«é‡Ž 陽å - eduGAIN Access Check account', +); + my %mail = ( alumni1 => 'asold.wahlstrom', employee1 => 'linnea.hsu', @@ -87,13 +99,14 @@ my %comment = ( alumni1 => 'An ex-student with "alum" value for eduPersonAffiliation.', employee1 => 'A person with "member", "staff" and "employee" values for eduPersonAffiliation.', fullset1 => 'A person with all eduGAIN user attributes plus givenName and surname.', + limitedset1 => 'A person with only an eduPersonTargetedID attribute.', generic1 => 'A person with a limited set of attributes (eduPersonPrincipalName, mail and displayName).', librarywalkin1 => 'A library user on the campus network.', - researcher1 => 'A researcher with only an eduPersonTargetedID attribute.', student1 => 'A student with "member" and "student" values for eduPersonAffiliation.', student2 => 'A PhD student with "member", "student" and "faculty" values for eduPersonAffiliation.', teacher1 => 'A teacher with a limited set of attributes (eduPersonScopedAffiliation and eduPersonTargetedID).', teacher2 => 'A teacher with "member" and "faculty" values for eduPersonAffiliation.', + researcher1 => 'A researcher, undifferenciable from a teacher as there is no standard value for eduPersonAffiliation.', ); sub print { @@ -121,9 +134,14 @@ sub cn { return $cn{$self->profile()}; } +sub sn { + my ($self) = @_; + return $sn{$self->profile()}; +} + sub displayName { my ($self) = @_; - return $cn{$self->profile()}; + return $displayName{$self->profile()}; } sub givenName { diff --git a/lib/AccountManager/App.pm b/lib/AccountManager/App.pm index f0b7677b0e77efdea53647d0ae78987c17f985b0..5da75bc79867771b531f6dddf7fb23c97a091077 100644 --- a/lib/AccountManager/App.pm +++ b/lib/AccountManager/App.pm @@ -705,6 +705,7 @@ sub req_download_accounts { password profile cn + sn displayName givenName mail