summaryrefslogtreecommitdiff
path: root/utils/disable-7-bit-plugin.sh
blob: 8439dcaae07bf18f746f1118503dc3650383dc76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

 . ./settings.sh

(
    echo "dn: cn=7-bit check,cn=plugins,cn=config"
    echo "changetype: modify"
    echo "replace: nsslapd-pluginarg2"
    echo "nsslapd-pluginarg2: ,"
    echo "-"
    echo "replace: nsslapd-pluginarg3"
    echo "nsslapd-pluginarg3: ${rootdn}"
    echo "-"
    echo "delete: nsslapd-pluginarg4"
    echo ""
) | ldapmodify -x -h ${ldap_host} -D "${ldap_binddn}" -w "${ldap_bindpw}" -c