mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
dcerpc: Simplify generation of LSA-RPC binding strings
https://fedorahosted.org/freeipa/ticket/5183 Reviewed-By: Tomas Babej <tbabej@redhat.com>
This commit is contained in:
parent
ee377a20cd
commit
c906784ded
@ -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):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user