Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update person orm bean #10822

Merged
merged 3 commits into from
Feb 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ public void setUpdatedAt(Date updatedAt) {
}

public void setUserPassword(String value) {
setCustomAttribute("userPassword", value);
if (value != null) setCustomAttribute("userPassword", value);
}

public CustomObjectAttribute setAttribute(String attributeName, String[] attributeValue) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ private <T> List<T> getAttributeListValue(ScimCustomPerson source, Class<T> claz
private void transferAttributesToPerson(UserResource res, ScimCustomPerson person) {

log.debug("transferAttributesToPerson");
// NOTE: calling person.setAttribute("ATTR", null) is not changing the attribute in LDAP :(

// Set values trying to follow the order found in BaseScimResource class
person.setAttribute("jansExtId", res.getExternalId());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,4 +209,5 @@ public void setAttribute(String attributeName, String[] attributeValue) {
customAttributes.remove(attribute);
customAttributes.add(attribute);
}

}
Loading