定制 tounaf/ldap-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

tounaf/ldap-bundle

最新稳定版本:v1.2.6

Composer 安装命令:

composer require tounaf/ldap-bundle

包简介

Ldap connection provider for symfony app

README 文档

README

PURPOSE OF THIS BUNDLE

The goal of this bundle is to integrate the login provided by symfony with minimum possible effort. It set all step provided by doc of symfony ldap in your place. You just need to set parameters of your ldap server.

INSTALLATION

composer require tounaf/ldap-bundle

EXAMPLE CONFIGURATION

tounaf_ldap:
    connection:
      host: "ldap.example.com"
      port: 389
      encryption: none # possible value tls/ssl/none, default is none
      options:
          protocol_version: 3
          referrals: false
    providers:
        pulse_ldap_provider:
            ldap:
                base_dn: "OU=Admin,DC=in,DC=com"
                search_dn: "CN=user-service,OU=Service accounts,OU=Admin,DC=in,DC=com"
                search_password: "password"
                extra_fields: ['mail']
    form_login_ldap:
        dn_string: 'DOMAIN\{username}' # or {username}
        login_path: app_login
        check_path: app_login
        default_target_path: app_kama

FULL CONFIGURATOIN REFERENCE

tounaf_ldap:
    connection:
        # Ldap host
        host:                 ~ # Required
        # The port used by ldap
        port:                 '389' # Required
        # the encryption method: none/tls/ssl
        encryption:           none
        options:
            # Verstion of protocole
            protocol_version:     '3'
            # Verstion of protocole
            referrals:            false
    providers:
        # Prototype
        name:
            ldap:
                service:              Symfony\Component\Ldap\Ldap
                base_dn:              ~ # Required, Example: 'OU=Utilisateurs,DC=makeitpulse,DC=in,DC=axian-group,DC=com'
                search_dn:            ~ # Required, Example: 'CN=ogc-ass,OU=Service accounts,OU=Administrations,DC=ass,DC=in,DC=axian-group,DC=com'
                search_password:      null # Required, Example: your_favorit_password
                default_roles:        ROLE_USER # Required, Example: ROLE_USER
                uid_key:              sAMAccountName # Example: sAMAccountName
                extra_fields:         []
    form_login_ldap:
        # ds_string can be: DOMAIN\{username} or like just {username}
        dn_string:            '{username}' # Required, Example: 
        # route to login user
        login_path:           app_login
        # route to process login
        check_path:           app_login
        # route to redirect user when login success
        default_target_path:  ~

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-11-13