Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Simone Rossi
main
Commits
e69ea5af
Commit
e69ea5af
authored
Aug 23, 2018
by
Daniele Venzano
Browse files
Add missing 'pam' option when creating a new user
parent
e3204c12
Changes
1
Hide whitespace changes
Inline
Side-by-side
zoe_cmd/entrypoint_admin.py
View file @
e69ea5af
...
...
@@ -492,7 +492,7 @@ def process_arguments() -> Tuple[ArgumentParser, Namespace]:
sub_parser
=
subparser
.
add_parser
(
'user-ls'
,
help
=
"List existing users"
)
sub_parser
.
add_argument
(
'--username'
,
help
=
"Filter by user name"
)
sub_parser
.
add_argument
(
'--enabled'
,
type
=
int
,
choices
=
[
0
,
1
],
help
=
"Filter by enabled status"
)
sub_parser
.
add_argument
(
'--auth_source'
,
choices
=
[
'internal'
,
'ldap'
,
'ldap+ssl'
,
'textfile'
],
help
=
"Filter by auth source"
)
sub_parser
.
add_argument
(
'--auth_source'
,
choices
=
[
'internal'
,
'ldap'
,
'ldap+ssl'
,
'textfile'
,
'pam'
],
help
=
"Filter by auth source"
)
sub_parser
.
add_argument
(
'--role'
,
help
=
"Filter by role name"
)
sub_parser
.
add_argument
(
'--quota'
,
help
=
"Filter by quota name"
)
sub_parser
.
set_defaults
(
func
=
user_ls_cmd
)
...
...
@@ -504,7 +504,7 @@ def process_arguments() -> Tuple[ArgumentParser, Namespace]:
sub_parser
=
subparser
.
add_parser
(
'user-create'
,
help
=
"Create a new user"
)
sub_parser
.
add_argument
(
'username'
,
help
=
"Username"
)
sub_parser
.
add_argument
(
'email'
,
help
=
"Email"
)
sub_parser
.
add_argument
(
'auth_source'
,
choices
=
[
'internal'
,
'ldap'
,
'ldap+ssl'
,
'textfile'
],
help
=
"Authentication method"
)
sub_parser
.
add_argument
(
'auth_source'
,
choices
=
[
'internal'
,
'ldap'
,
'ldap+ssl'
,
'textfile'
,
'pam'
],
help
=
"Authentication method"
)
sub_parser
.
add_argument
(
'role'
,
help
=
"Role name"
)
sub_parser
.
add_argument
(
'quota'
,
help
=
"Quota name"
)
sub_parser
.
set_defaults
(
func
=
user_create_cmd
)
...
...
@@ -519,7 +519,7 @@ def process_arguments() -> Tuple[ArgumentParser, Namespace]:
sub_parser
.
add_argument
(
'--fs_uid'
,
type
=
int
,
help
=
"Filesystem UID"
)
sub_parser
.
add_argument
(
'--password'
,
help
=
"Change or set the password for internal authentication"
)
sub_parser
.
add_argument
(
'--enabled'
,
type
=
int
,
choices
=
[
0
,
1
],
help
=
"Enable or disable the user"
)
sub_parser
.
add_argument
(
'--auth_source'
,
choices
=
[
'internal'
,
'ldap'
,
'ldap+ssl'
,
'textfile'
],
help
=
"Change the authentication source"
)
sub_parser
.
add_argument
(
'--auth_source'
,
choices
=
[
'internal'
,
'ldap'
,
'ldap+ssl'
,
'textfile'
,
'pam'
],
help
=
"Change the authentication source"
)
sub_parser
.
add_argument
(
'--priority'
,
type
=
int
,
help
=
"Change priority"
)
sub_parser
.
add_argument
(
'--role_id'
,
help
=
"Change role"
)
sub_parser
.
add_argument
(
'--quota_id'
,
help
=
"Change quota"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment