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:
parent
2a53b0f574
commit
9297b6327a
1 changed files with 19 additions and 19 deletions
|
@ -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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue