The ldifsearch command lets you search LDIF files in a similar way to how you search LDAP directories with the ldapsearch command.
$ ldifsearch --baseDN dc=example,dc=org --ldifFile generated.ldif "(sn=Grenier)" mobile dn: uid=user.4630,ou=People,dc=example,dc=org mobile: +1 728 983 6669
The --ldifFile
option replaces the ldif-file--hostname and --port
options used to connect to an LDAP directory. Otherwise the command syntax
and LDIF output is familiar to ldapsearch users.

