anndro / sentry_ldap
PHP 5.3+ Fully-featured Authentication & Authorization System with Ldap
Installs: 347
Dependents: 0
Suggesters: 0
Security: 0
Stars: 22
Watchers: 3
Forks: 325
Open Issues: 2
Requires
- php: >=5.3.3
Requires (Dev)
- illuminate/cookie: ~4.0|~5.0
- illuminate/database: ~4.0|~5.0
- illuminate/http: ~4.0|~5.0
- illuminate/session: ~4.0|~5.0
- ircmaxell/password-compat: 1.0.*
- mockery/mockery: 0.9.*
Suggests
- happydemon/txt: Required Text helpers when using the Kohana implementation
- illuminate/database: Default sentry user, group and throttling implementations.
- ircmaxell/password-compat: Default hashing uses PHP 5.5 password_* functions, with forward-compatible support.
This package is not auto-updated.
Last update: 2024-12-17 08:09:21 UTC
README
SentryLdap is a fork of Cartalyst Sentry library. Added new features like ldap authentication.SentryLdap is a PHP 5.3+ fully-featured authentication & authorization system. It also provides additional features such as user groups and additional security features.
This branch works with Laravel 4.2 !
Sentry is a framework agnostic set of interfaces with default implementations, though you can substitute any implementations you see fit.
Features
It also provides additional features such as user groups and additional security features:
- Ldap login
Sentry features
- Configurable authentication (can use any type of authentication required, such as username or email)
- Authorization
- Activation of user (optional)
- Groups and group permissions
- "Remember me"
- User suspension
- Login throttling (optional)
- User banning
- Password resetting
- User data
- Interface driven - switch out your own implementations at will
Installation
Installation of SentryLdap is very easy. Open your composer.json file and add the following to the require array:
"anndro/sentry_ldap": "2.1.*"
to your composer.json file then follow one of the following guides to get SentryLdap working with your favorite framework or on it's own:
- Install in Laravel 4
- Install in FuelPHP 1
- Install in CodeIgniter 3
Using
This library is still beta for ldap functions. You have to change this lines in your config file.
'ldap' => array(
'server' => 'ldapserver',
'port' => 'ldapport'
),
After this settings you have to follow sentry orginal document file. You can use ldap login like this;
// Set login credentials
$credentials = array(
'userid' => 'demo',
'password' => 'demo',
);
// Try to authenticate the user
$user = Sentry::authenticateWithLdap($credentials, false);
Also have Sentry::authenticateWithLdapAndRemember($credentials); function.
Support
We offer support through our help forums, on IRC at #cartalyst for normal sentry issues, and through GitHub issues (bugs only) for Ldap issues.