fossar / selfoss

multipurpose rss reader, live stream, mashup, aggregation web application
https://selfoss.aditu.de
GNU General Public License v3.0
2.35k stars 344 forks source link

Authentication With LDAP #848

Open cromulus opened 7 years ago

cromulus commented 7 years ago

The F3 framework supports ldap authentication. Is there any way to use ldap as the backend authentication database for selfoss?

Thanks!

jtojnar commented 7 years ago

At the moment, selfoss does not even support multiple users. Authentication is only done by checking the credentials in the config. #882 should probably be implemented first.

If you want, you can patch Authentication::login method to something like:

    public function login($username, $password) {
        $auth = new \Auth('ldap', array('dc' => '', 'rdn' => '', 'base_dn' => '', 'pw' => ''));
        return $auth->login($username, $password);
    }

No idea what the parameters mean, see Auth::_ldap.