summaryrefslogtreecommitdiffstats
path: root/debian/tests/slapd
blob: d79e2250d88434110558ce1f2cbc4a392f1648d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
set -eux

export DEBIAN_FRONTEND=noninteractive

debconf-set-selections << eof
slapd slapd/password1 password secret
slapd slapd/password2 password secret
slapd slapd/domain string example.com
slapd slapd/organization string example.com
eof

apt-get -y install slapd

test "$(ldapwhoami -x -D 'cn=admin,dc=example,dc=com' -w secret)" = 'dn:cn=admin,dc=example,dc=com'