diff options
author | Robert Gogolok <gogo@cs.uni-sb.de> | 2008-01-09 21:39:15 +0000 |
---|---|---|
committer | Robert Gogolok <gogo@cs.uni-sb.de> | 2008-01-09 21:39:15 +0000 |
commit | f7b1b5f0e9055324005ea9003fb8474ec1d08f18 (patch) | |
tree | 8e6ccbea1a21911031b7a652d067f004e65f46c1 /src/lib/Server | |
parent | 2848627d82951554359ca9d7e23fa0326c21f2e1 (diff) | |
download | bcfg2-f7b1b5f0e9055324005ea9003fb8474ec1d08f18.tar.gz bcfg2-f7b1b5f0e9055324005ea9003fb8474ec1d08f18.tar.bz2 bcfg2-f7b1b5f0e9055324005ea9003fb8474ec1d08f18.zip |
bcfg2-admin init: don't echo password
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4227 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Server')
-rw-r--r-- | src/lib/Server/Admin/Init.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/lib/Server/Admin/Init.py b/src/lib/Server/Admin/Init.py index 1c0acc3d6..048a65647 100644 --- a/src/lib/Server/Admin/Init.py +++ b/src/lib/Server/Admin/Init.py @@ -1,4 +1,4 @@ -import os, socket +import getpass, os, socket import Bcfg2.Server.Admin import Bcfg2.Options @@ -97,8 +97,10 @@ class Init(Bcfg2.Server.Admin.Mode): password = '' while ( password == '' ): - password = raw_input( - "Input password used for communication verification: " ) + password = getpass.getpass( + "Input password used for communication verification " + "(without echoing): " + ) server = "https://%s:6789" % socket.getfqdn() rs = raw_input( "Input the server location [%s]: " % server) |