Finding userID’s currently in use for LDAP users
Is it possible to use dscl or another command to list out not only users on an LDAPv3 server but to provide the userid's as well? I know I can run dscl /LDAPv3/127.0.0.1 -list /Users to get all the current users but I'd like to know what ID's are in use by them as well. I'd also like to get a similar report for group ID's. I know this is possible with netinfo data with nireport but I'd love to know how to get this from LDAP as well.