diff options
author | Hans Nilsson <[email protected]> | 2013-10-29 15:31:14 +0100 |
---|---|---|
committer | Hans Nilsson <[email protected]> | 2013-10-29 15:31:14 +0100 |
commit | f87482d310143b300d1f99783dc7125b4bb23c58 (patch) | |
tree | 19e435f63be17b80cbdd722d232a31f378106460 /lib/eldap/test/README | |
parent | bd2e7c90557b19ce9005fe03f0ded57efe1bbebc (diff) | |
parent | dcd763ba7c4805361f435cc82d98335c2a59e1d1 (diff) | |
download | otp-f87482d310143b300d1f99783dc7125b4bb23c58.tar.gz otp-f87482d310143b300d1f99783dc7125b4bb23c58.tar.bz2 otp-f87482d310143b300d1f99783dc7125b4bb23c58.zip |
Merge branch 'maint'
Diffstat (limited to 'lib/eldap/test/README')
-rw-r--r-- | lib/eldap/test/README | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/lib/eldap/test/README b/lib/eldap/test/README new file mode 100644 index 0000000000..8774db1504 --- /dev/null +++ b/lib/eldap/test/README @@ -0,0 +1,36 @@ + +This works for me on Ubuntu. + +To run thoose test you need + 1) some certificates + 2) a running ldap server, for example OpenLDAPs slapd. See http://www.openldap.org/doc/admin24 + +1)------- +To generate certificates: +erl +> make_certs:all("/dev/null", "eldap_basic_SUITE_data/certs"). + +2)------- +To start slapd: + sudo slapd -f $ERL_TOP/lib/eldap/test/ldap_server/slapd.conf -F /tmp/slapd/slapd.d -h "ldap://localhost:9876 ldaps://localhost:9877" + +This will however not work, since slapd is guarded by apparmor that checks that slapd does not access other than allowed files... + +To make a local extension of alowed operations: + sudo emacs /etc/apparmor.d/local/usr.sbin.slapd + +and, after the change (yes, at least on Ubuntu it is right to edit ../local/.. but run with an other file) : + + sudo apparmor_parser -r /etc/apparmor.d/usr.sbin.slapd + + +The local file looks like this for me: + +# Site-specific additions and overrides for usr.sbin.slapd. +# For more details, please see /etc/apparmor.d/local/README. + +/etc/pkcs11/** r, +/usr/lib/x86_64-linux-gnu/** rm, + +/ldisk/hans_otp/otp/lib/eldap/test/** rw, +/tmp/slapd/** rwk, |