summaryrefslogtreecommitdiff
path: root/utils/disable-access-log.sh
blob: e6964ca1ae9583bb59199596b31f1e5900347b3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

 . ./settings.sh

(
    echo "dn: cn=config"
    echo "changetype: modify"
    echo "replace: nsslapd-accesslog-logging-enabled"
    echo "nsslapd-accesslog-logging-enabled: off"
    echo ""
) | ldapmodify -x -h ${ldap_host} -D "${ldap_binddn}" -w "${ldap_bindpw}" -c