-
-
Notifications
You must be signed in to change notification settings - Fork 20
/
ldap.cfg
42 lines (35 loc) · 1.09 KB
/
ldap.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
[buildout]
parts +=
python-ldap
testldap
[openldap]
# this build needs (on debian based systems):
# apt-get install libssl-dev
recipe = zc.recipe.cmmi>=2.0.0
url = https://www.openldap.org/software/download/OpenLDAP/openldap-release/openldap-2.4.49.tgz
extra_options = --with-tls --enable-slapd=yes --enable-overlays --disable-bdb --disable-hdb CPPFLAGS=-D_GNU_SOURCE
shared = true
[python-ldap]
recipe = zc.recipe.egg:custom
egg = python-ldap
include-dirs =
${openldap:location}/include
library-dirs =
${openldap:location}/lib
rpath =
${openldap:location}/lib
[testenv]
LDAP_ADD_BIN = ${openldap:location}/bin/ldapadd
LDAP_DELETE_BIN = ${openldap:location}/bin/ldapdelete
SLAPD_BIN = ${openldap:location}/libexec/slapd
SLAPD_URIS = ldap://127.0.0.1:12345
[testldap]
recipe = zc.recipe.egg:script
eggs =
node.ext.ldap[test]
initialization =
import os
os.environ['SLAPD_BIN'] = '${testenv:SLAPD_BIN}'
os.environ['SLAPD_URIS'] = '${testenv:SLAPD_URIS}'
os.environ['LDAP_DELETE_BIN'] = '${testenv:LDAP_DELETE_BIN}'
os.environ['LDAP_ADD_BIN'] = '${testenv:LDAP_ADD_BIN}'