mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Use full DNs in plugin code.
This commit is contained in:
committed by
Martin Kosek
parent
3aa39547df
commit
a09c50671e
@@ -334,8 +334,7 @@ class host(LDAPObject):
|
||||
try:
|
||||
(dn, entry_attrs) = self.backend.find_entry_by_attr(
|
||||
'serverhostname', hostname, self.object_class, [''],
|
||||
self.container_dn
|
||||
)
|
||||
DN(self.container_dn, api.env.basedn))
|
||||
except errors.NotFound:
|
||||
pass
|
||||
return dn
|
||||
@@ -347,8 +346,9 @@ class host(LDAPObject):
|
||||
managed_hosts = []
|
||||
|
||||
try:
|
||||
(hosts, truncated) = ldap.find_entries(base_dn=self.container_dn,
|
||||
filter=host_filter, attrs_list=host_attrs)
|
||||
(hosts, truncated) = ldap.find_entries(
|
||||
base_dn=DN(self.container_dn, api.env.basedn),
|
||||
filter=host_filter, attrs_list=host_attrs)
|
||||
|
||||
for host in hosts:
|
||||
managed_hosts.append(host[0])
|
||||
|
||||
Reference in New Issue
Block a user