Jump to: navigation, search
HowTo Icon.png
How To
Product ConnectXf
Version All
Applies to Administrators
Level Advanced



How do I count the number of entries in the LDAP server

ldapsearch -LLL -s sub -x -D "cn=manager,dc=connectserver" -w "$PGPASSWORD" -b "o=CD, dc=connectserver" "(objectClass=*)" cn | grep cn: | wc -l
ldapsearch -LLL -s sub -x -D "cn=manager,dc=connectserver" -w "$PGPASSWORD" -b "o=MS, dc=connectserver" "(objectClass=*)" cn | grep cn: | wc -l
ldapsearch -LLL -s sub -x -D "cn=manager,dc=connectserver" -w "$PGPASSWORD" -b "o=GAB, dc=connectserver" "(objectClass=*)" cn | grep cn: | wc -l
ldapsearch -LLL -s sub -x -D "cn=manager,dc=connectserver" -w "$PGPASSWORD" -b "o=PAB, dc=connectserver" "(objectClass=*)" cn | grep cn: | wc -l