assertTrue($auth->checkPass('a.legrand', 'Foo_b_ar123!')); $this->assertFalse($auth->checkPass('a.legrand', 'wrong password')); } public function testADloginSSO() { global $conf; $conf['plugin']['pureldap']['sso'] = 1; $_SERVER['REMOTE_USER'] = 'a.legrand'; $auth = new \auth_plugin_pureldap(); $this->assertTrue($auth->checkPass('a.legrand', 'sso-only')); } }