承接 directorytree/ldaprecord-browser 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

directorytree/ldaprecord-browser

Composer 安装命令:

composer require directorytree/ldaprecord-browser

包简介

Browse your LDAP server in your Laravel application.

README 文档

README

An LDAP browser for your Laravel application or development workflow.

Requirements

  • Laravel >= 8.0
  • LdapRecord-Laravel >= 2.0

Installation

Before installing LdapRecord-Browser, configure your LDAP connections.

After configuring your connections, install LdapRecord-Browser via composer:

composer require directorytree/ldaprecord-browser

Then, inside of your routes/web.php file, register Browser's routes via:

// routes/web.php

Route::prefix('/ldap')->group(function () {
    \LdapRecord\Browser\Browser::routes();
});

Since Browser has an index route (/), it's recommended to wrap it inside of a group with a prefix so it does not collide with your applications root index page.

Usage

After you've registered Browser's routes, you're ready to start navigating your directory.

Visit your application at (if running php artisan serve) http://127.0.0.1:8000/ldap.

You will see a list of connections you have configured:

Click one of the connections and you will be taken to a view of your entire directory, where you may search and view all objects visible by your configured user account:

Configuration

LdapRecord-Browser is configured out of the box for use with Active Directory LDAP servers.

If you're connecting to a different LDAP server, such as OpenLDAP, you may alter the LdapRecord model references Browser utilizes.

To update these references, call LdapRecord\Browser\Browser::models() inside of your AppServiceProvider::boot() method:

use LdapRecord\Browser\Browser;
use LdapRecord\Browser\ModelType;

public function boot()
{
    Browser::models([
        ModelType::USER => \LdapRecord\Models\OpenLDAP\User::class,
        ModelType::GROUP => \LdapRecord\Models\OpenLDAP\Group::class,
        ModelType::DEFAULT => \LdapRecord\Models\OpenLDAP\Entry::class,
        ModelType::UNKNOWN => \LdapRecord\Models\OpenLDAP\Entry::class,
        ModelType::COMPUTER => \LdapRecord\Models\OpenLDAP\Entry::class,
        ModelType::CONTAINER => \LdapRecord\Models\OpenLDAP\OrganizationalUnit::class,
    ]);
}

Note: If you've created your own LdapRecord models, feel free to update these references to those instead.

统计信息

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

GitHub 信息

  • Stars: 11
  • Watchers: 5
  • Forks: 1
  • 开发语言: Blade

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-03-05

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固