590d18
From 47e9c9cacdc189ac87983ed1596db3d48f45e089 Mon Sep 17 00:00:00 2001
590d18
From: Tomas Babej <tbabej@redhat.com>
590d18
Date: Fri, 7 Aug 2015 18:03:48 +0200
590d18
Subject: [PATCH] dcerpc: Simplify generation of LSA-RPC binding strings
590d18
590d18
https://fedorahosted.org/freeipa/ticket/5183
590d18
590d18
Reviewed-By: Tomas Babej <tbabej@redhat.com>
590d18
---
590d18
 ipaserver/dcerpc.py | 3 +--
590d18
 1 file changed, 1 insertion(+), 2 deletions(-)
590d18
590d18
diff --git a/ipaserver/dcerpc.py b/ipaserver/dcerpc.py
590d18
index 74b4743d4bfb9c4950f441f1aa3561fc7a81391c..71106b6a804b8445e5c266a92a30ac7557dcf853 100644
590d18
--- a/ipaserver/dcerpc.py
590d18
+++ b/ipaserver/dcerpc.py
590d18
@@ -855,8 +855,7 @@ class TrustDomainInstance(object):
590d18
         """
590d18
         transports = (u'ncacn_np', u'ncacn_ip_tcp')
590d18
         options = ( u'smb2,print', u'print')
590d18
-        binding_template=lambda x,y,z: u'%s:%s[%s]' % (x, y, z)
590d18
-        return [binding_template(t, remote_host, o) for t in transports for o in options]
590d18
+        return [u'%s:%s[%s]' % (t, remote_host, o) for t in transports for o in options]
590d18
 
590d18
     def retrieve_anonymously(self, remote_host, discover_srv=False, search_pdc=False):
590d18
         """
590d18
-- 
590d18
2.4.3
590d18