Git Product home page Git Product logo

ttrss-auth-ldap's Introduction

ttrss-auth-ldap

LDAP authentication plugin for Tiny Tiny RSS forked from TTRSS-Auth-LDAP - updated and extended:

  • Active Directory authentication is now supported without some dedicated bind-account.
  • There is a new filter for admin-users.
  • Full name and email can be fetched from LDAP.

A full Docker Compose example setup can be found here.

Setup

  1. Follow Tiny Tiny RSS docker installation guide but build your own image by using some simple Dockerfile like

    FROM cthulhoo/ttrss-fpm-pgsql-static:latest
    
    RUN apk add php83-ldap
    
    # Plugins
    WORKDIR /var/www/html/tt-rss/plugins.local
    RUN git clone https://github.com/pasbec/ttrss-auth-ldap.git auth_ldap
    # ...
    
    WORKDIR /opt/tt-rss
  2. Enable the plugin by adding auth_ldap to TTRSS_PLUGINS, e.g.

     TTRSS_PLUGINS=auth_ldap, auth_internal, note, nginx_xaccel
  3. Configure the plugin via its own environment variables:

    # Example for Active Directory search with extended attribute retrieval, user/admin filters and support for nested groups without requiring separate bind account
    TTRSS_LDAP_URI=ldap://dc.some.example.com
    TTRSS_LDAP_TLS=true # optional
    TTRSS_LDAP_BASE_DN=CN=Users,DC=some,DC=example,DC=com
    TTRSS_LDAP_BIND_DN=SOME\%login
    TTRSS_LDAP_BIND_PW=%password
    TTRSS_LDAP_ADMIN_FILTER=(&(objectClass=person)(memberOf:1.2.840.113556.1.4.1941:=CN=TinyTinyRSS-Admins,CN=Users,DC=some,DC=example,DC=com)(sAMAccountName=%login)) # optional
    TTRSS_LDAP_USER_FILTER=(&(objectClass=person)(memberOf:1.2.840.113556.1.4.1941:=CN=TinyTinyRSS-Users,CN=Users,DC=some,DC=example,DC=com)(sAMAccountName=%login))
    TTRSS_LDAP_USER_ATTRIBUTE=sAMAccountName
    TTRSS_LDAP_NAME_ATTRIBUTE=name # optional
    TTRSS_LDAP_MAIL_ATTRIBUTE=mail # optional
    
    # General example using dedicated bind account
    TTRSS_LDAP_URI=ldap://localhost
    TTRSS_LDAP_TLS=false # optional
    TTRSS_LDAP_BASE_DN=DC=example,DC=com
    TTRSS_LDAP_BIND_DN=CN=some-bind-user,DC=example,DC=com
    TTRSS_LDAP_BIND_PW=<SOME_BIND_USER_PASSWORD>
    TTRSS_LDAP_USER_FILTER=(&(objectClass=person)(uid=%login))
    TTRSS_LDAP_USER_ATTRIBUTE=uid
    
    # General example using anonymous bind
    TTRSS_LDAP_URI=ldap://localhost
    TTRSS_LDAP_TLS=false # optional
    TTRSS_LDAP_BASE_DN=DC=example,DC=com
    TTRSS_LDAP_USER_FILTER=(&(objectClass=person)(uid=%login))
    TTRSS_LDAP_USER_ATTRIBUTE=uid

ttrss-auth-ldap's People

Contributors

hydrian avatar pasbec avatar tsmgeek avatar mic92 avatar alexconquer avatar devkid avatar cthu1hoo avatar dasj avatar juba avatar mrskensington avatar soupglasses avatar stevenroose avatar toromtomtom avatar marcpaulchand avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.