1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/ttrss_ynh.git synced 2024-10-01 13:34:46 +02:00

Update init.php

This commit is contained in:
ericgaspar 2022-02-23 16:04:01 +01:00
parent 2a53b0f574
commit 9297b6327a
No known key found for this signature in database
GPG key ID: 574F281483054D44

View file

@ -43,7 +43,7 @@
* * OpenLDAP support with MemberOf Overlay * * OpenLDAP support with MemberOf Overlay
* *
*/ */
class Auth_Ldap extends Plugin implements IAuthModule { class Auth_Ldap extends Auth_Base {
private $link; private $link;
private $host; private $host;
@ -73,7 +73,7 @@ class Auth_Ldap extends Plugin implements IAuthModule {
function init($host) { function init($host) {
$this->link = $host->get_link(); $this->link = $host->get_link();
$this->host = $host; $this->host = $host;
$this->base = new Auth_Base($this->link); //$this->base = new Auth_Base($this->link);
$host->add_hook($host::HOOK_AUTH_USER, $this); $host->add_hook($host::HOOK_AUTH_USER, $this);
} }
@ -375,10 +375,10 @@ class Auth_Ldap extends Plugin implements IAuthModule {
$this->_log('Could not find user name attribute ' . $this->_ldapLoginAttrib . ' in LDAP entry', E_USER_WARNING); $this->_log('Could not find user name attribute ' . $this->_ldapLoginAttrib . ' in LDAP entry', E_USER_WARNING);
return FALSE; return FALSE;
} }
return $this->base->auto_create_user($ttrssUsername); return $this->auto_create_user($ttrssUsername);
} else { } else {
@ldap_close($ldapConn); @ldap_close($ldapConn);
return $this->base->auto_create_user($login); return $this->auto_create_user($login);
} }
} else { } else {
@ldap_close($ldapConn); @ldap_close($ldapConn);