我正在运行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
答案 0 :(得分:1)
在2.0.x分支client
密钥已重命名为driver
https://github.com/Maks3w/FR3DLdapBundle/blob/2.0.x/Resources/doc/index.md#4-configure-configyml