Test Ldap
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Rebecca-Chou 2022-02-02 21:48:21 +08:00
parent fbcdec33eb
commit 8f144983ef
1 changed files with 5 additions and 5 deletions

View File

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