Skip to content

Commit a65f1a7

Browse files
Adjust tests for python-ldap==3.4.0
Before python-ldap/python-ldap#382, the schema files were included in slapd.conf, so the additional schema files were listed. The release python-ldap==3.4.0 is the first with python-ldap/python-ldap#382, which migrates to the modern configuration for SlapdObject. The LDIF files should now be used to configure slapd.
1 parent cf22b26 commit a65f1a7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/tests.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,15 +132,15 @@ def setUpClass(cls):
132132
cls.server = slapdtest.SlapdObject()
133133
cls.server.suffix = "o=test"
134134
cls.server.openldap_schema_files = [
135-
"core.schema",
136-
"cosine.schema",
137-
"inetorgperson.schema",
138-
"nis.schema",
135+
"core.ldif",
136+
"cosine.ldif",
137+
"inetorgperson.ldif",
138+
"nis.ldif",
139139
]
140140
cls.server.start()
141141
with open(os.path.join(here, "tests.ldif")) as fp:
142142
ldif = fp.read()
143-
cls.server.ldapadd(ldif)
143+
cls.server.slapadd(ldif)
144144

145145
@classmethod
146146
def tearDownClass(cls):

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy