- add default auth structure
authorMark Huang <mlhuang@cs.princeton.edu>
Wed, 6 Sep 2006 19:17:25 +0000 (19:17 +0000)
committerMark Huang <mlhuang@cs.princeton.edu>
Wed, 6 Sep 2006 19:17:25 +0000 (19:17 +0000)
Shell.py

index 232bf28..b76e869 100755 (executable)
--- a/Shell.py
+++ b/Shell.py
@@ -5,7 +5,7 @@
 # Mark Huang <mlhuang@cs.princeton.edu>
 # Copyright (C) 2005 The Trustees of Princeton University
 #
-# $Id: plcsh,v 1.3 2006/01/09 19:57:24 mlhuang Exp $
+# $Id: Shell.py,v 1.1 2006/09/06 15:33:59 mlhuang Exp $
 #
 
 import os, sys
@@ -41,6 +41,11 @@ for (opt, optval) in opts:
 
 api = PLCAPI(config)
 
+auth = {'AuthMethod': "capability",
+        'Username': api.config.PLC_API_MAINTENANCE_USER,
+        'AuthString': api.config.PLC_API_MAINTENANCE_PASSWORD,
+        'Role': "admin"}
+
 class Dummy:
     """
     Dummy class to support tab completion of API methods with dots in