Git Product home page Git Product logo

ldapauthenticate's Introduction

LDAPAuthenticate

LDAPAuthenticate is a CakePHP 2.0 Plugin, that make your authenticate with ldap very simple!

Requirements

  • PHP 5.3 or >
  • CakePHP 2.0 or >

Installation

Clone from github : in your app/Plugin directory type git clone [email protected]:pmoraes/LDAPAuthenticate.git

Usage

You need to configure the plugin in your appController below follow how to configure

'Auth' => array(
      'authenticate' => array(
        'LDAPAuthenticate.LDAP' => array(
                'ldap_protocol'=> // This parameter is optional, default is 3, but if you need other configuration you change
                'ldap_url'     => 'example.domain.com',

                // Configure your UID or CN and your Domain Component 
                'ldap_bind_dn' => 'uid=??,ou=users,dc=??,dc=??',
                'ldap_bind_pw' => 'atomic10',
                'model'        => 'User',

                // Configure your Domain Component
                'ldap_base_dn' => 'dc=??,dc=??', 

                'ldap_filter'  => '(|(UID=%USERNAME%*)(uid=%USERNAME%*))',

                // Configure this fields how to are in your form 
                'form_fields'  => array('username' => '??', 'password' => '??'),

                // This fields are references to database table
                'ldap_to_user' => array(
                  'givenname'  => 'first_name',
                  'sn'         => 'last_name',
                  'mail'       => 'mail',
                  'uid'        => 'username'
              ),
              'defaults'       => array(
              'active'    => 1,
              'admin'     => 0
          )
        )
      )
    )

ldapauthenticate's People

Contributors

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