Symfony 2:自定义用户提供者 [英] Symfony 2 : Custom user provider
问题描述
自本文以来 http://symfony.com/doc/2.0/cookbook /security/custom_provider.html 尚未写过,有人知道该怎么做吗? (在我的情况下,它将使用LDAP身份验证.)
Since this article http://symfony.com/doc/2.0/cookbook/security/custom_provider.html has not been written yet, has anyone an idea of how to do that ? (In my case it would be using LDAP authentication).
感谢您的回答
推荐答案
为帮助您入门,您可以查看我的博客文章,其中概述了如何创建一个非常基本的用户提供程序系统:
To help you get started you can check out my blog post which outlines how to create a very basic user provider system:
http://clintberry.com/2011/custom-user-providers-symfony2 /
编辑:这篇文章仅涵盖自定义用户提供程序.要使用LDAP身份验证,您还需要创建自己的身份验证提供程序或使用第三方库. http://symfony.com/doc/current/cookbook/security/custom_authentication_provider.html
This post only covers the custom User Provider. To use LDAP authentication you will need to create your own Authentication Provider as well or use a third party library. http://symfony.com/doc/current/cookbook/security/custom_authentication_provider.html
这篇关于Symfony 2:自定义用户提供者的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!