diff options
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) |