Skip to content

Commit 761c507

Browse files
author
stroeder
committed
always use a schema directory with symbolic links
1 parent d7cdb08 commit 761c507

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Lib/slapdtest.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
See https://www.python-ldap.org/ for details.
66
7-
$Id: slapdtest.py,v 1.17 2017/08/15 16:39:26 stroeder Exp $
7+
$Id: slapdtest.py,v 1.18 2017/08/15 17:18:54 stroeder Exp $
88
99
Python compability note:
1010
This module only works with Python 2.7.x since
@@ -25,7 +25,7 @@
2525
SLAPD_CONF_TEMPLATE = r"""
2626
serverID %(serverid)s
2727
moduleload back_%(database)s
28-
include "%(schema_include)s"
28+
include "%(schema_prefix)s/core.schema"
2929
loglevel %(loglevel)s
3030
allow bind_v2
3131
@@ -110,8 +110,6 @@ class SlapdObject(object):
110110
SBINDIR = os.environ.get('SBIN', '/usr/sbin')
111111
BINDIR = os.environ.get('BIN', '/usr/bin')
112112
SCHEMADIR = os.environ.get('SCHEMA', '/etc/openldap/schema')
113-
INIT_SCHEMA_FILE = os.environ.get('SCHEMA_FILE', 'core.schema')
114-
INIT_SCHEMA_PATH = os.environ.get('SCHEMA_PATH', os.path.join(SCHEMADIR, INIT_SCHEMA_FILE))
115113
PATH_LDAPADD = os.path.join(BINDIR, 'ldapadd')
116114
PATH_LDAPMODIFY = os.path.join(BINDIR, 'ldapmodify')
117115
PATH_LDAPWHOAMI = os.path.join(BINDIR, 'ldapwhoami')
@@ -180,7 +178,7 @@ def _gen_config(self):
180178
"""
181179
config_dict = {
182180
'serverid': hex(self.server_id),
183-
'schema_include': self.INIT_SCHEMA_PATH,
181+
'schema_prefix':self._schema_prefix,
184182
'loglevel': self.slapd_loglevel,
185183
'database': self.database,
186184
'directory': self._db_directory,

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