BIND 10 trac2641_3, updated. 27dc1e7a87eb35dfa6a67f44b8ddf2d66d26abab [2641] Revise prompts displayed by bindctl when login fails
BIND 10 source code commits
bind10-changes at lists.isc.org
Wed Feb 27 00:54:51 UTC 2013
The branch, trac2641_3 has been updated
via 27dc1e7a87eb35dfa6a67f44b8ddf2d66d26abab (commit)
from f75fcf0b19faa026baba075f8e76dc5aef4d31da (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 27dc1e7a87eb35dfa6a67f44b8ddf2d66d26abab
Author: Mukund Sivaraman <muks at isc.org>
Date: Wed Feb 27 06:15:00 2013 +0530
[2641] Revise prompts displayed by bindctl when login fails
-----------------------------------------------------------------------
Summary of changes:
src/bin/bindctl/bindcmd.py | 19 ++++++++++++++++---
1 file changed, 16 insertions(+), 3 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/bin/bindctl/bindcmd.py b/src/bin/bindctl/bindcmd.py
index fa4ce6d..d750b35 100644
--- a/src/bin/bindctl/bindcmd.py
+++ b/src/bin/bindctl/bindcmd.py
@@ -33,6 +33,7 @@ import inspect
import pprint
import ssl, socket
import os, time, random, re
+import os.path
import getpass
from hashlib import sha1
import csv
@@ -268,9 +269,21 @@ WARNING: Python readline module isn't available, so the command line editor
# No valid logins were found, prompt the user for a username/password
count = 0
- self._print('No stored password file found, please see sections '
- '"Configuration specification for b10-cmdctl" and "bindctl '
- 'command-line options" of the BIND 10 guide.')
+ if not os.path.exists(self.csv_file_dir + CSV_FILE_NAME):
+ self._print('\nNo stored password file found.\n\n'
+ 'When the system is first set up you need to create '
+ 'at least one user account.\n'
+ 'For information on how to set up a BIND 10 system, '
+ 'please check see the\n'
+ 'BIND 10 Guide: \n\n'
+ 'http://bind10.isc.org/docs/bind10-guide.html#quick-start-auth-dns\n\n'
+
+ 'If a user account has been set up, please check the '
+ 'b10-cmdctl log for other\n'
+ 'information.\n')
+ else:
+ self._print('Login failed: either the user name or password is '
+ 'invalid.\n')
while True:
count = count + 1
if count > 3:
More information about the bind10-changes
mailing list