Fixes #5965: LDAP index are not optimized for Rudder use case

http://www.rudder-project.org/redmine/issues/5965