svn rev #24103: trunk/src/util/

ghudson@MIT.EDU ghudson at MIT.EDU
Tue May 25 11:36:40 EDT 2010


http://src.mit.edu/fisheye/changelog/krb5/?cs=24103
Commit By: ghudson
Log Message:
In testrealm.py, stash the passwords in testdir/passwords so that they
can be retrieved after they've scrolled away.



Changed Files:
U   trunk/src/util/testrealm.py
Modified: trunk/src/util/testrealm.py
===================================================================
--- trunk/src/util/testrealm.py	2010-05-25 02:44:45 UTC (rev 24102)
+++ trunk/src/util/testrealm.py	2010-05-25 15:36:40 UTC (rev 24103)
@@ -56,6 +56,11 @@
 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 '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
 




More information about the cvs-krb5 mailing list