正在寻找完整的 S.DS.AM 示例,其中许多 AD 扩展已编写
System.DirectoryServices.AccountManagement 可以扩展以支持用于读取和写入 AD 属性的其他属性。
有人知道适用于 AD、Exchange 2003 或 2010 的完整/完整示例实施吗?
System.DirectoryServices.AccountManagement can be extended to support additional properties for reading and writing AD properties.
Is anyone aware of a full/complete sample implementation that works for AD, Exchange 2003 or 2010?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
据我所知,网上没有任何内容,但欢迎您访问我的收藏(我已将其包括在内)。
关于我的代码,您可能会注意到的一件事是,我几乎完全用我自己的代码完全替换了标准的 get/set 操作,这些代码直接写入底层 DirectoryEntry。这是因为内置的 set 操作并非设计用于处理数组数组的数据类型(例如 jpegPhoto 属性,它是字节数组的数组,每个字节数组代表一张图片)。
首先是一堆扩展方法,我将其用于各种获取/设置操作。
这是我的 UserPrinciple 中的实际代码:
There isn't anything online that I know of, but you are welcome to my collection (which I've included).
One thing you'll probably notice about my code is that I've almost completely replaced the standard get/set operations with my own code which writes directly to the underlying DirectoryEntry. This is because the built in set operation is not designed to handle data types which are arrays of arrays (such as the jpegPhoto attribute which is an array of byte arrays, with each byte array representing a picture).
First is a bunch of extension methods which I use for my various get/set operations.
Here is the code in action in my custion UserPrinciple: