我配置了FR3DLdapBundle。
我必须修改app/config/config.yml
# app/config/config.yml
fr3d_ldap:
client:
host: 192.168.1.101
username: cn=admin,dc=test,dc=local
password: 12345
optReferrals: false
baseDn: dc=test, dc=local
filter: (&(ObjectClass=*))
attributes:
- { ldap_attr: mail, user_method: setUserName }但它不起作用。添加phpldapadmin屏幕截图。

配置是否正确?什么是“user_method: setUserName”?
发布于 2012-09-03 01:56:00
attributes:
- { ldap_attr: mail, user_method: setUserName }表示LDAP属性"mail“将作为参数传递给用户类的方法"setUserName”。
根据你的截图,属性邮件似乎不存在。
你也修改了security.yml吗?
https://stackoverflow.com/questions/11951761
复制相似问题