simplesolution/ldap

Last activity 08 Nov 2019 3 647
composer require simplesolution/ldap

A plugin that allows to Login into the Backend of Neos via Ldap

1.1.1

Version
1.1.1
Type
neos-plugin
Release Date
Nov 08, 2019 10:14
Source
git
Distribution
zip
Requires
MIT
  • #ldap
  • #login
  • #neos
  • #neos-plugin
  • #neos backend
  • #neos backend login
  • #neos backend login ldap
  • #neos ldap
2e14c9c316c25a74ba88fe539df7e68519abc1c4

SimpleSolution.Ldap

Neos Plugin which allows you to login into the Neos Backend with an Ldap server

It doesn't get simpler than this to login via ldap.

At the moment this plugin is only tested with OpenLDAP, but it should work on every ldap server, if not, consider making a pull request.

Requirements

  • php >= 7

How to Use

Just configurate your ldap server in your Settings.yml and thats it, heres the default configuration:

SimpleSolution:
 Ldap:
   host:
     hosts: ['127.0.0.1']
     base_dn: ou=your,dc=ldap,dc=at
     username: ~
     password: ~
     port: 389
   fields:
     usernameAttribute: 'uid' 
   roles: 
     neos-admin: 'Neos.Neos:Administrator'
     neos-editor: 'Neos.Neos:Editor'
   defaultRole: ~
   additionalHosts: ~

The configuration under host has the same parameters as the configuration from Adldap2. The usernameAttribute set the field which you wanna map to your username in neos. roles defines the mapping on which group should display which Neos Role and the defaultRole acts like a fallback when either no mappings are defined or the user has no groups in ldap. With the additionalHosts setting you cann define additional ldap servers, but be careful the more server the slower will be the authentication process. To add an additionalHost just add this:

SimpleSolution:
 Ldap:
   host:
     hosts: ['127.0.0.1']
     base_dn: ou=your,dc=ldap,dc=at
     username: ~
     password: ~
     port: 389
   fields:
     usernameAttribute: 'uid' 
   roles: 
     neos-admin: 'Neos.Neos:Administrator'
     neos-editor: 'Neos.Neos:Editor'
   defaultRole: ~
   additionalHosts:
     anotherHost:
       host:
         hosts: ['127.0.0.1']  
         base_dn: ou=your,dc=ldap,dc=at
         username: ~
         password: ~
         port: 389
       fields:
         usernameAttribute: 'uid' 
       roles: 
         neos-admin: 'Neos.Neos:Administrator'
         neos-editor: 'Neos.Neos:Editor'
       defaultRole: ~

The additional Host has the same configuration options than the default one.

Authors

Tobias Franek (tobias.franek@gmail.com)

The content of the readme is provided by Github
The same vendor provides 2 package(s).