Giter VIP home page Giter VIP logo

phplist-plugin-ldap's Introduction

LDAP authentication plugin for phpList

This repository contains an LDAP authentication plugin for phpList.

It is initialy based on an old patch for phplist_auth.inc submitted by bpeabody on phplist Mantis. And has been reworked to fit the new approach introduced in v3.2.7 as described in phplist documentation.

Installation

This plugin is intended to be installable from the Plugin Manager, as it follows the requirements described in the documentation.

Use "Plugin package URL" like https://github.com/digital-me/phplist-plugin-ldap/archive/master.zip should work if the permissions are allowing the installation from the GUI.

Configuration

As described in the initial patch, the configuration has to be defined from the main configuration file.

Example:

$ldap_enabled = 1;
$ldap_url = "ldaps://example.com:636";
$ldap_auth_bind_dn = "cn=readonly,ou=people,dc=example,dc=com";
$ldap_auth_bind_pw = "changeme";
$ldap_all_user_base_dn = "ou=People,dc=example,dc=com";
$ldap_all_user_pattern = "(uid=__LOGIN__)";
$ldap_all_user_uid_attribute = "uid";
$ldap_all_user_is_super = 1;
$ldap_default_privs = array(
      'subscribers' => true,
      'campaigns' => true,
      'statistics' => true,
      'settings' => true
);
$ldap_matching_user_base_dn = "ou=People,dc=example,dc=com";
$ldap_matching_user_pattern = "(&(uid=__LOGIN__)(|(uid=her)(uid=him)))";
$ldap_matching_user_uid_attribute = "uid";
$ldap_except_users = array('admin');

Known issues

Todo

  • Improve configuration documentation, possibly adding the original example file
  • Add support for LDAP groups
  • Allow configuration from the plugin, if relevant
  • Add automated test via Travis CI

phplist-plugin-ldap's People

Contributors

btlogy avatar

Watchers

Michiel Dethmers avatar James Cloos avatar  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.