LDAP integration in Symfony2

十年热恋 提交于 2019-12-13 13:24:43

问题


I'm new to symfony & LDAP. Is there any step by step tutorial or videos to integrate LDAP in symfony2?


回答1:


I don't know any tutorial or video about LDAP in Symfony2 but here are 2 bundles I used in many projects:

  • OpenSkyLdapBundle (requires ZF2 LDAP component)
  • FR3DLdapBundle (integration with FOSUserBundle)



回答2:


Newer versions of Symfony2 should have LDAP support already in there. If you are constrained to an older version, consider using DapsBundle, since its functionality is patterned after Symfony2's upgrade path, meaning it should be easier for you when you do upgrade your Symfony2 version.. You can learn more about on my blog at http://robertelwell.info/blog/daps-ldap-symfony2/.




回答3:


FOSUserBundle is a bundle for authenticate users against a DB, if you don't want manager your users with the DB then you must do a little customizations for break the dependency in FR3DLdapBundle.

Writing your own UserManager and setting it in the configuration should be enough.

The UserManager is used for create the User instance the first time.



来源:https://stackoverflow.com/questions/11877695/ldap-integration-in-symfony2

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!