Active Diretory [英] Active Diretory

查看:81
本文介绍了Active Diretory的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个Web应用程序来搜索服务器上的Active Diretory。我有整个程序编码,但我坚持响应。有人可以帮我解决下面的代码。

I am working on a web app to search the Active Diretory on a server. I have the entire program coded but I am stuck on the response. could someone please help me with the code below.

我遇到问题的代码行是最后一行属性是否加下划线,因为这是抛出错误的地方。

the line of code I'm having problems with is the last line Properties is underlined because that is where the error is being thrown.

foreach(adSearchObject.FindAll()中的SearchResult adObject)

foreach(SearchResult adObject in adSearchObject.FindAll())

Response.Write(" Last Name) :");

Response.Write("Last Name: ");

'Response.Write(" CN =(0),Path(1)",adObject。属性(" CN")(0),  Path);

'Response.Write("CN= (0), Path(1)", adObject.Properties("CN") (0),  Path);

我正在尝试获取Active Directory中每个用户的权限和路径,我的错误是"字符串属性没有定义"...

I'm trying to get the proerties and path of each user in the Active Directory, my error is "string Properties has no definition"...

谢谢你的帮助!。

推荐答案

写方法只能发送一个字符串。 您可能需要发送CSV行,其中每个项目都用逗号分隔。 使用String.split(Mystring,",")来分隔接收端的数据。 写代码看起来与下面的
行相符。 我不确定你要发送的是什么,所以我尽我所能。

the write method can send only one string.  You probably need to send a CSV line with each item seperated by a comma.  The use String.split(Mystring,",") to seperate the data at the received end.  the write code would look something line the line below.  I'm not sure exactly what you are trying to send so I did my best I could.

Response.Write(" CN = (0),Path(1)," + adObject.Properties(" CN")+"(0)," +  Path);

Response.Write("CN= (0), Path(1)," + adObject.Properties("CN") + "(0)," +  Path);


这篇关于Active Diretory的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆