summaryrefslogtreecommitdiff
path: root/populate-ldap/01a-add-contacts-ou.sh
blob: 58084991916bee7e389785f9f953e98bb81c9bf2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

 . ./settings.sh

(
    echo "dn: ou=Contacts,ou=People,${rootdn}"
    echo "ou: Contacts"
    echo "objectClass: top"
    echo "objectclass: organizationalunit"
    echo ""
) | ldapadd -x -h ${ldap_host} -D "${ldap_binddn}" -w "${ldap_bindpw}" -c