Coder Social home page Coder Social logo

laravel-ldap-sample's Introduction

Autenticação em servidor LDAP com Laravel

Esta aplciação utiliza as seguintes bibliotecas php

  • php7.2-ldap
  • php7.2-sqlite

Como utilizar

  1. Vá no arquivo .env e altere as configurações abaixo de # LDAP Connection settings e altere com as configurações do seu servidor ldap.
  2. após isto vá no arquivo config/adldap.php e configure o arquivo com as informações do seu servidor DLAP. É necessário fazer isso devido a um bug no pacote 'adlap2/adldap2'
  3. Por fim, faça o teste com um usuário do seu servidor AD.

Observações

Para utilizar do jeito como está o app, siga o seguinte procedimento:

  1. Clone o repositório
git clone https://github.com/NeroOficial/laravel-ldap-sample.git laravel-ldap  
cd laravel-ldap  
composer install  
  1. Configure seu arquivo .env da seguinte forma
# Database Connection Settings  
DB_CONNECTION=sqlite  
# LDAP Connection settings  
ADLDAP_CONNECTION=ldap  
ADLDAP_CONTROLLERS=ldap.forumsys.com  
ADLDAP_BASEDN=dc=example,dc=com  
ADLDAP_USER_ATTRIBUTE=uid  
ADLDAP_USER_FORMAT=uid=%s,dc=example,dc=com  
  1. Execute o servidor do artisan no seu projeto e tente fazer login com as credenciais desta página
    https://www.forumsys.com/tutorials/integration-how-to/ldap/online-ldap-test-server/

  2. Caso nenhuma das dicas funcione, eu segui o tutorial abaixo, faça o mesmo hehehe

https://github.com/jotaelesalinas/laravel-simple-ldap-auth

laravel-ldap-sample's People

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.