Commit e69ea5af authored by Daniele Venzano's avatar Daniele Venzano

Add missing 'pam' option when creating a new user

parent e3204c12
......@@ -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")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment