Skip to content

Commit

Permalink
Merge pull request #5370 from owncloud/ainmosni/issue/5210
Browse files Browse the repository at this point in the history
Support givenName graph attribute.
  • Loading branch information
ainmosni authored Jan 11, 2023
2 parents e1ad437 + b9a4d0c commit f7aff26
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions services/graph/pkg/identity/ldap.go
Original file line number Diff line number Diff line change
Expand Up @@ -993,6 +993,11 @@ func (i *LDAP) userToLDAPAttrValues(user libregraph.User) (map[string][]string,
}
attrs["sn"] = []string{sn}

// When we get a givenName, we set the attribute.
if givenName := user.GetGivenName(); givenName != "" {
attrs["givenname"] = []string{givenName}
}

if !i.usePwModifyExOp && user.PasswordProfile != nil && user.PasswordProfile.Password != nil {
// Depending on the LDAP server implementation this might cause the
// password to be stored in cleartext in the LDAP database. Using the
Expand Down

0 comments on commit f7aff26

Please sign in to comment.