Hi guys

i have openldap server  with base url

dc=ldap,dc=company,dc=com

and our all the users are under ou=users,dc=ldap,dc=company,dc=com

within that user base we have users with mail different mail address domains (gmail, yahoo.com , company.com )


by using command "slapcat -l user.ldiff" we can get entire dump of the openldap




Is there any way to filter the slapcat dump so the i can get the dump file , only with users with "company.com" mail domain

Please advice

Thanks
John