Ttrss auth ldap

Bonjour,

Après avoir installé ttrss je rencontre 2 problèmes.

Le premier concerne ttrss en tant que service. Lorsque j’arrête le service avec la commande yunohost service stop ttrss le logiciel reste accessible via son url malgré que le status soit bien “dead” et je ne comprend pas la raison à cela

Le second problème est que je n’ai pas trouvé comment configurer le logiciel pour activer l’authentification avec l’annuaire ldap. La seule information que j’ai trouvé est celle-ci : GitHub - hydrian/TTRSS-Auth-LDAP: GitHub repository for Tiny Tiny RSS's auth_ldap plugin
Savez-vous si il existe une autre solution ?

Merci pour votre aide.

The ttrss service is only needed for upgrading feeds not to start the app.

There is a branch with the LDAP plugin integration, but as I recall, I wasn’t able to make it work: GitHub - YunoHost-Apps/ttrss_ynh at ldap

tree/ldap don’t work, install failed

Warning: https://git.tt-rss.org/fox/tt-rss/archive/a39557451604ba1ad4558f8283f1a13ca76ba5ba.tar.gz:
Warning: 2022-04-04 23:13:19 ERROR 404: Not Found.

I will try to install the plugin

Thanks

Je n’arrive pas à faire fonctionner le plugin ldap ttrss, est-ce que quelqu’un s’est déjà prêté à cet exercice ?

J’ai repris le plugin ldap ici : ttrss_ynh/sources at ldap · YunoHost-Apps/ttrss_ynh · GitHub

Mais mon utilisateur n’est pas trouvé dans l’annuaire :

php: [tt-rss] E_USER_DEPRECATED (16384) (classes/logger.php:86) Please don't use Logger::get(), call Logger::log(...) instead.
php: [tt-rss] E_USER_NOTICE (1024) (:0) Array
php: (
php:     [host] => 127.0.0.1
php:     [basedn] => ou=users,dc=yunohost,dc=org
php:     [port] => 389
php:     [starttls] => 
php: )
php: 
php: [tt-rss] E_USER_DEPRECATED (16384) (classes/logger.php:86) Please don't use Logger::get(), call Logger::log(...) instead.
php: [tt-rss] E_USER_NOTICE (1024) (:0) Connected to LDAP Server: ldap://127.0.0.1:389/ with cn=admin,dc=yunohost,dc=org
php: [tt-rss] E_USER_DEPRECATED (16384) (classes/logger.php:86) Please don't use Logger::get(), call Logger::log(...) instead.
php: [tt-rss] E_USER_NOTICE (1024) (:0) Unknown User nounix
php: [tt-rss] E_USER_WARNING (512) (:0) Failed login attempt for nounix (service: ) from xx.xx.xx.xx

Voici mon fichier config.php :

        putenv('TTRSS_PLUGINS=auth_ldap, auth_internal, note');
        // Comma-separated list of plugins to load automatically for all users.
        // System plugins have to be specified here. Please enable at least one
        // authentication plugin here (auth_*).
        // Users may enable other user plugins from Preferences/Plugins but may not
        // disable plugins specified in this list.
        // Disabling auth_internal in this list would automatically disable
        // reset password link on the login form.

        // Required parameters:
        define('LDAP_AUTH_SERVER_URI', 'ldap://127.0.0.1:389/');
        define('LDAP_AUTH_USETLS', FALSE); // Enable StartTLS Support for ldap://
        define('LDAP_AUTH_ALLOW_UNTRUSTED_CERT', TRUE); // Allows untrusted certificate
        define('LDAP_AUTH_BASEDN', 'ou=users,dc=yunohost,dc=org');
        define('LDAP_AUTH_ANONYMOUSBEFOREBIND', FALSE);
        define('LDAP_AUTH_SEARCHFILTER', '(&(|(objectclass=posixAccount))(uid={{username}}))');

        // Optional configuration
        define('LDAP_AUTH_BINDDN', 'cn=admin,dc=yunohost,dc=org');
        define('LDAP_AUTH_BINDPW', 'monmotdepasse');
        define('LDAP_AUTH_LOGIN_ATTRIB', 'uid');
        define('LDAP_AUTH_LOG_ATTEMPTS', FALSE);

        // Enable Debug Logging
        define('LDAP_AUTH_DEBUG', TRUE);

Quelqu’un à une idée ?




EDIT : Après moulte recherches, j’ai laissé tomber par manque de compétence. Je n’ai pas eu d’autre choix que d’activer le plugin auth_remote pour l’authentification http et rendre l’application accessible uniquement aux utilisateurs enregistrés.




This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.