diff --git a/bin/account-manager.pl.in b/bin/account-manager.pl.in index 050feba9a794b9155b2f0ce9786f1786cf9a1e4a..e593b75a37f931bbfd9d65e514139ed4ce5f982a 100755 --- a/bin/account-manager.pl.in +++ b/bin/account-manager.pl.in @@ -26,7 +26,7 @@ use IdPAccountManager::Tools; my %options; GetOptions( \%options, - 'account_profile=s', + 'profile=s', 'contacts=s', 'delete', 'displayname=s', @@ -79,9 +79,9 @@ for ($action) { sub add_account { pod2usage( - -message => "missing account_profile option, aborting\n", + -message => "missing profile option, aborting\n", -verbose => 0 - ) unless $options{account_profile}; + ) unless $options{profile}; pod2usage( -message => "missing sp_entityid option, aborting\n", @@ -90,7 +90,7 @@ sub add_account { my $test_account = IdPAccountManager::TestAccount->new( db => $db, - profile => $options{account_profile}, + profile => $options{profile}, sp_entityid => $options{sp_entityid}, scope => $configuration->{idp_scope}, ); @@ -114,8 +114,8 @@ sub list_accounts { push @{ $args{query} }, sp_entityid => $options{sp_entityid}; } - if ($options{account_profile}) { - push @{ $args{query} }, profile => $options{account_profile}; + if ($options{profile}) { + push @{ $args{query} }, profile => $options{profile}; } if ($options{filter_expired}) { @@ -346,11 +346,11 @@ account-manager-client.pl - Command line client to the Test IdP Account manager =head1 SYNOPSIS B<account-manager-client.pl> B<add_account> -S<B<--account_profile> I<string>> +S<B<--profile> I<string>> S<B<--sp_entityid> I<string>> B<account-manager-client.pl> B<list_accounts> -S<[B<--account_profile> I<string>]> +S<[B<--profile> I<string>]> S<[B<--sp_entityid> I<string>]> [B<--filter_expired>] [B<--delete>] @@ -390,13 +390,13 @@ functions. $> account-manager-client.pl add_account \ --sp_entityid https://test.federation.renater.fr/test/ressource \ - --account_profile student1 + --profile student1 Adds a new test account. $> account-manager-client.pl list_accounts \ --sp_entityid https://test.federation.renater.fr/test/ressource \ - --account_profile student1 + --profile student1 List all test accounts. Criterias can be added to filter test accounts.