Skip to content

Commit

Permalink
[FIX] After changes in auth modules this plugin doesn't work anymore h…
Browse files Browse the repository at this point in the history
  • Loading branch information
Kovalev, Andrey authored and young-druid committed Mar 22, 2021
1 parent 0cc2a21 commit 952bfe1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions plugins/auth_ldap/init.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
* * OpenLDAP support with MemberOf Overlay
*
*/
class Auth_Ldap extends Plugin implements IAuthModule {
class Auth_Ldap extends Auth_Base {

private $link;
private $host;
Expand Down Expand Up @@ -73,7 +73,6 @@ function about() {
function init($host) {
$this->link = $host->get_link();
$this->host = $host;
$this->base = new Auth_Base($this->link);

$host->add_hook($host::HOOK_AUTH_USER, $this);
}
Expand Down Expand Up @@ -375,10 +374,10 @@ function authenticate($login, $password) {
$this->_log('Could not find user name attribute ' . $this->_ldapLoginAttrib . ' in LDAP entry', E_USER_WARNING);
return FALSE;
}
return $this->base->auto_create_user($ttrssUsername);
return $this->auto_create_user($ttrssUsername);
} else {
@ldap_close($ldapConn);
return $this->base->auto_create_user($login);
return $this->auto_create_user($login);
}
} else {
@ldap_close($ldapConn);
Expand Down

0 comments on commit 952bfe1

Please sign in to comment.