Coder Social home page Coder Social logo

laravel-auth-ldap's Introduction

laravel-auth-ldap

Build Status

LDAP authentication driver for Laravel 5

Installation

Adding via Composer

Add to composer.json and install with composer install

{
  require: {
    "aparticka/laravel-auth-ldap": "dev-master"
  }
}

or use composer require aparticka/laravel-auth-ldap

Add to Laravel

Modify your config/app.php file and add the service provider to the providers array.

'LaravelAuthLdap\AuthLdapServiceProvider'

Copy the configuration files to your app.

php artisan vendor:publish --provider="LaravelAuthLdap\AuthLdapServiceProvider"

Update your config/auth.php to use the ldap driver.

'driver' => 'ldap'

Configuration

There are two configuration files included, one for general options - auth-ldap.php and one for the included LDAP provider adLDAP - adldap.php.

auth-ldap.php

  • provider array - secondary provider to be used for auth
    • driver string - the driver to use
    • must_exist bool - if the user must exist in the provider to log in
  • convert_fields array - maps dynamic properties on the Authenticatable user object
  • credentials_fields array - the field names used for user credentials
    • username string - the authentication field name used for the username
    • password string - the authentication field name used for the password
  • username_field string - the LDAP field used for the username

adldap.php

Configuration variables used in creation of the adLDAP client. Documentation

Extending

If you wish to extend any of the classes, just add your own service provider and bind your custom implementations to the provided interfaces. The provided implementations were designed to be extended so you can use them as a base to extend from if you wish.

License

laravel-auth-ldap is distributed under the terms of the MIT license.

About

Created by Adam Particka (aparticka)

laravel-auth-ldap's People

Contributors

iamdmhero 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.