Search and get a list of matching LDAP users in Django
To search for objects in the case where the object name is not known but some characters from the object name are known, use the lowest possible search scope and use a substring filter. The filter below is a substring filter:
(cn=shail*)