public AuthenticationResponse authenticate(AuthenticationIdentity id)
throws RepositoryException {
IUserContext uc = conn.getUserContext();
String username = FileUtil.getUserName(id);
try {
IUser user = uc.authenticate(username, id.getPassword());
List<Principal> principalGroups = FileUtil.getPrincipals(
PrincipalType.UNKNOWN, globalNamespace, user.getGroupNames(),
CaseSensitivityType.EVERYTHING_CASE_INSENSITIVE);
return new AuthenticationResponse(true, "", principalGroups);
} catch (Throwable e) {