Makes StoreClient completely MDB-free. The only caveat is that the store agent must be on localhost and on port 689.

This commit is contained in:
halex
2007-07-29 11:10:19 +00:00
parent 067f347f44
commit 058c6c4bd6
+6 -6
View File
@@ -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: