From 3d6262825ccdd5970a15071e50e24f17a2e2c6c3 Mon Sep 17 00:00:00 2001 From: Mark Huang Date: Wed, 6 Sep 2006 19:17:25 +0000 Subject: [PATCH] - add default auth structure --- Shell.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Shell.py b/Shell.py index 232bf287..b76e869e 100755 --- a/Shell.py +++ b/Shell.py @@ -5,7 +5,7 @@ # Mark Huang # 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 -- 2.47.0