summaryrefslogtreecommitdiff
path: root/hosted-kolab/99-remove-users.sh
blob: 9924a2fa2e727700076dc7113745f2df88b81528 (plain)
1
2
3
4
5
6
7
#!/bin/bash

. ./settings.sh

(
    ldapsearch -x -h ${ldap_host} -D "${ldap_binddn}" -w "${ldap_bindpw}" -b ${rootdn} "(objectclass=kolabinetorgperson)" dn | grep ^dn | sed -e 's/dn: //g'
) | ldapdelete -x -h ${ldap_host} -D "${ldap_binddn}" -w "${ldap_bindpw}"