cracknames: Change search filter to use the smaller index
commitf00362fb3d02f01346504ebe8d1ad8eb0dd5bb47
authorGarming Sam <garming@catalyst.net.nz>
Wed, 23 Jan 2019 03:16:16 +0000 (23 16:16 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 1 Feb 2019 02:36:17 +0000 (1 03:36 +0100)
tree0547c9e6b44850843e3bd5c26a499a462f5028d8
parent5bfad1b2b08031b99834c9ca39c1900d52c8eb0d
cracknames: Change search filter to use the smaller index

In large domains with many users, '(objectClass=User)' may as well not
be specified because it's iterating over the entire database.

Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/dsdb/samdb/cracknames.c