summaryrefslogtreecommitdiff
path: root/utils/enable-audit-log.sh
blob: 5308c7e518def184ea7a34cf98c0cfa833c738d8 (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: on"
    echo ""
) | ldapmodify -x -h ${ldap_host} -D "${ldap_binddn}" -w "${ldap_bindpw}" -c