Commit 00ad524b6b83216098e5f1e8ba44ca869cc898a2
1 parent
247cc5a6
Resolved issue with the login check, this could never have worked - need to test…
… this better next time :-( Closes #8
Showing
1 changed file
with
2 additions
and
2 deletions
main.inc.php
... | ... | @@ -64,8 +64,8 @@ function login($success, $username, $password, $remember_me){ |
64 | 64 | $user_dn = $obj->ldap_search_dn($username); // retrieve the userdn |
65 | 65 | |
66 | 66 | // If we have userdn, attempt to login an check user's group access |
67 | - if (!($user_dn && !$obj->ldap_bind_as($user_dn,$password) && | |
68 | - check_ldap_group_membership($user_dn, $username))) { | |
67 | + if (!($user_dn && $obj->ldap_bind_as($user_dn,$password) && | |
68 | + $obj->check_ldap_group_membership($user_dn, $username))) { | |
69 | 69 | trigger_notify('login_failure', stripslashes($username)); |
70 | 70 | return false; // wrong user/password or no group access |
71 | 71 | } |
... | ... |