使用LDAP身份Asp.Net单个用户帐户 [英] Asp.Net Identity Individual User Accounts using LDAP

查看:92
本文介绍了使用LDAP身份Asp.Net单个用户帐户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用VS 2013 Asp.net 4.5.1和使用的个人用户帐户验证的选项创建一个内部web表单应用程序。我想使用的 LDAP 的对用户进行验证,并使用为的单个用户帐户的选项来保存用户信息和角色创建的SQL数据库。我们没有活动目录联合服务(AD FS),所以我不能用开 - premise验证方法。

I am using VS 2013 Asp.net 4.5.1 and created an internal webforms app using the Individual User Accounts option for Authentication. I want to use LDAP to authenticate the users and use the SQL DB that was created for Individual User Accounts option to hold the users info and roles. We don’t have Active Directory Federation Services (AD FS) so I can’t use the On-Premise Authentication method.

该广告的用户名会被存储在SQL数据库

The AD username will be stored in the SQL DB

我如何使用LDAP身份验证的用户,然后使用的 AspNet.Identity.EntityFramework 的才能到用户信息和角色从SQL数据库?

How can I authenticate the users using LDAP and then use the AspNet.Identity.EntityFramework to get to the users info and roles from the SQL DB?

推荐答案

您可以用这样一个例子这种实现,它是一个客户 UserStore 为RavenDB:

You can use this implementation like an example, it is a customer UserStore for RavenDB:

定制ASPNET身份验证RavenDB

有这一系列的视频讲解如何使用安全在使用.NET(第二个视频解释如何做到这一点)。

There's this series of videos explaining how to work with security in .NET (the second video explains how to do it).

定制ASPNET验证与身份

这篇关于使用LDAP身份Asp.Net单个用户帐户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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