Skip to content

Commit bb71403

Browse files
Changes for next version of CERN Shibboleth
1 parent 76f8de1 commit bb71403

2 files changed

Lines changed: 74 additions & 7 deletions

File tree

DocDB/cgi/ShibbolethUtilities.pm

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ sub FetchSecurityGroupsForShib (%) {
4242

4343
# Otherwise map shibboleth groups to DocDB groups
4444

45-
push @DebugStack,"Setting DocDB groups from shibboleth groups";
46-
my @ShibGroups = split /;/,$ENV{ADFS_GROUP};
45+
push @DebugStack,"Setting DocDB groups from shibboleth groups ".$ENV{CERN_ROLES};
46+
my @ShibGroups = split /;/,$ENV{CERN_ROLES};
4747

4848
foreach my $ShibGroup (@ShibGroups) {
4949
if ($ShibGroupMap{$ShibGroup}) {
@@ -59,7 +59,7 @@ sub FetchSecurityGroupsForShib (%) {
5959
}
6060

6161
sub FetchEmailUserIDForShib () {
62-
my $ShibName = $ENV{ADFS_LOGIN};
62+
my $ShibName = $ENV{CERN_LOGIN};
6363
push @DebugStack,"Finding EmailUserID by shibboleth name $ShibName";
6464

6565
my $EmailUserSelect = $dbh->prepare("select EmailUserID from EmailUser ".
@@ -103,10 +103,10 @@ sub GetUserInfoShib() {
103103
my $EmailAddress = "Unknown";
104104
my $Name = "Unknown";
105105

106-
if (exists $ENV{'ADFS_LOGIN'}) {
107-
$Name = $ENV{ADFS_FULLNAME};
108-
$EmailAddress = $ENV{ADFS_EMAIL};
109-
$Username = $ENV{ADFS_LOGIN};
106+
if (exists $ENV{'CERN_LOGIN'}) {
107+
$Name = $ENV{CERN_FULLNAME};
108+
$EmailAddress = $ENV{CERN_EMAIL};
109+
$Username = $ENV{CERN_LOGIN};
110110
}
111111

112112
push @DebugStack, "GetUserInfoShib returning $Username, $Username, $EmailAddress, $Name";

docker/MyConfig.pm

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
$CPAN::Config = {
2+
'applypatch' => q[],
3+
'auto_commit' => q[0],
4+
'build_cache' => q[100],
5+
'build_dir' => q[/root/.cpan/build],
6+
'build_dir_reuse' => q[0],
7+
'build_requires_install_policy' => q[yes],
8+
'bzip2' => q[],
9+
'cache_metadata' => q[1],
10+
'check_sigs' => q[0],
11+
'colorize_output' => q[0],
12+
'commandnumber_in_prompt' => q[1],
13+
'connect_to_internet_ok' => q[1],
14+
'cpan_home' => q[/root/.cpan],
15+
'curl' => q[/usr/bin/curl],
16+
'ftp_passive' => q[1],
17+
'ftp_proxy' => q[],
18+
'getcwd' => q[cwd],
19+
'gpg' => q[/usr/bin/gpg],
20+
'gzip' => q[/usr/bin/gzip],
21+
'halt_on_failure' => q[0],
22+
'histfile' => q[/root/.cpan/histfile],
23+
'histsize' => q[100],
24+
'http_proxy' => q[],
25+
'inactivity_timeout' => q[0],
26+
'index_expire' => q[1],
27+
'inhibit_startup_message' => q[0],
28+
'keep_source_where' => q[/root/.cpan/sources],
29+
'load_module_verbosity' => q[none],
30+
'make' => q[/usr/bin/make],
31+
'make_arg' => q[],
32+
'make_install_arg' => q[],
33+
'make_install_make_command' => q[/usr/bin/make],
34+
'makepl_arg' => q[],
35+
'mbuild_arg' => q[],
36+
'mbuild_install_arg' => q[],
37+
'mbuild_install_build_command' => q[./Build],
38+
'mbuildpl_arg' => q[],
39+
'no_proxy' => q[],
40+
'pager' => q[/usr/bin/less],
41+
'patch' => q[],
42+
'perl5lib_verbosity' => q[none],
43+
'prefer_external_tar' => q[1],
44+
'prefer_installer' => q[MB],
45+
'prefs_dir' => q[/root/.cpan/prefs],
46+
'prerequisites_policy' => q[follow],
47+
'scan_cache' => q[atstart],
48+
'shell' => undef,
49+
'show_unparsable_versions' => q[0],
50+
'show_upload_date' => q[0],
51+
'show_zero_versions' => q[0],
52+
'tar' => q[/usr/bin/tar],
53+
'tar_verbosity' => q[none],
54+
'term_is_latin' => q[1],
55+
'term_ornaments' => q[1],
56+
'test_report' => q[0],
57+
'trust_test_report_history' => q[0],
58+
'unzip' => q[],
59+
'urllist' => [q[http://ftp.halifax.rwth-aachen.de/cpan/], q[http://mirror.koddos.net/CPAN/], q[http://tux.rainside.sk/CPAN/]],
60+
'use_sqlite' => q[0],
61+
'version_timeout' => q[15],
62+
'wget' => q[],
63+
'yaml_load_code' => q[0],
64+
'yaml_module' => q[YAML],
65+
};
66+
1;
67+
__END__

0 commit comments

Comments
 (0)