federation/ldap/src/main/java/org/keycloak/federation/ldap/LDAPFederationProvider.java
/**
     * @param local
     * @return ldapUser corresponding to local user or null if user is no longer in LDAP
     */
@param local
@return ldapUser corresponding to local user or null if user is no longer in LDAP
@param local @return ldapUser corresponding to local user or null if user is no longer in LDAP
protected LDAPObject loadAndValidateUser(RealmModel realm, UserModel local) {
        LDAPObject ldapUser = loadLDAPUserByUsername(realm, local.getUsername());
        if (ldapUser == null) {
            return null;
        }
        if (ldapUser.getUuid().equals(local.getAttribute(LDAPConstants.LDAP_ID))) {
            return ldapUser;
        } else {
            logger.warnf("LDAP User invalid. ID doesn't match. ID from LDAP [%s], ID from local DB: [%s]", ldapUser.getUuid(), local.getAttribute(LDAPConstants.LDAP_ID));
            return null;
        }
    }
protected LDAPObject loadAndValidateUser ( RealmModel realm , UserModel local ) { LDAPObject ldapUser = loadLDAPUserByUsername ( realm , local . getUsername ( ) ) ; if ( ldapUser == null ) { return null ; } if ( ldapUser . getUuid ( ) . equals ( local . getAttribute ( LDAPConstants . LDAP_ID ) ) ) { return ldapUser ; } else { logger . warnf ( "LDAP User invalid. ID doesn't match. ID from LDAP [%s], ID from local DB: [%s]" , ldapUser . getUuid ( ) , local . getAttribute ( LDAPConstants . LDAP_ID ) ) ; return null ; } }
@param local
 @return ldapUser corresponding to local user or null if user is no longer in LDAP
@param local @return ldapUser corresponding to local user or null if user is no longer in LDAP