为什么FR3DLdap不起作用?

时间:2013-05-31 17:15:26

标签: symfony symfony-2.1 fr3dldapbundle

我正在运行symfony 2.2并尝试按照文档安装FR3DLdap(2.0.x-dev,但尝试其他)。清除缓存后,我会在“fr3d_ldap”下面找到“无法识别的选项”客户端。

我的config.yml :(缩进是正确的;不知道如何在这里为YAML保存它)

fr3d_ldap:
client:
    host:         my.host.name
#   port:         389    # Optional
#   version:        3    # Optional
    username:     portaladmin    # Optional
    password:     mypassword    # Optional
#   optReferrals: false  # Optional
#   useSsl:       true   # Enable SSL negotiation. Optional
    useStartTls:  true   # Enable TLS negotiation. Optional
user:
    #baseDn: ou=users, dc=host, dc=foo
    baseDn: DC=rjis, DC=co, DC=uk
    filter: (&(ObjectClass=Person))
    attributes:          # Specify ldap attributes mapping [ldap attribute, user object method]
        - { ldap_attr: uid,  user_method: setUsername } # Default
#       - { ldap_attr: cn,   user_method: setName }     # Optional
#       - { ldap_attr: ...,  user_method: ... }         # Optional
#service:
#   user_manager: fos_user.user_manager          # Overrides default user manager
#   ldap_manager: fr3d_ldap.ldap_manager.default # Overrides default ldap manager

1 个答案:

答案 0 :(得分:1)