Skip to content

Commit

Permalink
fix: add more id attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
Vilsol committed May 31, 2024
1 parent a2cdc4f commit 788ec85
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ldap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ const sendUsers = async (ids: UserServiceClient, cfg: Provider, name?: string):
uid: user.payload.id,
};

// Some servers just want one of these
for (let idAttribute of ['entryuuid', 'nsuniqueid', 'objectguid', 'guid', 'ipauniqueid']) {
(attributes as any)[idAttribute] = user.payload.id;
}

for (const field of cfg.get('ldap:removed_fields')) {
delete (attributes as any)[field];
}
Expand Down

0 comments on commit 788ec85

Please sign in to comment.