blob: 0b41dd0567f3a2589b7df53e7414b18ef946343c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/bash
if ! grep -qE "^HOST tjener\.intern$" $target/etc/ldap/ldap.conf; then
# append special TLS rules, Base DN, etc. for tjener.intern
cat <<EOF >> $target/etc/ldap/ldap.conf
HOST tjener.intern
sudoers_base ou=sudoers,dc=skole,dc=skolelinux,dc=no
BASE dc=skole,dc=skolelinux,dc=no
TLS_REQCERT demand
TLS_CACERT /etc/ssl/certs/Debian-Edu_rootCA.crt
EOF
# this should give roaming workstations access to TJENER's LDAP,
# if needed.
fi
|