Skip to content

Commit

Permalink
hotfix: fix ldap which allowed to login as any user with any password
Browse files Browse the repository at this point in the history
  • Loading branch information
jonau committed Apr 11, 2024
1 parent 1c9a03a commit 35c1036
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/auth/src/authenticationSources/ldap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export class LdapAuthenticationSource implements AuthenticationSource {
): Promise<
{ success: true; needsProvisioning: boolean; user: UserModel } | { success: false }
> {
const canBind = this.ldap_bind(username, password);
const canBind = await this.ldap_bind(username, password);
if (!canBind) {
return { success: false };
}
Expand Down

0 comments on commit 35c1036

Please sign in to comment.