open-wide/ezpublish-synchronizeldapuser-bundle 问题修复 & 功能扩展

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

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

open-wide/ezpublish-synchronizeldapuser-bundle

Composer 安装命令:

composer require open-wide/ezpublish-synchronizeldapuser-bundle

包简介

Synchronize Ldap User to Ezpublish 5.3 or newer

README 文档

README

https://github.com/Open-Wide/OWSynchronizeLdapUserBundle/raw/master/doc/images/Open-Wide_logo.png

Extension:OpenWideSynchronizeLdapUser v1.0
Requires:eZ Publish 5.3.x or newer and IMAG/LDAP bundle
Author:Open Wide http://www.openwide.fr

Presentation

This bundle connect ldap user and create user ldap in ezpublish if there is no.

Licence

This eZ Publish extension is provided as is, in GPL v3 (see LICENCE)

What do you need ?

EzPublish 5.3 or 5.4 IMAG/LDAP Bundle Configure security.yml and config.yml

Configure IMAG/LDAP Bundle

See https://github.com/BorisMorel/LdapBundle

Get the Bundle

Composer

Add OpenWideSynchronizeLdapUser in your project's composer.json

{
    "require": {
        "open-wide/synchronizeldapuser-bundle": "dev-master"
    }
}

Enable the Bundle

<?php
// ezpublish/EzPublishKernel.php

public function registerBundles()
{
    $bundles = array(
        // ...
        new OpenWide\SynchronizeLdapUserBundle\OpenWideSynchronizeLdapUserBundle(),
    );
}

Configure ezpublish class user and user group

You must create fields in your user and user group classes Exmple : mail, cn, sn, uid ...... Fields declared in config.yml must exist.

Configure user group

Create an user group Exemple UserLDAP Configure content_id and location_id in parent_group_content_id and parent_group_location_id. Ldap users will be created in this group.

Configure yml

First configure security.yml.

security:
    encoders:
        Symfony\Component\Security\Core\User\User: plaintext
        IMAG\LdapBundle\User\LdapUser: plaintext

    role_hierarchy:
        ROLE_USER:          IS_AUTHENTICATED_ANONYMOUSLY
        ROLE_INSCRIT:       ROLE_USER

    providers:
        chain_provider:
            chain:
                providers: [ldap,ezpublish]
        ezpublish:
            id: ezpublish.security.user_provider
        ldap:
            id: imag_ldap.security.user.provider

    firewalls:
        dev:
            pattern: ^/(_(profiler|wdt)|css|images|js)/
            security: false

        ezpublish_setup:
            pattern: ^/ezsetup
            security: false

        ezpublish_rest:
            pattern: ^/api/ezp/v2
            stateless: true
            ezpublish_http_basic:
                realm: eZ Publish REST API

        ezpublish_front:
            pattern: ^/
            anonymous: ~
            imag_ldap:
                provider: chain_provider
            form_login:
                require_previous_session: false
                always_use_default_target_path: false
                default_target_path: /

security:
    access_control:

        # Routes exceptions sans accès loggué
        - { path: ^/login$, role: IS_AUTHENTICATED_ANONYMOUSLY }

        # Routes avec accès loggué
        - { path: ^/, role: [ROLE_USER] }

Then configures config.yml.

openwide_synchronize_ldap_user:
    enabled: true
    synchronize: true
    parent_group_content_id: 223
    parent_group_location_id: 218
    mode: update
    verbose: true
    #you must define at least one field in user and group (example dn)
    fields:
        user:
            dn: { value: dn }
            first_name: { value: sn}
            last_name: { value: sn}
            mail: { value: mail }
            cn: { value: cn }
            sn: { value: sn }
            uid: { value: uid }
            givenname: { value: givenName }
        group:
            name: { value: ou }
            ou: { value: ou }
            cn: { value: cn }
            dn: { value: dn }
    ldap:
        base_dn: dc=example,dc=com
        filter_user: '(&(objectclass=person)(uid=**USERNAME**))'
        filter_group: '(&(objectclass=groupOfUniqueNames)(uniquemember=uid=**USERNAME**,dc=example,dc=com))'

DOC

enabled
active or not the bundle
synchronize
If enabled, the bundle synchronize users It copies the users and groups in the EZ base
parent_group_content_id
User group content identifier in which all users will be copied
parent_group_location_id
User group location identifier in which all users will be copied
mode
add: users are created on the first connection update: users are created in the first connection and then modified
verbose
If enabled, you write more info in log file
fields
List of fields copied for user and user group Syntax: <Ez Field>: { value: <LDAP field>}
ldap
Configuring ldap search filters

open-wide/ezpublish-synchronizeldapuser-bundle 适用场景与选型建议

open-wide/ezpublish-synchronizeldapuser-bundle 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 20 次下载、GitHub Stars 达 0, 最近一次更新时间为 2015 年 05 月 15 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 open-wide/ezpublish-synchronizeldapuser-bundle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 open-wide/ezpublish-synchronizeldapuser-bundle 我们能提供哪些服务?
定制开发 / 二次开发

基于 open-wide/ezpublish-synchronizeldapuser-bundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 20
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0
  • 更新时间: 2015-05-15