Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
eduGAIN Access Check - Account manager
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
edugain
eduGAIN Access Check - Account manager
Commits
ce46c02d
Commit
ce46c02d
authored
7 years ago
by
Guillaume ROUSSE
Browse files
Options
Downloads
Patches
Plain Diff
use shorter option name
parent
c1a59a20
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/account-manager.pl.in
+10
-10
10 additions, 10 deletions
bin/account-manager.pl.in
with
10 additions
and
10 deletions
bin/account-manager.pl.in
+
10
−
10
View file @
ce46c02d
...
@@ -26,7 +26,7 @@ use IdPAccountManager::Tools;
...
@@ -26,7 +26,7 @@ use IdPAccountManager::Tools;
my
%options
;
my
%options
;
GetOptions
(
GetOptions
(
\
%options
,
\
%options
,
'
account_
profile=s
',
'
profile=s
',
'
contacts=s
',
'
contacts=s
',
'
delete
',
'
delete
',
'
displayname=s
',
'
displayname=s
',
...
@@ -79,9 +79,9 @@ for ($action) {
...
@@ -79,9 +79,9 @@ for ($action) {
sub
add_account
{
sub
add_account
{
pod2usage
(
pod2usage
(
-
message
=>
"
missing
account_
profile option, aborting
\n
",
-
message
=>
"
missing profile option, aborting
\n
",
-
verbose
=>
0
-
verbose
=>
0
)
unless
$options
{
account_
profile
};
)
unless
$options
{
profile
};
pod2usage
(
pod2usage
(
-
message
=>
"
missing sp_entityid option, aborting
\n
",
-
message
=>
"
missing sp_entityid option, aborting
\n
",
...
@@ -90,7 +90,7 @@ sub add_account {
...
@@ -90,7 +90,7 @@ sub add_account {
my
$test_account
=
IdPAccountManager::
TestAccount
->
new
(
my
$test_account
=
IdPAccountManager::
TestAccount
->
new
(
db
=>
$db
,
db
=>
$db
,
profile
=>
$options
{
account_
profile
},
profile
=>
$options
{
profile
},
sp_entityid
=>
$options
{
sp_entityid
},
sp_entityid
=>
$options
{
sp_entityid
},
scope
=>
$configuration
->
{
idp_scope
},
scope
=>
$configuration
->
{
idp_scope
},
);
);
...
@@ -114,8 +114,8 @@ sub list_accounts {
...
@@ -114,8 +114,8 @@ sub list_accounts {
push
@
{
$args
{
query
}
},
sp_entityid
=>
$options
{
sp_entityid
};
push
@
{
$args
{
query
}
},
sp_entityid
=>
$options
{
sp_entityid
};
}
}
if
(
$options
{
account_
profile
})
{
if
(
$options
{
profile
})
{
push
@
{
$args
{
query
}
},
profile
=>
$options
{
account_
profile
};
push
@
{
$args
{
query
}
},
profile
=>
$options
{
profile
};
}
}
if
(
$options
{
filter_expired
})
{
if
(
$options
{
filter_expired
})
{
...
@@ -346,11 +346,11 @@ account-manager-client.pl - Command line client to the Test IdP Account manager
...
@@ -346,11 +346,11 @@ account-manager-client.pl - Command line client to the Test IdP Account manager
=head1 SYNOPSIS
=head1 SYNOPSIS
B<account-manager-client.pl> B<add_account>
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>>
S<B<--sp_entityid> I<string>>
B<account-manager-client.pl> B<list_accounts>
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>]>
S<[B<--sp_entityid> I<string>]>
[B<--filter_expired>]
[B<--filter_expired>]
[B<--delete>]
[B<--delete>]
...
@@ -390,13 +390,13 @@ functions.
...
@@ -390,13 +390,13 @@ functions.
$> account-manager-client.pl add_account \
$> account-manager-client.pl add_account \
--sp_entityid https://test.federation.renater.fr/test/ressource \
--sp_entityid https://test.federation.renater.fr/test/ressource \
--
account_
profile student1
--profile student1
Adds a new test account.
Adds a new test account.
$> account-manager-client.pl list_accounts \
$> account-manager-client.pl list_accounts \
--sp_entityid https://test.federation.renater.fr/test/ressource \
--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.
List all test accounts. Criterias can be added to filter test accounts.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment