mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Remove search_s and search_ext_s from IPAdmin
Part of the work for: https://fedorahosted.org/freeipa/ticket/2660
This commit is contained in:
committed by
Martin Kosek
parent
d7bf70902b
commit
8f44811a95
@@ -704,9 +704,10 @@ class ADTRUSTInstance(service.Service):
|
||||
def find_local_id_range(self):
|
||||
self.ldap_connect()
|
||||
|
||||
if self.admin_conn.search_s(DN(api.env.container_ranges, self.suffix),
|
||||
ldap.SCOPE_ONELEVEL,
|
||||
"objectclass=ipaDomainIDRange"):
|
||||
if self.admin_conn.get_entries(
|
||||
DN(api.env.container_ranges, self.suffix),
|
||||
ldap.SCOPE_ONELEVEL,
|
||||
"(objectclass=ipaDomainIDRange)"):
|
||||
return
|
||||
|
||||
try:
|
||||
@@ -727,8 +728,8 @@ class ADTRUSTInstance(service.Service):
|
||||
"(gidNumber<=%d)(gidNumner>=%d)))" % \
|
||||
((base_id - 1), (base_id + id_range_size),
|
||||
(base_id - 1), (base_id + id_range_size))
|
||||
if self.admin_conn.search_s("cn=accounts," + self.suffix,
|
||||
ldap.SCOPE_SUBTREE, id_filter):
|
||||
if self.admin_conn.get_entries(DN(('cn', 'accounts'), self.suffix),
|
||||
ldap.SCOPE_SUBTREE, id_filter):
|
||||
raise ValueError("There are objects with IDs out of the expected" \
|
||||
"range.\nAdd local ID range manually and try " \
|
||||
"again!")
|
||||
|
||||
Reference in New Issue
Block a user