Test Ldap

pull/403/head
Rebecca-Chou 1 year ago
parent fbcdec33eb
commit 8f144983ef
  1. 10
      lib/team.ts

@ -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";

Loading…
Cancel
Save