File: ldap-test

package info (click to toggle)
ruby-activeldap 6.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 1,588 kB
  • sloc: ruby: 18,143; sh: 12; makefile: 5
file content (19 lines) | stat: -rwxr-xr-x 722 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh

exec 2>&1
set -eux

echo -n "slapd slapd/password1 password testpwd" | debconf-set-selections
echo -n "slapd slapd/password2 password testpwd" | debconf-set-selections
echo -n "slapd slapd/domain string example.com" | debconf-set-selections
echo -n "slapd slapd/organization string test" | debconf-set-selections

export DEBIAN_FRONTEND='noninteractive'
apt-get --yes install slapd ldap-utils

ldapmodify -Y EXTERNAL -H ldapi:/// -f test/add-phonetic-attribute-options-to-slapd.ldif
ldapadd -Y EXTERNAL -H ldapi:/// -f /etc/ldap/schema/dyngroup.ldif
ldapmodify -Y EXTERNAL -H ldapi:/// -f test/enable-dynamic-groups.ldif

su $AUTOPKGTEST_NORMAL_USER -c "gem2deb-test-runner --autopkgtest --check-dependencies"