mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Add ldapmodify/search helper functions
Move common LDAP commands to ldapmodify_dm() and ldapsearch_dm() helper functions. Signed-off-by: Christian Heimes <cheimes@redhat.com> Reviewed-By: Rob Crittenden <rcritten@redhat.com>
This commit is contained in:
committed by
Rob Crittenden
parent
d87a3b01e0
commit
73bc11a20b
@@ -130,18 +130,11 @@ class TestExternalCA(IntegrationTest):
|
||||
tasks.install_replica(self.master, self.replicas[0])
|
||||
|
||||
# check that nsds5ReplicaReleaseTimeout option was set
|
||||
result = self.master.run_command([
|
||||
'ldapsearch',
|
||||
'-x',
|
||||
'-ZZ',
|
||||
'-h', self.master.hostname,
|
||||
'-D', 'cn=directory manager',
|
||||
'-w', self.master.config.dirman_password,
|
||||
'-b', 'cn=mapping tree,cn=config',
|
||||
'(cn=replica)',
|
||||
'-LLL',
|
||||
'-o',
|
||||
'ldif-wrap=no'])
|
||||
result = tasks.ldapsearch_dm(
|
||||
self.master,
|
||||
'cn=mapping tree,cn=config',
|
||||
['(cn=replica)'],
|
||||
)
|
||||
# case insensitive match
|
||||
text = result.stdout_text.lower()
|
||||
# see ipaserver.install.replication.REPLICA_FINAL_SETTINGS
|
||||
|
||||
Reference in New Issue
Block a user