Skip to content

Commit

Permalink
Remove SOB
Browse files Browse the repository at this point in the history
  • Loading branch information
Gijsdeman committed Dec 1, 2023
1 parent b94fa63 commit 5e5ffd9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,6 @@ async function synchronizeUserACL(activeDirectoryUser: ActiveDirectoryUser, perm
attributes: ['memberFlattened'],
})).searchEntries[0] as unknown as ActiveDirectoryUser;

console.log(activeDirectoryUser);

await updateLocalUserPermissions(activeDirectoryUser.mail, activeDirectoryPermissionGroup.memberFlattened, permission)
.then(async (changedUsers: ChangedUsers) => {
if (changedUsers.newUsers.length != 0) {
Expand Down Expand Up @@ -144,6 +142,9 @@ async function synchronizeUserSOB(activeDirectoryGroup: ActiveDirectoryUser): Pr
attributes: ['memberFlattened'],
})).searchEntries) as unknown as ActiveDirectoryUser[];

console.log('--------------------------------');
console.log(activeDirectoryPermissionGroup);

// Construct list in database with DN of all committees they are in
// Get existing list of committees, add new DN as string
for (const members of activeDirectoryPermissionGroup) {
Expand All @@ -155,6 +156,7 @@ async function synchronizeUserSOB(activeDirectoryGroup: ActiveDirectoryUser): Pr
scope: 'sub',
attributes: ['mail'],
})).searchEntries as unknown as ActiveDirectoryUser[];
console.log(memberResults, activeDirectoryGroup);
await editLocalUserPermissions(memberResults[0].mail, activeDirectoryGroup.mail);
}
}
Expand Down

0 comments on commit 5e5ffd9

Please sign in to comment.