| 12345678910111213141516 |
- #!/bin/sh
- runOptions="--dns=127.0.0.1 -v `pwd`/test/ssl:/etc/ldap/ssl"
- . $dir/tools/run-simple.sh
- cert=$(echo $dir/ssl/ldap.crt)
- certCN=$(openssl x509 -in $cert -subject -noout | sed -n 's/.*CN=\(.*\)\/*\(.*\)/\1/p')
- addLine=$(echo $IP $certCN)
- echo $addLine >> /etc/hosts
- cp /etc/ldap/ldap.conf /etc/ldap/ldap.conf.old
- sed -i 's,TLS_CACERT.*,TLS_CACERT '"$cert"',g' /etc/ldap/ldap.conf
- sleep 5
|