| | |
| | | final Map<String, UserModel> ldapUsers = new HashMap<String, UserModel>(); |
| | | |
| | | for (SearchResultEntry loggingInUser : result.getSearchEntries()) { |
| | | |
| | | final String username = loggingInUser.getAttribute(uidAttribute).getValue(); |
| | | Attribute uid = loggingInUser.getAttribute(uidAttribute); |
| | | if (uid == null) { |
| | | logger.error("Can not synchronize with LDAP, missing \"{}\" attribute", uidAttribute); |
| | | continue; |
| | | } |
| | | final String username = uid.getValue(); |
| | | logger.debug("LDAP synchronizing: " + username); |
| | | |
| | | UserModel user = userManager.getUserModel(username); |