Avoid magic number in success case of ldap search

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