diff options
author | Akhil <akhil.potukuchi@gmail.com> | 2022-12-22 16:43:24 +0530 |
---|---|---|
committer | Akhil <akhil@e.email> | 2024-08-16 17:55:47 +0530 |
commit | b1230cd53d666bb71bb87165c8b5246d5be583e4 (patch) | |
tree | 6801999f01e45dac58000bc7cbffd992da966975 /apps/user_ldap/tests | |
parent | 13a72d0f0e8f9ba12df2a7f2e0f28a02f4b9ce4a (diff) | |
download | nextcloud-server-b1230cd53d666bb71bb87165c8b5246d5be583e4.tar.gz nextcloud-server-b1230cd53d666bb71bb87165c8b5246d5be583e4.zip |
Use cache in LDAP backend's checkPassword
Signed-off-by: Akhil <akhil@e.email>
Diffstat (limited to 'apps/user_ldap/tests')
-rw-r--r-- | apps/user_ldap/tests/User_LDAPTest.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/user_ldap/tests/User_LDAPTest.php b/apps/user_ldap/tests/User_LDAPTest.php index 030e44cc34d..227f13e8538 100644 --- a/apps/user_ldap/tests/User_LDAPTest.php +++ b/apps/user_ldap/tests/User_LDAPTest.php @@ -149,6 +149,10 @@ class User_LDAPTest extends TestCase { ->with($this->equalTo('dnOfRoland,dc=test')) ->willReturn($retVal); $this->access->expects($this->any()) + ->method('username2dn') + ->with($this->equalTo('gunslinger')) + ->willReturn('dnOfRoland,dc=test'); + $this->access->expects($this->any()) ->method('stringResemblesDN') ->with($this->equalTo('dnOfRoland,dc=test')) ->willReturn(true); |