Rewrite of Auth and SSO module layer.
This commit is contained in:
parent
300453e2c1
commit
098f1f845f
1 changed files with 2 additions and 1 deletions
|
@ -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 = [
|
||||||
|
|
Loading…
Reference in a new issue