Better approach of LDAP search and ldapBind in retriveByCredential method