Skip to content

Commit

Permalink
[api] Fix typo that fails retry for connection when using LDAP auth.
Browse files Browse the repository at this point in the history
  • Loading branch information
KostyaSha authored and adrianschroeter committed Mar 24, 2014
1 parent fd8b753 commit bb56411
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions ReleaseNotes-2.4.6
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ Bugfixes:

* webui: fix a syntax error when storing instance configuration
* api: fix database locking when changing states of requests
* api: fix typo that fails retry for connection when using LDAP auth.

2 changes: 1 addition & 1 deletion src/api/app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ def self.find_with_ldap(login, password)
logger.debug( "Search failed: error #{ @@ldap_search_con.err}: #{ @@ldap_search_con.err2string(@@ldap_search_con.err)}" )
@@ldap_search_con.unbind()
@@ldap_search_con = nil
if ldap_fist_try
if ldap_first_try
ldap_first_try = false
redo
end
Expand Down

0 comments on commit bb56411

Please sign in to comment.