Created
May 30, 2013 15:43
-
-
Save fakechris/5678882 to your computer and use it in GitHub Desktop.
gitlab 5.2 has ldap auth bug
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - return false unless user.valid_password?(password) | |
| + if not user.valid_password?(password) | |
| + # Second chance - try LDAP authentication | |
| + return false unless Gitlab.config.ldap.enabled | |
| + ldap_auth(login,password) | |
| + return false unless !user.nil? | |
| + end | |
| + #return false unless user.valid_password?(password) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment