Skip to content

Instantly share code, notes, and snippets.

@fakechris
Created May 30, 2013 15:43
Show Gist options
  • Select an option

  • Save fakechris/5678882 to your computer and use it in GitHub Desktop.

Select an option

Save fakechris/5678882 to your computer and use it in GitHub Desktop.
gitlab 5.2 has ldap auth bug
- 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