diff --git a/src/auth.ts b/src/auth.ts index 2821516..460d4b8 100644 --- a/src/auth.ts +++ b/src/auth.ts @@ -33,7 +33,7 @@ export const testCredentials = async (cfg: Provider, dn: ldapjs.DN, credentials: } else { const users = await ids.find({ subject: { - token: cfg.get('apiKey') + token: cfg.get('authentication:apiKey') }, name: identifier }).catch((err) => { diff --git a/src/ldap.ts b/src/ldap.ts index c4edd37..8399f8d 100644 --- a/src/ldap.ts +++ b/src/ldap.ts @@ -33,7 +33,7 @@ export const mountPaths = (cfg: Provider, server: Server, ids: UserServiceClient const sendUsers = async (ids: UserServiceClient, cfg: Provider, name?: string): Promise => { const userList = await ids.find({ subject: { - token: cfg.get('apiKey') + token: cfg.get('authentication:apiKey') }, name }).catch(() => UserListResponse.fromPartial({}));