Fix LDAP unbind before searching groups