From 84d42493e26ff505d790f40d6f1bff829861d5c1 Mon Sep 17 00:00:00 2001 From: Daniel Molina Date: Wed, 26 Oct 2011 12:27:11 +0200 Subject: [PATCH] bug #847: Add driver option --- src/cli/oneuser | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/cli/oneuser b/src/cli/oneuser index 3f2cd5f9bb..24de6ecac1 100755 --- a/src/cli/oneuser +++ b/src/cli/oneuser @@ -52,7 +52,6 @@ cmd=CommandParser::CmdParser.new(ARGV) do SHA1={ :name => "sha1", - :short => "-s", :large => "--sha1", :description => "The password will be hashed using the sha1 algorithm" } @@ -114,7 +113,14 @@ cmd=CommandParser::CmdParser.new(ARGV) do :description => "Token duration in seconds, defaults to 3600 (1 h)" } - create_options = [READ_FILE, SHA1, SSH, X509, KEY, CERT] + DRIVER={ + :name => "driver", + :large => "--driver driver", + :format => String, + :description => "Driver to autehnticate this user" + } + + create_options = [READ_FILE, SHA1, SSH, X509, KEY, CERT, DRIVER] login_options = [SSH, X509, X509_PROXY, KEY, CERT, PROXY, TIME] ########################################################################