Entry entry = dao.lookup(SchemaConstants.userCredentials(username, credentials));
return LdapUtils.extractAttributeEmptyCheck(entry, SchemaConstants.STRING_ATTRIBUTE);
} catch (MissingParentException e) {
throw new UserNotFoundException();
} catch (NoSuchNodeException e) {
throw new NoSuchCredentialsException();
}
}