From f9434b42e86d070432d7d81439a1a84428fdd866 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 24 Oct 2019 20:53:51 +0200 Subject: [PATCH] Fix actually checking auth success --- src/api/identity.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/identity.rs b/src/api/identity.rs index 6894661c..2512619d 100644 --- a/src/api/identity.rs +++ b/src/api/identity.rs @@ -96,7 +96,7 @@ fn _password_login(data: ConnectData, conn: DbConn, ip: ClientIp) -> JsonResult // Attempt to bind to ldap with these credentials match LdapConn::new(CONFIG.ldap_host().as_str()) { Ok(ldap) => { - let bind = ldap.simple_bind(ldap_username, password); + let bind = ldap.simple_bind(ldap_username, password)?.success(); if bind.is_err() { err!(