Browse Source

Fix actually checking auth success

pull/677/head
unknown 6 years ago
parent
commit
f9434b42e8
  1. 2
      src/api/identity.rs

2
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!(

Loading…
Cancel
Save