OU经理 [英] Manager of OU

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

问题描述

C#问题。我正在开发一个Web应用程序来查找当前用户OU的管理员,并将名称发布到底部带有case语句的标签。在相同的上下文中,如果访问该页面的人是OU的管理者,那么我想让他们看到隐藏的字段。现在我知道答案就在那里,现在似乎可以告诉我如何访问它并将其转换为字符串。当我搜索它时,我一直卡住了。我认为这将是managedBy,但这不是一个可读的特性,它并没有真正解决它不显示甚至无法读取属性的事实。我必须做错事或看不到我应该做的事情。我在msdn上搜索了ParentProperty并搜索了每个版本的OU Active Directory管理器。我能。在每次搜索20个结果大约75页后,我一直无处可去。现在我的详尽效果我将这个问题发给你们,希望有人知道。感谢您的任何帮助。

C# question. I am working on a web app to find a manager of the current users OU and post there name to a label at the bottom with a case statement. In the same context if the person accessing the page is the manager of the OU then I''d like to let them see a hidden field. Now I know the answer is out there and now one can seem to tell me how to access it and convert it to string. I keep getting stuck when I search for it. I thought it would be the managedBy but that is not a readable characteristic and it doesn''t really resolve the fact that it''s not displaying or even able to read the attribute. I must be doing something wrong or not seeing something that I should be. I''ve searched ParentProperty on msdn and googled every version of "Manager of OU Active Directory" that I can. And after about 75 pages on each search of 20 results I''ve been nowhere. Now to my exhaustive effect I am posting this issue to you guys in hope someone knows. Thanks for any help in advance.

推荐答案

将来您可以将您的问题分解为段落,以便我们更容易阅读。


我需要知道你到目前为止尝试了什么。

你将不得不设置你的web应用程序来使用 Windows身份验证 ...


你应该能够抓住当前用户。


请注意,Windows身份验证有它的缺点,你应该在决定实现它之前研究它。


-Frinny
In the future could you please break up your question in to paragraphs so that it''s easier for us to read.

I need to know what you have tried so far.
You''re going to have to set up your web application to use Windows Authentication...

You should be able to grab the current user.

Please note that Windows Authentication has it''s draw backs and you should research it before deciding to implement it.

-Frinny


对不起。我在这一点上的想法只是符号。奇迹我能理解它们。现在来看一切的规格:


项目背景:Intranet在IIS上设置为文件系统。 AD通过森林连接。 RootDSE的工作原因是一个域控制器仅保存一个AD。


问题:我有一个DirectorySearcher获取所有属性,然后通过
Sorry. My thoughts at this point are just symbols. Miracle I can make sense of them. Now to the specs of everything:

Project Background: Intranet set on IIS as a file system. AD is connected via a forest. RootDSE works due to one Domain Controller holding only One AD.

Problem: I have a DirectorySearcher fetching all the attributes and then calling them via
展开 | 选择 | Wrap | 行号


我是否正确地认为你是在可访问的AD信息的MetaData之后?


我可能完全无法帮助,但我可能已经做了一些挖掘自己类似的区域(尽管在VBScript中都有)并且可能在工作中有一些可能对某些人有帮助的注意事项。如果我能找到任何与之相关的东西,我会为你发布一些东西(自从我做了它已经有一段时间我很害怕所以我对它的记忆不仅仅是生锈了)。
Am I right in thinking you''re after the MetaData of the accessible AD information?

I may be entirely unable to help even so, but I may have done some digging myself in a similar area (All in VBScript though) and might have some notes at work that might help some. I''ll post something for you if I can find anything that looks related (It''s been a while since I did it I''m afraid so my memory of it is more than a little rusty).


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

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