I've tried the recommended filter as well as various variations and still, I cannot get a list of the OUs with no child entries.
Search Base: ou=compay,ou=drivers,dc=core,dc=com
Filter: (&(objectClass=organizationalUnit)(!(objectClass=*)))
Running LDAP version 3 of OpenLDAP.
I was able to solve this by using the following filter:
So far it works great.