Skip to content

Commit 788ec85

Browse files
committed
fix: add more id attributes
1 parent a2cdc4f commit 788ec85

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/ldap.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@ const sendUsers = async (ids: UserServiceClient, cfg: Provider, name?: string):
5353
uid: user.payload.id,
5454
};
5555

56+
// Some servers just want one of these
57+
for (let idAttribute of ['entryuuid', 'nsuniqueid', 'objectguid', 'guid', 'ipauniqueid']) {
58+
(attributes as any)[idAttribute] = user.payload.id;
59+
}
60+
5661
for (const field of cfg.get('ldap:removed_fields')) {
5762
delete (attributes as any)[field];
5863
}

0 commit comments

Comments
 (0)