mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-11 00:31:56 -06:00
ipaserver/dcerpc: make sure to always return unicode SID of the trust domain
Trusted domain SID could be obtained through different means. When it is fetched from the AD DC via LDAP, it needs to be extracted from a default context and explicitly converted to unicode. https://fedorahosted.org/freeipa/ticket/4246 Reviewed-By: Martin Kosek <mkosek@redhat.com>
This commit is contained in:
parent
723166aebe
commit
6195870e82
@ -750,7 +750,7 @@ class TrustDomainInstance(object):
|
||||
|
||||
def parse_naming_context(self, context):
|
||||
naming_ref = re.compile('.*<SID=(S-.*)>.*')
|
||||
return naming_ref.match(context).group(1)
|
||||
return unicode(naming_ref.match(context).group(1))
|
||||
|
||||
def retrieve(self, remote_host):
|
||||
self.init_lsa_pipe(remote_host)
|
||||
|
Loading…
Reference in New Issue
Block a user