From 058c6c4bd6ee95c17bfdfa28dbbde99627f2b938 Mon Sep 17 00:00:00 2001 From: halex Date: Sun, 29 Jul 2007 11:10:19 +0000 Subject: [PATCH] Makes StoreClient completely MDB-free. The only caveat is that the store agent must be on localhost and on port 689. --- src/libs/python/bongo/store/StoreClient.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/libs/python/bongo/store/StoreClient.py b/src/libs/python/bongo/store/StoreClient.py index 86a1546..f5e86e7 100644 --- a/src/libs/python/bongo/store/StoreClient.py +++ b/src/libs/python/bongo/store/StoreClient.py @@ -362,17 +362,17 @@ class StoreClient: from libbongo.libs import msgapi self.owner = self.user = None - addr = msgapi.FindUserNmap(owner) - if addr is None: - raise bongo.BongoError ("Could not look up nmap host for user %s" % owner) - (host, port) = addr + #addr = msgapi.FindUserNmap(owner) + #if addr is None: + # raise bongo.BongoError ("Could not look up nmap host for user %s" % owner) + #(host, port) = addr if authCookie: - self.connection = StoreConnection(host, port, systemAuth=False) + self.connection = StoreConnection("localhost", 689, systemAuth=False) if not self.connection.CookieAuth(user, authCookie): raise bongo.BongoError("Failed cookie authentication with store") elif authPassword: - self.connection = StoreConnection(host, port, systemAuth=False) + self.connection = StoreConnection("localhost", 689, systemAuth=False) if not self.connection.UserAuth(user, authPassword): raise bongo.BongoError("Failed user authentication with store") else: