File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 29
29
SLAPD_CONF_TEMPLATE = r"""
30
30
serverID %(serverid)s
31
31
moduleload back_%(database)s
32
- include "%(schema_prefix)s/core.schema"
32
+ %(include_directives)s
33
33
loglevel %(loglevel)s
34
34
allow bind_v2
35
35
@@ -316,9 +316,17 @@ def gen_config(self):
316
316
for generating specific static configuration files you have to
317
317
override this method
318
318
"""
319
+ include_directives = '\n ' .join (
320
+ 'include "{schema_prefix}/{schema_file}"' .format (
321
+ schema_prefix = self ._schema_prefix ,
322
+ schema_file = schema_file ,
323
+ )
324
+ for schema_file in self .openldap_schema_files
325
+ )
319
326
config_dict = {
320
327
'serverid' : hex (self .server_id ),
321
328
'schema_prefix' :self ._schema_prefix ,
329
+ 'include_directives' : include_directives ,
322
330
'loglevel' : self .slapd_loglevel ,
323
331
'database' : self .database ,
324
332
'directory' : self ._db_directory ,
You can’t perform that action at this time.
0 commit comments