@@ -10,4 +10,4 auth_sources_001: | |||||
10 | attr_firstname: givenName |
|
10 | attr_firstname: givenName | |
11 | attr_lastname: sn |
|
11 | attr_lastname: sn | |
12 | attr_mail: mail |
|
12 | attr_mail: mail | |
13 |
onthefly_register: |
|
13 | onthefly_register: false |
@@ -48,6 +48,7 class AuthSourceLdapTest < ActiveSupport::TestCase | |||||
48 | context '#authenticate' do |
|
48 | context '#authenticate' do | |
49 | setup do |
|
49 | setup do | |
50 | @auth = AuthSourceLdap.find(1) |
|
50 | @auth = AuthSourceLdap.find(1) | |
|
51 | @auth.update_attribute :onthefly_register, true | |||
51 | end |
|
52 | end | |
52 |
|
53 | |||
53 | context 'with a valid LDAP user' do |
|
54 | context 'with a valid LDAP user' do |
@@ -483,6 +483,7 class UserTest < ActiveSupport::TestCase | |||||
483 | context "on the fly registration" do |
|
483 | context "on the fly registration" do | |
484 | setup do |
|
484 | setup do | |
485 | @auth_source = AuthSourceLdap.find(1) |
|
485 | @auth_source = AuthSourceLdap.find(1) | |
|
486 | @auth.update_attribute :onthefly_register, true | |||
486 | end |
|
487 | end | |
487 |
|
488 | |||
488 | context "with a successful authentication" do |
|
489 | context "with a successful authentication" do |
General Comments 0
You need to be logged in to leave comments.
Login now