Added LDAPS support migration and fixed connection test flash messages.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@845 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
4c509c9423
commit
49eb65e925
|
@ -65,10 +65,10 @@ class AuthSourcesController < ApplicationController
|
||||||
@auth_method = AuthSource.find(params[:id])
|
@auth_method = AuthSource.find(params[:id])
|
||||||
begin
|
begin
|
||||||
@auth_method.test_connection
|
@auth_method.test_connection
|
||||||
|
flash[:notice] = l(:notice_successful_connection)
|
||||||
rescue => text
|
rescue => text
|
||||||
flash[:notice] = text
|
flash[:error] = "Unable to connect (#{text})"
|
||||||
end
|
end
|
||||||
flash[:notice] ||= l(:notice_successful_connection)
|
|
||||||
redirect_to :action => 'list'
|
redirect_to :action => 'list'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
class AddAuthSourcesTls < ActiveRecord::Migration
|
||||||
|
def self.up
|
||||||
|
add_column :auth_sources, :tls, :boolean, :default => false, :null => false
|
||||||
|
end
|
||||||
|
|
||||||
|
def self.down
|
||||||
|
remove_column :auth_sources, :tls
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in New Issue