mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00:00
Ported r1169 from trunk.
git-svn-id: http://redmine.rubyforge.org/svn/branches/0.6-stable@1170 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
7e9dd78de8
commit
75d652d9e5
@ -27,6 +27,7 @@ class AuthSourceLdap < AuthSource
|
|||||||
end
|
end
|
||||||
|
|
||||||
def authenticate(login, password)
|
def authenticate(login, password)
|
||||||
|
return nil if login.blank? || password.blank?
|
||||||
attrs = []
|
attrs = []
|
||||||
# get user's DN
|
# get user's DN
|
||||||
ldap_con = initialize_ldap_con(self.account, self.account_password)
|
ldap_con = initialize_ldap_con(self.account, self.account_password)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user