Avoid using magic number in ldap.search

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>