svn rev #24327: trunk/src/util/

ghudson@MIT.EDU ghudson at MIT.EDU
Fri Sep 17 12:06:34 EDT 2010


http://src.mit.edu/fisheye/changelog/krb5/?cs=24327
Commit By: ghudson
Log Message:
Add an extra arguments parameter to k5test's realm.start_kdc().



Changed Files:
U   trunk/src/util/k5test.py
Modified: trunk/src/util/k5test.py
===================================================================
--- trunk/src/util/k5test.py	2010-09-17 15:52:23 UTC (rev 24326)
+++ trunk/src/util/k5test.py	2010-09-17 16:06:34 UTC (rev 24327)
@@ -222,8 +222,9 @@
 
 * realm.create_kdb(): Create a new master KDB.
 
-* realm.start_kdc(): Start a krb5kdc with the realm's master KDC
-  environment.  Errors if a KDC is already running.
+* realm.start_kdc(args=[]): Start a krb5kdc with the realm's master
+  KDC environment.  Errors if a KDC is already running.  If args is
+  given, it contains a list of additional krb5kdc arguments.
 
 * realm.stop_kdc(): Stop the krb5kdc process.  Errors if no KDC is
   running.
@@ -818,10 +819,10 @@
         global kdb5_util
         self.run_as_master([kdb5_util, 'create', '-W', '-s', '-P', 'master'])
 
-    def start_kdc(self):
+    def start_kdc(self, args=[]):
         global krb5kdc
         assert(self._kdc_proc is None)
-        self._kdc_proc = _start_daemon([krb5kdc, '-n'], self.env_master,
+        self._kdc_proc = _start_daemon([krb5kdc, '-n'] + args, self.env_master,
                                         'starting...')
 
     def stop_kdc(self):




More information about the cvs-krb5 mailing list