[Date Prev][Date Next] [Chronological] [Thread] [Top]

RE: Number of users

You could search for all the "objectclass=person" and use grep and wc to count 'em.  Of course, this assumes a little about your directory:
ldapsearch -b "dc=yourdomain,dc=com" "objectclass=person"  dn | grep uid | wc -l
-----Original Message-----
From: owner-openldap-software@OpenLDAP.org [mailto:owner-openldap-software@OpenLDAP.org]On Behalf Of Siao Chiun
Sent: Wednesday, January 10, 2001 9:47 PM
To: openldap-software@OpenLDAP.org
Subject: Number of users

Hi there,
Does anyone know what command can i issue in order to find out the number of users I have in the ldap?