forked from conestack/node.ext.ldap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathldap.cfg
42 lines (35 loc) · 1.08 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 libsasl2-dev libssl-dev libdb-dev
# apt-get build-dep python-ldap
recipe = zc.recipe.cmmi>=1.1.5
url = ftp://sunsite.cnlab-switch.ch/mirror/OpenLDAP/openldap-release/openldap-2.4.26.tgz
extra_options = --with-sasl --with-tls --enable-slapd=yes --enable-overlays
[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}'