mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
ipatests: Test ldapsearch with base scope works with compat tree.
Added test to verify that ldapsearch for compat tree with scope base and sub is not failing. Related: https://bugzilla.redhat.com/show_bug.cgi?id=1958909 Signed-off-by: Anuja More <amore@redhat.com> Reviewed-By: Mohammad Rizwan <myusuf@redhat.com> Reviewed-By: Florence Blanc-Renaud <flo@redhat.com>
This commit is contained in:
parent
6e2ca193a1
commit
7cac63faef
@ -1581,6 +1581,19 @@ class TestIPACommandWithoutReplica(IntegrationTest):
|
||||
# Run the command again after cache is removed
|
||||
self.master.run_command(['ipa', 'user-show', 'ipauser1'])
|
||||
|
||||
def test_basesearch_compat_tree(self):
|
||||
"""Test ldapsearch against compat tree is working
|
||||
|
||||
This to ensure that ldapsearch with base scope is not failing.
|
||||
|
||||
related: https://bugzilla.redhat.com/show_bug.cgi?id=1958909
|
||||
"""
|
||||
tasks.kinit_admin(self.master)
|
||||
base_dn = str(self.master.domain.basedn)
|
||||
base = "cn=admins,cn=groups,cn=compat,{basedn}".format(basedn=base_dn)
|
||||
tasks.ldapsearch_dm(self.master, base, ldap_args=[], scope='sub')
|
||||
tasks.ldapsearch_dm(self.master, base, ldap_args=[], scope='base')
|
||||
|
||||
|
||||
class TestIPAautomount(IntegrationTest):
|
||||
@classmethod
|
||||
|
Loading…
Reference in New Issue
Block a user