Coder Social home page Coder Social logo

yippy / flarum-ext-auth-ldap Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tituspijean/flarum-ext-auth-ldap

0.0 0.0 0.0 710 KB

LDAP authentication extension for Flarum, a simple forum software for building great communities.

License: MIT License

Shell 5.09% JavaScript 29.70% PHP 18.56% Dockerfile 5.09% Less 0.11% TypeScript 41.46%

flarum-ext-auth-ldap's Introduction

Flarum LDAP authentication

MIT license Latest Stable Version Total Downloads Donate

Based on tituspijean/flarum-ext-auth-ldap

This extension enables users to log into Flarum through LDAP, there has been new improvement with this fork. With multiple LDAP server support, and optional email field.

How to install

composer require yippy/flarum-ext-auth-ldap

Must install select2 assets for LDAP Server Settings dropdown selection to work.

php flarum assets:publish

Activate it in Flarum's administration panel.

Languages

This extension support English.

Configuration

Screenshot

  • LDAP server name: sets the end of the Login with link at the top of the forum: image

  • LDAP domains or server IP adresses (comma separated): list of LDAP servers to use.

  • Port: LDAP server port

  • LDAP Version: LDAP server version

  • Base DNs (semicolon separated): list of base DNs to search users in.

  • Filter to apply (optional): Additional filtering, for example require users to be in a specific group.

  • Follow referrals, Use SSL, Use TLS: LDAP server settings

  • LDAP admin distinguished name and LDAP admin password (leave empty for anonymous binding) : if needed, specific the DN and password of the user allowed to perform searches in the LDAP server.

  • LDAP user search fields (comma separated): list of the LDAP fields used to look for the users. The extension will try all combinations of base DNs and search fields.

  • LDAP username field: name of the field containing the username that uniquely identifies the user. Can be uid or sAMAccountname, for example.

  • LDAP email field (optional): name of the field containing the user's email address. The extension will use the first email found for the user's registration in Flarum.

  • LDAP nickname search fields, enable Nicknames extension (comma separated)

  • Disable Flarum login and only use LDAP authentication: merely hides the standard login links and buttons. Users can still use the standard login method through the API.

  • Display detailed LDAP errors for failed login attempts: enable this option to help troubleshoot LDAP account errors for failed login, this will display a error whether the account isn't found, disabled or password expired.

Development (With docker)

  • Clone the repository
  • Copy docker.conf : cp docker/.docker.conf.dist docker/.docker.conf
  • Change UID in docker/.docker.conf if needed.
  • Start dockers : ./install.sh install
  • Open http://flarum.localhost
    • MySQL host: mysql
    • MySQL DB: flarum
    • MySQL user: flarum
    • MySQL password: flarum
  • Go to Admin panel and enable extension
    • LDAP domain: ldap
    • LDAP DN: dc=flarum,dc=com
    • Check connect with Ldap admin
    • LDAP admin: cn=admin,dc=flarum,dc=com
    • LDAP admin password: flarum
    • LDAP search user fields: cn,mail
    • LDAP user mail: mail
    • LDAP user username: cn
  • Add and user on : http://localhost:8081/
    • Login: cn=admin,dc=flarum,dc=com
    • Password: flarum
    • Create a new entry -> Default -> inetOrgPerson

Support

This extension is under minimal maintenance.

Links

flarum-ext-auth-ldap's People

Contributors

yippy avatar dependabot[bot] avatar codazzis avatar stormfox2 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.