登录名 cn=ldap_xbtl
密码 password
目录URL ldap://10.68.110.65:389/
BaseDN dc=hq,dc=com
DirectoryEntry entry = new DirectoryEntry("LDAP://10.68.110.65:389/,DC=hq,DC=com","ldap_xbtl
","password",AuthenticationTypes.None); 老是报错,不知道怎么办好,请大侠帮忙
密码 password
目录URL ldap://10.68.110.65:389/
BaseDN dc=hq,dc=com
DirectoryEntry entry = new DirectoryEntry("LDAP://10.68.110.65:389/,DC=hq,DC=com","ldap_xbtl
","password",AuthenticationTypes.None); 老是报错,不知道怎么办好,请大侠帮忙
解决方案 »
- 分页怎么处理海量数据
- 如何解决在jquery post 传选中的下拉菜单的值过程中出现错误
- repeater中隐藏某一单指定元格内容
- 服务器控件怎么应用泛型?
- ASP.net 查询语句中文乱码
- .net中如何取上一页面的URL?
- 请问一个设计界面和HTML代码界面切换时候出现的自动改动代码的问题
- xml 结点删除 急啊。昨天开了一贴无人回复。分全加!!!!!!!!!!!!!
- 请问如何在asp.net中使用ubb代码?
- asp.net如何向word中插入嵌套表格
- 关于计算点击次数的问题(有谁还有更好的方法)
- 小白求教:asp.net预览出现错误:无法打开登录所请求的数据库 "DropdownTest"。登录失败。用户 'sa' 登录失败。
//bo:组织名
//域名:bc.com.cn string strPath = "LDAP://bc/OU=bo,DC=bo,DC=com,DC=cn";
DirectoryEntry de;
de = new DirectoryEntry(strPath,"administrator" ,"btmainsvr1234",AuthenticationTypes.None);
DirectorySearcher deSearch = new DirectorySearcher();
deSearch.SearchRoot =de;
deSearch.Filter = "(&(objectClass=user)(sAMAccountName=willpower))";
deSearch.SearchScope = SearchScope.Subtree;
SearchResult results= deSearch.FindOne();
de=new DirectoryEntry(results.Path,"administrator" ,"",AuthenticationTypes.None);