Giter Site home page Giter Site logo

syliusldapplugin's Introduction

Sylius - LDAP Plugin

Plugin for integrating Sylius with LDAP.

Try it before installing

If yo want to see if this plugin works with your LDAP server, you can try it before integrating it into your project. This sylius-plugin comes with a dummy sylius installation inside the test folder that you can use to test the integration with your LDAP server.

Run the following commands in a local directory:

```bash
$ git clone https://github.com/Sylius/SyliusLdapPlugin.git SyliusLdapPlugin
$ cd SyliusLdapPlugin
$ composer install
$ (cd tests/Application && yarn install)
$ (cd tests/Application && yarn build)
$ (cd tests/Application && bin/console assets:install public -e test)
```

To be able to setup a plugin's database, remember to configure you database credentials and LDAP configuration (see section "Configuration" below) in tests/Application/.env.local. After that is done, set up the database:

```bash
$ (cd tests/Application && bin/console doctrine:database:create -e test)
$ (cd tests/Application && bin/console doctrine:schema:create -e test)
$ (cd tests/Application && bin/console sylius:fixtures:load -e dev)
```

When that is done, you can just start the symfony server:

```bash
$ (cd tests/Application && bin/console server:run -d public -e dev)
```

The server is now running, you can reach it at http://127.0.0.1:8000/admin/ and try to log in using your LDAP credentials.

Installation

Run composer require sylius/ldap-plugin in your project-root.

Configuration

Add this block to the parameters in your env-file and fill out the parameters. Your env file will most probably be .env.local. If that file does not exist, copy it from .env to .env.local and fill in the block of parameters below.

###> sylius/ldap-plugin ###
LDAP_HOST='ldap.example.com'
LDAP_POST=389
LDAP_ENCRYPTION='ssl' # 'ssl', 'tls' or 'none'
LDAP_PASSWORD='[YOUR PASSWORD FOR READ-ONLY / LOOKUP-USER HERE]'
LDAP_QUERY_PARAMETER='uid'
LDAP_QUERY_STRING='uid={username}'
LDAP_LOOKUP_DN='cn=lookup-user,dc=example,dc=com'
LDAP_USER_QUERY_DN='dc=example,dc=com'
###< sylius/ldap-plugin ###

Origin / Other Sources

This plugin is the result of the third sylius hackathon in oldenburg at brille24. It is based on symfony/ldap, so any guide for that package may also help you:

syliusldapplugin's People

Contributors

addiks avatar

Watchers

 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.