mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-01-11 08:41:55 -06:00
ipasam: use base scope when fetching domain information about own domain
Since we use associatedDomain attribute to store information about UPN suffixes and our own domain, searching subtree is going to return more than one entry. Limit search for own domain by base scope as we only need to fetch our own domain information here, not UPN suffixes. Required for https://fedorahosted.org/freeipa/ticket/2945
This commit is contained in:
parent
3253a30541
commit
1c68c3edff
@ -3479,7 +3479,7 @@ static NTSTATUS ipasam_get_domain_name(struct ldapsam_privates *ldap_state,
|
||||
|
||||
ret = smbldap_search(smbldap_state,
|
||||
ldap_state->ipasam_privates->base_dn,
|
||||
LDAP_SCOPE_SUBTREE,
|
||||
LDAP_SCOPE_BASE,
|
||||
"objectclass=domainRelatedObject", attr_list, 0,
|
||||
&result);
|
||||
if (ret != LDAP_SUCCESS) {
|
||||
|
Loading…
Reference in New Issue
Block a user