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

Add ldap support

This commit is contained in:
ericgaspar 2022-01-05 11:02:04 +01:00
parent b703e6dcfd
commit b1ec247155
No known key found for this signature in database
GPG key ID: 574F281483054D44
2 changed files with 21 additions and 2 deletions

View file

@ -172,7 +172,7 @@
// if you experience weird errors and tt-rss failing to start, blank pages
// after login, or content encoding errors, disable it.
putenv('TTRSS_PLUGINS=auth_internal, note');
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_*).
@ -180,6 +180,25 @@
// disable plugins specified in this list.
// Disabling auth_internal in this list would automatically disable
// reset password link on the login form.
// Required parameters:
putenv('TTRSS_LDAP_AUTH_SERVER_URI=ldap://127.0.0.1:389/');
putenv('TTRSS_LDAP_AUTH_USETLS=FALSE'); // Enable StartTLS Support for ldap://
putenv('TTRSS_LDAP_AUTH_ALLOW_UNTRUSTED_CERT=TRUE'); // Allows untrusted certificate
putenv('TTRSS_LDAP_AUTH_BASEDN=ou=users,dc=yunohost,dc=org');
putenv('TTRSS_LDAP_AUTH_ANONYMOUSBEFOREBIND=FALSE');
// ??? will be replaced with the entered username(escaped) at login
putenv('TTRSS_LDAP_AUTH_SEARCHFILTER=(&(objectClass=person)(uid=???))');
// Optional configuration
// putenv('TTRSS_LDAP_AUTH_BINDDN=cn=serviceaccount,dc=yunohost,dc=org');
// putenv('TTRSS_LDAP_AUTH_BINDPW=ServiceAccountsPassword');
// putenv('TTRSS_LDAP_AUTH_LOGIN_ATTRIB=uid');
// putenv('TTRSS_LDAP_AUTH_LOG_ATTEMPTS=FALSE');
// Enable Debug Logging
// putenv('TTRSS_LDAP_AUTH_DEBUG=FALSE');
putenv('TTRSS_LOG_DESTINATION=sql');
// Log destination to use. Possible values: sql (uses internal logging

View file

@ -6,7 +6,7 @@
YNH_PHP_VERSION="7.3"
pkg_dependencies="php${YNH_PHP_VERSION}-mysql php${YNH_PHP_VERSION}-json php${YNH_PHP_VERSION}-curl php${YNH_PHP_VERSION}-gd php${YNH_PHP_VERSION}-opcache \
pkg_dependencies="php${YNH_PHP_VERSION}-ldap php${YNH_PHP_VERSION}-mysql php${YNH_PHP_VERSION}-json php${YNH_PHP_VERSION}-curl php${YNH_PHP_VERSION}-gd php${YNH_PHP_VERSION}-opcache \
php${YNH_PHP_VERSION}-fileinfo php${YNH_PHP_VERSION}-intl php${YNH_PHP_VERSION}-cli php${YNH_PHP_VERSION}-mbstring php${YNH_PHP_VERSION}-xml"
#=================================================