mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user