Skip to content
Qury edited this page Dec 1, 2017 · 1 revision

ion_auth-adldap2-codeigniter

Active Directory authentication for Codeigniter on Ion Auth basis

This piece of software can be used with Codeigniter 3 to authenticate against Active Directory domain controllers (or Samba4 domain controllers).

The software is intended to be used on intranets.

Installation

  • install Codeigniter 3
  • install Ion-Auth
  • install adldap2 using composer: composer require adldap2/adldap2
  • configure codeigniter and ion auth
  • review and configure the adauth config file
  • initiate migration

What is included

How it works

The Adauth controller is basically a "butchered" version of Ion Auth's Auth controller It will try to authenticate you against the local database first and if it is unsuccessful then it will try to authenticate with the domain controller. If the athentication against the domain controller was successful it will create the user locally. Otherwise it works the same way as Ion Auth.

Credits:

This is my first attempt at sharing something that i've written for myself :) Feel free to point out issues or contribute changes.

Clone this wiki locally