From: Greg Hudson Date: Tue, 25 May 2010 15:36:40 +0000 (+0000) Subject: In testrealm.py, stash the passwords in testdir/passwords so that they X-Git-Tag: krb5-1.9-beta1~210 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b1b7b0091e5feadf01113e687274c964d29b1770;p=krb5.git In testrealm.py, stash the passwords in testdir/passwords so that they can be retrieved after they've scrolled away. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@24103 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/util/testrealm.py b/src/util/testrealm.py index 39a348bda..30466314c 100644 --- a/src/util/testrealm.py +++ b/src/util/testrealm.py @@ -56,6 +56,11 @@ realm = K5Realm() env = realm.env_master.copy() supplement_path(env) +pwfilename = os.path.join('testdir', 'passwords') +pwfile = open(pwfilename, 'w') +pwfile.write('user: %s\nadmin: %s\n' % (password('user'), password('admin'))) +pwfile.close() + print print 'Realm files are in %s' % realm.testdir print 'KRB5_CONFIG is %s' % env['KRB5_CONFIG'] @@ -63,7 +68,7 @@ print 'KRB5_KDC_PROFILE is %s' % env['KRB5_KDC_PROFILE'] print 'KRB5CCNAME is %s' % env['KRB5CCNAME'] print 'KRB5_KTNAME is %s' % env['KRB5_KTNAME'] print 'KRB5RCACHEDIR is %s' % env['KRB5RCACHEDIR'] -print 'Password for user is %s' % password('user') +print 'Password for user is %s (see also %s)' % (password('user'), pwfilename) print 'Password for admin is %s' % password('admin') print