Implement user-find and user-add backend functions so they work over XML-RPC

Change port to 8880 to not conflict with a running IPA v1 instance
Encode incoming values from unicode as utf-8 before sending to LDAP
This commit is contained in:
Rob Crittenden
2008-10-04 01:50:59 -04:00
parent 3ffbaac64c
commit 7e4b0a072e
7 changed files with 113 additions and 20 deletions

View File

@@ -35,7 +35,7 @@ class xmlrpc(Backend):
def get_client(self):
# FIXME: The server uri should come from self.api.env.server_uri
return xmlrpclib.ServerProxy('http://localhost:8080', allow_none=True)
return xmlrpclib.ServerProxy('http://localhost:8888', allow_none=True)
def forward_call(self, name, *args, **kw):
"""
@@ -45,5 +45,6 @@ class xmlrpc(Backend):
command = getattr(client, name)
params = xmlrpc_marshal(*args, **kw)
return command(*params)
# return command(*args, **kw)
api.register(xmlrpc)