如何使用对Active Directory中的用户进行身份验证AuthType.Kerberos?
【腾讯云】亏本大甩卖,服务器4核16G 1年370元(带宽12M,系统盘120GB SSD盘,月流量2000GB)!!!!!!
云产品 配置 价格
服务器 1核2G,带宽5M,系统盘50GB SSD盘,月流量500GB 38元/年
MySQL 1核1G 19元/年
服务器 16核32G,带宽18M,系统盘250GB SSD盘,月流量5000GB 1197元/年
点我进入腾讯云,查看更多详情

Could anyone please share any thought on authenticating Active Directory users using the AuthType.Kerberos method.

Ideally, I would like to pass the Username and Password to validate the user credentials using the AuthType.Kerberos method

This type of validation uses LDAP connection (LdapConnection)

Any comments or feedback will be very appreciated.

Cheers! :)

#0

Kerberos doesnt use a username and password in the sense you are talking about here, it uses a ticket based auth system with a central server. Kerberos is quite complicated to implement and is normally only used in cases where you want to do double hop authentication with the logged in user. This means the application wants to use the credentials of the user who has logged in to access a secondry system. For example if you have a SharePoint site which pulls data from exchange server you may want to pass the currently logged in users details from sharepoint to exchange. This is normally done with Kerberos and Constrained Delegation.

In reality what you probably want for your application is Windows authentication (NTLM) which allows the application to authenticate domain users, (However again in the common case this doesnt use a username and password at your application level either).

===EDIT===

To implement kerberos with a .Net webapp you will need to do the following

This article has some good advice around how to troubleshoot problems with the system http://blogs.technet.com/b/askds/archive/2008/05/29/kerberos-authentication-problems-service-principal-name-spn-issues-part-1.aspx

推荐文章

Joomla:如何在浏览单独的子菜单项时突出显示主菜单项?

Joomla:如何在浏览单独的子菜单项时突出显示主菜单项?

推荐文章

调用函数时如何传入参数名?

调用函数时如何传入参数名?

推荐文章

如何创建用于开始和停止语音录制的小部件

如何创建用于开始和停止语音录制的小部件

推荐文章

如何发现用户的桌面文件夹?

如何发现用户的桌面文件夹?

推荐文章

为JS变量分配$GET变量

为JS变量分配$GET变量

推荐文章

在所有状态的UIButton中定位图像

在所有状态的UIButton中定位图像

推荐文章

ASP中基于多个表单值从数据库中检索记录时遇到的问题?

ASP中基于多个表单值从数据库中检索记录时遇到的问题?

推荐文章

如何拦截虚拟键盘上的击键?

如何拦截虚拟键盘上的击键?

推荐文章

用小正方形填充矩形的算法?

用小正方形填充矩形的算法?

推荐文章

在gson中解析具有变量类型的对象

在gson中解析具有变量类型的对象

推荐文章

Win2003上Windows服务中的REST-WCF服务托管(https)

Win2003上Windows服务中的REST-WCF服务托管(https)

推荐文章

如何解析ms-office文档

如何解析ms-office文档

推荐文章

是否可以在回形针验证消息中获取文件名?

是否可以在回形针验证消息中获取文件名?

推荐文章

Javascript上的Json错误

Javascript上的Json错误

推荐文章

如何处理django social auth引发的异常?

如何处理django social auth引发的异常?

推荐文章

如何通过我们的程序在运行时注册新的JNDI名称?

如何通过我们的程序在运行时注册新的JNDI名称?