LDAP格式中,IP地址、主机名、域名的引用

今天搭建了一个AD环境来写一个WEB管理AD的系统。运用ExtJs来做界面。

由于要上网,所以我打开虚机以后,就用无线设置IP。 然后通过网上邻居访问虚机没问题后,才进行代码调试。

前提是我本机没有加入虚机的域。

 string path = "LDAP://192.168.10.10/DC=hqtest,DC=com";
 DirectoryEntry entry = new DirectoryEntry(path, "username", "pwd");

这个可以正常 得到 DirectoryEntry

 

当时如果用  ADSRV主机名就不行了。得到的 DirectoryEntry超时。。。。

 string path = "LDAP://ADSRV/DC=hqtest,DC=com";

 DirectoryEntry entry = new DirectoryEntry(path, "username", "pwd");

 

 今天用ViewPort完成界面的显示,还有左侧也用了动态树读取XML的菜单。

以后设想是通过动态树加载AD的组织结构树形结构,那样一定很帅的。期待那个界面的到来。

加油了。。

 

posted @ 2009-06-20 22:18  Web AD  阅读(1337)  评论(0编辑  收藏  举报