Bugfixing LdapPrincipal::getGroups()
Refactoring