|
|
7e1b55 |
From a3d71eb72a6125a80a9d7b698f34dcb95dc25184 Mon Sep 17 00:00:00 2001
|
|
|
7e1b55 |
From: Anuja More <amore@redhat.com>
|
|
|
7e1b55 |
Date: Thu, 5 Aug 2021 20:03:21 +0530
|
|
|
7e1b55 |
Subject: [PATCH] ipatests: Test ldapsearch with base scope works with compat
|
|
|
7e1b55 |
tree.
|
|
|
7e1b55 |
|
|
|
7e1b55 |
Added test to verify that ldapsearch for compat tree
|
|
|
7e1b55 |
with scope base and sub is not failing.
|
|
|
7e1b55 |
|
|
|
7e1b55 |
Related: https://bugzilla.redhat.com/show_bug.cgi?id=1958909
|
|
|
7e1b55 |
|
|
|
7e1b55 |
Signed-off-by: Anuja More <amore@redhat.com>
|
|
|
7e1b55 |
Reviewed-By: Mohammad Rizwan <myusuf@redhat.com>
|
|
|
7e1b55 |
Reviewed-By: Florence Blanc-Renaud <frenaud@redhat.com>
|
|
|
7e1b55 |
---
|
|
|
7e1b55 |
ipatests/test_integration/test_commands.py | 13 +++++++++++++
|
|
|
7e1b55 |
1 file changed, 13 insertions(+)
|
|
|
7e1b55 |
|
|
|
7e1b55 |
diff --git a/ipatests/test_integration/test_commands.py b/ipatests/test_integration/test_commands.py
|
|
|
7e1b55 |
index 2035ced56..e3a0d867e 100644
|
|
|
7e1b55 |
--- a/ipatests/test_integration/test_commands.py
|
|
|
7e1b55 |
+++ b/ipatests/test_integration/test_commands.py
|
|
|
7e1b55 |
@@ -1558,6 +1558,19 @@ class TestIPACommandWithoutReplica(IntegrationTest):
|
|
|
7e1b55 |
# Run the command again after cache is removed
|
|
|
7e1b55 |
self.master.run_command(['ipa', 'user-show', 'ipauser1'])
|
|
|
7e1b55 |
|
|
|
7e1b55 |
+ def test_basesearch_compat_tree(self):
|
|
|
7e1b55 |
+ """Test ldapsearch against compat tree is working
|
|
|
7e1b55 |
+
|
|
|
7e1b55 |
+ This to ensure that ldapsearch with base scope is not failing.
|
|
|
7e1b55 |
+
|
|
|
7e1b55 |
+ related: https://bugzilla.redhat.com/show_bug.cgi?id=1958909
|
|
|
7e1b55 |
+ """
|
|
|
7e1b55 |
+ tasks.kinit_admin(self.master)
|
|
|
7e1b55 |
+ base_dn = str(self.master.domain.basedn)
|
|
|
7e1b55 |
+ base = "cn=admins,cn=groups,cn=compat,{basedn}".format(basedn=base_dn)
|
|
|
7e1b55 |
+ tasks.ldapsearch_dm(self.master, base, ldap_args=[], scope='sub')
|
|
|
7e1b55 |
+ tasks.ldapsearch_dm(self.master, base, ldap_args=[], scope='base')
|
|
|
7e1b55 |
+
|
|
|
7e1b55 |
|
|
|
7e1b55 |
class TestIPAautomount(IntegrationTest):
|
|
|
7e1b55 |
@classmethod
|
|
|
7e1b55 |
--
|
|
|
7e1b55 |
2.31.1
|
|
|
7e1b55 |
|