From 47e9c9cacdc189ac87983ed1596db3d48f45e089 Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Fri, 7 Aug 2015 18:03:48 +0200 Subject: [PATCH] dcerpc: Simplify generation of LSA-RPC binding strings https://fedorahosted.org/freeipa/ticket/5183 Reviewed-By: Tomas Babej --- ipaserver/dcerpc.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ipaserver/dcerpc.py b/ipaserver/dcerpc.py index 74b4743d4bfb9c4950f441f1aa3561fc7a81391c..71106b6a804b8445e5c266a92a30ac7557dcf853 100644 --- a/ipaserver/dcerpc.py +++ b/ipaserver/dcerpc.py @@ -855,8 +855,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): """ -- 2.4.3