SQL Server的LDAP身份验证 [英] SQL Server LDAP authentication
本文介绍了SQL Server的LDAP身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
使用SQL Server 2005中,我如何可以验证用户名/密码对反对使用NET非AD的LDAP服务器?
Using SQL Server 2005, how can I authenticate a username/password pair against a non-AD LDAP server using NET ?
推荐答案
如果从SQL Server 2005中调用,你需要创建一个.NET存储过程。
If calling from SQL Server 2005, you'll need to create a .NET stored procedure.
使用.NET连接到LDAP:
Using .NET to connect to LDAP:
http://msdn.microsoft.com/en-us/库/ system.directoryservices.aspx
using System.DirectoryServices;
DirectoryEntry DE = new DirectoryEntry(LDAPPath, LDAP_Domain + account, password, AuthenticationTypes.Secure);
if (DE == null)
{
// Login failure
}
这篇关于SQL Server的LDAP身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文