dunksjunk / ad-auth
A Laravel 5.0/5.1 package to add Active Directory authentication and local database user mapping.
Requires
- php: >=5.4.0
- ext-ldap: *
- laravel/framework: ~5.0
This package is not auto-updated.
Last update: 2023-04-15 10:18:22 UTC
README
A Laravel 5.0/5.1 package to add Active Directory authentication and local database user mapping.
This tool is optimized and set up for authentication against Microsoft Active Directory Services.
Install
Via Composer:
$ composer require "dunksjunk/ad-auth":"dev-master"
dev-master should always work for the currently released Laravel version.
Next add the service provider to the providers section in /config/app.php:
dunksjunk\ADAuth\ADAuthServiceProvider
Then, in your Laravel App root directory:
$ php artisan vendor:publish --provider="dunksjunk\ADAuth\ADAuthServiceProvider"
This will place an adauth.php file in your config directory.
Edit config/adauth.php with your domain information and other settings.
Finally, modify /config/auth.php to use the ADAuth driver:
'driver' => 'ads',
Usage
Generally, just drop it in, set your options and go.
If using the SSL option and you are having problems, you may need to all the line 'TLS_REQCERT allow' to your LDAP.conf file for php. There's articles everywhere on it.
Typically, regular connections are on port 389, and SSL connections are on 636.
Change log
Please see CHANGELOG for more information what has changed recently.
About Dunk's Junk
Most things I publish are tools and routines I use on various projects myself. Where there may be many other versions, I put out one that works for me better, or so I can learn. If you can make use of my junk, have at it. If it works good for you, let me know.
If you can find a better way of doing something, I'm all ears and will give careful consideration to whatever suggestions come by.
I just want to make good, solid, and simple tools that are easy to set up and use quickly. Just enough flexibility to fit well, but not so much that the tool itself gets bloated.
Credits
License
The MIT License (MIT). Please see License File for more information.