working demo

This commit is contained in:
Siwat Sirichai 2024-05-05 18:44:40 +07:00
parent b194d2031d
commit a8de581c09
6 changed files with 216 additions and 27 deletions

View file

@ -105,7 +105,7 @@ async function getPrimaryParent(student_upn) {
}
}
async function listStudents(upn) {
async function getStudentsByParent(upn) {
// Search for students with the parent's UPN in their primaryParent attribute
let opts = {
filter: `(primaryParent=${upn})`,
@ -136,7 +136,7 @@ module.exports = {
getUserType: getUserType,
getUserTypeFromDN: getUserTypeFromDN,
setPrimaryParent: setPrimaryParent,
listStudents: listStudents,
getStudentsByParent: getStudentsByParent,
getPrimaryParent: getPrimaryParent,
USER_TYPE: USER_TYPE
};