|
|
|
@ -24,11 +24,11 @@ export interface Metadata { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
export async function getExecNames() { |
|
|
|
|
if (process.env.USE_LDAP?.toLowerCase() !== "true") { |
|
|
|
|
return (await readdir(EXECS_PATH)) |
|
|
|
|
.filter((name) => name.endsWith(fileType)) |
|
|
|
|
.map((name) => name.slice(0, -1 * fileType.length)); |
|
|
|
|
} |
|
|
|
|
// if (process.env.USE_LDAP?.toLowerCase() !== "true") {
|
|
|
|
|
// return (await readdir(EXECS_PATH))
|
|
|
|
|
// .filter((name) => name.endsWith(fileType))
|
|
|
|
|
// .map((name) => name.slice(0, -1 * fileType.length));
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
const url = "ldap://ldap1.csclub.uwaterloo.ca"; |
|
|
|
|
const searchDN = "ou=People,dc=csclub,dc=uwaterloo,dc=ca"; |
|
|
|
|