diff --git a/bin/account-manager.pl.in b/bin/account-manager.pl.in index 3a0a6e4a59673cd130456ef8c5e0dbf290a630ca..b4b8e0f6073541e3486ca927ba764d16c3f3e145 100755 --- a/bin/account-manager.pl.in +++ b/bin/account-manager.pl.in @@ -140,7 +140,7 @@ sub list_accounts { die "failed to update simpleSAMLphp configuration file\n" unless IdPAccountManager::Tools::update_ssp_authsources( $configuration->{templates_dir}, - $configuration + $configuration->{idp_accounts_file}} ); printf "Update simpleSamlPhp configuration file...\n"; @@ -153,7 +153,7 @@ sub parse_metadata { eval { $federation_metadata = IdPAccountManager::SAMLMetadata->new( - file => $configuration->{federation_metadata_file_path} + file => $configuration->{federation_metadata_file} ); }; die "unable to load federation metadata: $EVAL_ERROR" if $EVAL_ERROR; @@ -161,7 +161,7 @@ sub parse_metadata { my $data = $federation_metadata->parse(id => $options{sp_entityid}); printf "Document %s parsed\n", - $configuration->{federation_metadata_file_path}; + $configuration->{federation_metadata_file}; ## List SAML entities printf "Hashref representing the metadata:\n"; @@ -401,7 +401,7 @@ Remove all expired test accounts from DB. $> account-manager-client.pl parse_metadata Parses the SAML metadata file, as defined by the -C<federation_metadata_file_path> configuration parameter. +C<federation_metadata_file> configuration parameter. $> account-manager-client.pl list_tokens \ --sp_entityid https://test.federation.renater.fr/test/ressource \ diff --git a/conf/manager.conf.in b/conf/manager.conf.in index 2c1f32e9d247b55846964ac8a44117cf8bbe502d..54e69cb3a0017382de8cb2e7e99672ad329fc2e4 100644 --- a/conf/manager.conf.in +++ b/conf/manager.conf.in @@ -66,7 +66,7 @@ dev_sp_contact = john@my.fqdn, sarah@my.fqdn notice_from = edugain-access-check.fqdn # federation metadata local copy path -federation_metadata_file_path = @sysconfdir@/edugain-md.xml +federation_metadata_file = @sysconfdir@/edugain-md.xml # Valid account profiles account_profiles = fullset1, limitedset1, generic1, student1, student2, teacher1, teacher2, alumni1, librarywalkin1, employee1, researcher1 diff --git a/lib/IdPAccountManager/WebRequest.pm b/lib/IdPAccountManager/WebRequest.pm index 67170f3c5cad27d81abffa5de99de26c4fc4c89f..06d3b155aa8d6e0a983c5d77e7b8871ff15d28b7 100755 --- a/lib/IdPAccountManager/WebRequest.pm +++ b/lib/IdPAccountManager/WebRequest.pm @@ -185,7 +185,7 @@ sub req_account_wizard { eval { $metadata = IdPAccountManager::SAMLMetadata->new( - file => $self->{configuration}->{federation_metadata_file_path} + file => $self->{configuration}->{federation_metadata_file} ); }; if ($EVAL_ERROR) { @@ -226,7 +226,7 @@ sub req_select_sp { eval { $metadata = IdPAccountManager::SAMLMetadata->new( - file => $self->{configuration}->{federation_metadata_file_path} + file => $self->{configuration}->{federation_metadata_file} ); }; if ($EVAL_ERROR) {