summaryrefslogtreecommitdiff
path: root/utils/list-attribute-indexes.sh
blob: 24eb20926092e0b23325d7a805686cdd51166b55 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/bash

 . ./settings.sh

for ldbm_cn in `ldapsearch -x -h ${ldap_host} -D "${ldap_binddn}" -w "${ldap_bindpw}" -b "cn=ldbm database,cn=plugins,cn=config" -s one -LLL "(objectclass=nsBackendInstance)" cn | grep ^cn: | awk '{print $2}'`; do
    echo "ldbm database: ${ldbm_cn}"

    ldapsearch -x -h ${ldap_host} -D "${ldap_binddn}" -w "${ldap_bindpw}" -b "cn=index,cn=${ldbm_cn},cn=ldbm database,cn=plugins,cn=config" -s one -LLL
done