Skip to content

Commit d787d3f

Browse files
author
stroeder
committed
slapdtest now evaluates env var SLAPD for optionally pointing to OpenLDAP's slapd executable
1 parent 92a8394 commit d787d3f

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

CHANGES

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ Released 2.4.38 2017-05-xx
44
Changes since 2.4.37:
55

66
Lib/
7+
* slapdtest now evaluates env var SLAPD for optionally pointing
8+
to OpenLDAP's slapd executable
79

810
Tests/
911

@@ -1418,4 +1420,4 @@ Released 2.0.0pre02 2002-02-01
14181420
----------------------------------------------------------------
14191421
Released 1.10alpha3 2000-09-19
14201422

1421-
$Id: CHANGES,v 1.436 2017/04/27 11:11:01 stroeder Exp $
1423+
$Id: CHANGES,v 1.437 2017/04/27 11:13:39 stroeder Exp $

Lib/slapdtest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
See http://www.python-ldap.org/ for details.
55
6-
\$Id: slapdtest.py,v 1.3 2017/04/27 11:11:01 stroeder Exp $
6+
\$Id: slapdtest.py,v 1.4 2017/04/27 11:13:39 stroeder Exp $
77
88
Python compability note:
99
This module only works with Python 2.7.x since
@@ -105,7 +105,7 @@ class SlapdObject(object):
105105
INIT_SCHEMA_PATH = os.environ.get('SCHEMA_PATH', os.path.join(SCHEMADIR, INIT_SCHEMA_FILE))
106106
PATH_LDAPADD = os.path.join(BINDIR, 'ldapadd')
107107
PATH_LDAPWHOAMI = os.path.join(BINDIR, 'ldapwhoami')
108-
PATH_SLAPD = os.path.join(SBINDIR, 'slapd')
108+
PATH_SLAPD = os.environ.get('SLAPD', os.path.join(SBINDIR, 'slapd'))
109109
PATH_SLAPTEST = os.path.join(SBINDIR, 'slaptest')
110110

111111
# time in secs to wait before trying to access slapd via LDAP (again)

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