Symfony 2:自定义用户提供者 [英] Symfony 2 : Custom user provider

查看:81
本文介绍了Symfony 2:自定义用户提供者的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

自本文以来 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆