Added similar group search and refactored ldap_util a little