From ab13e36fd77692716cfb68aa5029a15713538e1f Mon Sep 17 00:00:00 2001 From: Khaled FERJANI Date: Fri, 3 Oct 2025 13:21:19 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(migration=20cmd):=20update?= =?UTF-8?q?=20LDAP=20util=20search=20base=20and=20logging?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tdrive/backend/node/src/cli/cmds/migration_cmds/utils/ldap.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tdrive/backend/node/src/cli/cmds/migration_cmds/utils/ldap.ts b/tdrive/backend/node/src/cli/cmds/migration_cmds/utils/ldap.ts index bac77ad8..a97eb255 100644 --- a/tdrive/backend/node/src/cli/cmds/migration_cmds/utils/ldap.ts +++ b/tdrive/backend/node/src/cli/cmds/migration_cmds/utils/ldap.ts @@ -57,11 +57,13 @@ function searchForUserMobile( config: LdapConfig, username: string, ): Promise { + console.log(`searching for user ${username} mobile in LDAP`); + return new Promise((resolve, reject) => { client.search( config.searchBase, { - filter: `(&(objectClass=inetorgperson)(uid=${username}))`, + filter: `(&(objectClass=*)(uid=${username}))`, attributes: ["mobile"], scope: "sub", },