summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomas Babej <tbabej@redhat.com>2015-08-07 18:03:48 +0200
committerTomas Babej <tbabej@redhat.com>2015-08-07 18:06:02 +0200
commitc906784ded416eec70704a07e3923601fe509927 (patch)
tree4fc88da18c907f681760bd9b708bef7867e92755
parentee377a20cd842f03ff263e21b00267732a9fe3dc (diff)
downloadfreeipa-c906784ded416eec70704a07e3923601fe509927.zip
freeipa-c906784ded416eec70704a07e3923601fe509927.tar.gz
freeipa-c906784ded416eec70704a07e3923601fe509927.tar.xz
dcerpc: Simplify generation of LSA-RPC binding strings
https://fedorahosted.org/freeipa/ticket/5183 Reviewed-By: Tomas Babej <tbabej@redhat.com>
-rw-r--r--ipaserver/dcerpc.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/ipaserver/dcerpc.py b/ipaserver/dcerpc.py
index 5f04d95..5428d0e 100644
--- a/ipaserver/dcerpc.py
+++ b/ipaserver/dcerpc.py
@@ -865,8 +865,7 @@ class TrustDomainInstance(object):
"""
transports = (u'ncacn_np', u'ncacn_ip_tcp')
options = ( u'smb2,print', u'print')
- binding_template=lambda x,y,z: u'%s:%s[%s]' % (x, y, z)
- return [binding_template(t, remote_host, o) for t in transports for o in options]
+ return [u'%s:%s[%s]' % (t, remote_host, o) for t in transports for o in options]
def retrieve_anonymously(self, remote_host, discover_srv=False, search_pdc=False):
"""