I get list of all the users of LDAP using the following command
ldapsearch -x -LLL uid=* > result.
The result of the following command results in following format
dn: uid=shahrukh,ou=People,dc=example,dc=com uid: shahrukh cn: shahrukh sn: shahrukh loginShell: /bin/bash uidNumber: 1086 gidNumber: 1086 homeDirectory: /home/ldap/shahrukh
There is a complete list of these records.
I want to shortlist all the uid in one file such that only value of uid should be listed.
shahrukh abc xyz .... .... ....