Rewrite of Auth and SSO module layer.

This commit is contained in:
Martin Edenhofer 2013-08-17 23:58:22 +02:00
parent 300453e2c1
commit 098f1f845f

View file

@ -7,7 +7,7 @@ Setting.create_or_update(
:area => 'Security::Authentication', :area => 'Security::Authentication',
:description => 'Enables user authentication via LDAP.', :description => 'Enables user authentication via LDAP.',
:state => { :state => {
:adapter => 'ldap', :adapter => 'Auth::Ldap',
:host => 'localhost', :host => 'localhost',
:port => 389, :port => 389,
:bind_dn => 'cn=Manager,dc=example,dc=org', :bind_dn => 'cn=Manager,dc=example,dc=org',
@ -45,6 +45,7 @@ else
:created_by_id => 1 :created_by_id => 1
) )
end end
class AuthTest < ActiveSupport::TestCase class AuthTest < ActiveSupport::TestCase
test 'auth' do test 'auth' do
tests = [ tests = [