🐛 fix(migration cmd): update LDAP util search base and logging (#906)

This commit is contained in:
Anton Shepilov
2025-10-03 13:35:42 +02:00
committed by GitHub
@@ -57,11 +57,13 @@ function searchForUserMobile(
config: LdapConfig, config: LdapConfig,
username: string, username: string,
): Promise<string | null> { ): Promise<string | null> {
console.log(`searching for user ${username} mobile in LDAP`);
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
client.search( client.search(
config.searchBase, config.searchBase,
{ {
filter: `(&(objectClass=inetorgperson)(uid=${username}))`, filter: `(&(objectClass=*)(uid=${username}))`,
attributes: ["mobile"], attributes: ["mobile"],
scope: "sub", scope: "sub",
}, },