summaryrefslogtreecommitdiff
path: root/utils/disable-audit-log.sh
blob: 7710fc229b8dfdd4a4e3704fe9dac87f59a12040 (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-auditlog-logging-enabled"
    echo "nsslapd-auditlog-logging-enabled: off"
    echo ""
) | ldapmodify -x -h ${ldap_host} -D "${ldap_binddn}" -w "${ldap_bindpw}" -c