mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
rpc: do not validate command name in RPCClient.forward
The validation is already done on the server. This allows manually forwarding commands unknown to the client but known to the server. https://fedorahosted.org/freeipa/ticket/4739 Reviewed-By: David Kupka <dkupka@redhat.com>
This commit is contained in:
@@ -971,10 +971,6 @@ class RPCClient(Connectible):
|
||||
:param args: Positional arguments to pass to remote command.
|
||||
:param kw: Keyword arguments to pass to remote command.
|
||||
"""
|
||||
if name not in self.Command:
|
||||
raise ValueError(
|
||||
'%s.forward(): %r not in api.Command' % (self.name, name)
|
||||
)
|
||||
server = getattr(context, 'request_url', None)
|
||||
self.log.info("Forwarding '%s' to %s server '%s'",
|
||||
name, self.protocol, server)
|
||||
|
Reference in New Issue
Block a user