Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Changed so it will not use admin bind unless specified

  • Loading branch information...
commit d465edac005a2c23434e059529352aac5b023829 1 parent 2030b17
Jimmy Stenke authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/devise_ldap_authenticatable/ldap_adapter.rb
View
4 lib/devise_ldap_authenticatable/ldap_adapter.rb
@@ -151,8 +151,8 @@ def user_groups
private
- def self.admin
- ldap = LdapConnect.new(:admin => true).ldap
+ def self.admin(admin = ::Devise.ldap_use_admin_to_bind)
+ ldap = LdapConnect.new(:admin => admin).ldap
unless ldap.bind
DeviseLdapAuthenticatable::Logger.send("Cannot bind to admin LDAP user")

0 comments on commit d465eda

Please sign in to comment.
Something went wrong with that request. Please try again.