]> git.koha-community.org Git - koha.git/commit
Bug 12831: (RM followup) regression test
authorTomas Cohen Arazi <tomascohen@gmail.com>
Thu, 27 Nov 2014 17:41:39 +0000 (14:41 -0300)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Thu, 27 Nov 2014 17:45:11 +0000 (14:45 -0300)
commit22d3ebdb27515b2fa48c3323b006287fc4edbc3c
treecc1dd1892c28043d8d81e65e423f4da8ae134f18
parent2cb427008db70f86a1d7004a7ad9313c8d8e91f7
Bug 12831: (RM followup) regression test

checkpw_ldap should return 0 if it is not an anonymous bind, and authentication
fails. This is better explained on the bug comments. This is just a regression
test for the revised functionality.

To test:
- Run
  $ prove t/db_dependent/Auth_with_ldap.t
=> FAIL: it fails because C4::Auth_with_ldap doesn't match the expected behaviour
- Apply the bugfix from Martin
- Run
  $ prove t/db_dependent/Auth_with_ldap.t
=> SUCCESS: tests now pass.

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
t/db_dependent/Auth_with_ldap.t