实现C# LDAP用户身份验证,在线等,解决问题立马结贴,谢谢!
解决方案 »
- 关于读取INI文件的问题
- wpf datagrid 如何实现单击单元格进入编辑状态
- C#字符串函数问题:
- DataGridView中CheckBox列的值
- .net有没有关于父线程和子线程的概念,怎么将添加子线程到父线程等相关操作?
- [讨论]数据导入模块的模型,思路等等,小弟没做过,请各位给点意见和建议!
- 太不地道了,那此星星和4,5个裤衩的高手居然也去回复新手的问题来抢分....
- pb程序员如何转型学习.net,高人指点。
- C# 两表比对获取差异的算法
- Windows Mobile treeview控件父子节点级联问题
- 关于openFileDialog和saveFileDialog的问题,大家进来看看
- 关于SqlCommand的一个问题
DirectoryEntry de = new DirectoryEntry( str , @"yourdnsname\"+struser ,strpwd ,
AuthenticationTypes.SeverBinder );
try
{
string guid = de.Guid.ToString();
return true;
}
catch
{
return false;
}
========
AuthenticationTypes.SeverBinder );
string username = "user1";
string domainAndUsername = domain + @"\" + username;DirectoryEntry entry = new DirectoryEntry(path,domainAndUsername, pwd, AuthenticationTypes.ServerBind);说是无效DN用下面这种方法有密码就不行
string path = "LDAP://192.168.95.250:389/ou=groupoffice,dc=bdhg,dc=cn";
string username = "user1";
DirectoryEntry entry = new DirectoryEntry(path,username, pwd, AuthenticationTypes.ServerBind);