From 8f144983ef45b6d3cbfb4d1c29273a7f791ebfe5 Mon Sep 17 00:00:00 2001 From: Rebecca-Chou Date: Wed, 2 Feb 2022 21:48:21 +0800 Subject: [PATCH] Test Ldap --- lib/team.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/team.ts b/lib/team.ts index 55dd2b2c..80996314 100644 --- a/lib/team.ts +++ b/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";