mithat/sentry_ldap_for_laravel_5 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mithat/sentry_ldap_for_laravel_5

Composer 安装命令:

composer require mithat/sentry_ldap_for_laravel_5

包简介

PHP 5.3+ Fully-featured Authentication & Authorization System with Ldap

README 文档

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 5.3 !

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:

"mithat/sentry_ldap_for_laravel_5": "2.3.*"

to your composer.json file then follow one of the following guides to get SentryLdap working with your favorite framework.

For more information about Sentry, you must visit the sentry web site: https://cartalyst.com/manual/sentry/2.1

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.

统计信息

  • 总下载量: 45
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 317
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2017-08-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固