forked from conestack/node.ext.ldap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ldap.cfg
47 lines (43 loc) · 1.38 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
43
44
45
46
47
[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://ftp.openldap.org/pub/OpenLDAP/openldap-release/openldap-2.4.44.tgz
# mirror in europe (de)
url = http://mirror.eu.oneandone.net/software/openldap/openldap-release/openldap-2.4.44.tgz
extra_options = --with-sasl --with-tls --enable-slapd=yes --enable-overlays
#osx-env
#environment =
# CPPFLAGS=-I/opt/local/include/db44
# LDFLAGS=-L/opt/local/lib/db44
[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
ADDITIONAL_LDIF_LAYERS =
[testldap]
recipe = zc.recipe.egg:script
eggs =
node.ext.ldap[test]
initialization =
import os
os.environ['ADDITIONAL_LDIF_LAYERS'] = '${testenv:ADDITIONAL_LDIF_LAYERS}'
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}'