AUTHEN LDAP使用WINDOWS登录信息 [英] AUTHEN LDAP USING WINDOWS LOGON INFORMATION

查看:191
本文介绍了AUTHEN LDAP使用WINDOWS登录信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello buddy



我正在创建一个Web应用程序(MVC4)。我打算使用Windows登录信息进行LDAP身份验证。成像:用户使用用户名和密码登录窗口,然后单击链接访问Web应用程序。需要使用LDAP对Web应用程序进行身份验证以检查权限。我们可以这样做吗?你的反馈非常贴切!



Dung.NV

解决方案

是的,这是可能的。有关详细信息,请参阅此链接 / blockquote>

感谢Madhu Nair!

但我关注的不是LDAP上的身份验证方法。我想要的是如何使用C#(MVC)获取UserName(窗口登录)和DomainName(http请求发送的机器)。我搜索并使用了类似的方法:Environment.UserDomainName,或字符串strUserName = HttpContext.Request.LogonUserIdentity.Name;但返回的结果是服务器信息(用户登录服务器,域名服务器机器)。

如何获取客户端登录信息?


Hello buddy

I am creating a Web application (MVC4). I intend to use windows logon information for LDAP authentication. Imaging that: User logon windows with username and password, after that click a link to access web application. Web application needs to be authenticated with LDAP to check permission. Can we do this way? your feedback will be very appriciated!

Dung.NV

解决方案

Yes it is possible. Refer this Link for more details


Thanks Madhu Nair!
But my concern is not authentication method on LDAP. What i want is how to get UserName (Window Logon) and DomainName (Machine where the http Request send from) using C# (MVC). I have searched and used method like: Environment.UserDomainName, or string strUserName=HttpContext.Request.LogonUserIdentity.Name; but the result returned is the Server information (User Logon Server, Domain Name Server Machine).
How to get client logon information?


这篇关于AUTHEN LDAP使用WINDOWS登录信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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