查找在Active Directory用户的经理纪录

编程入门 行业动态 更新时间:2024-10-28 14:32:05
本文介绍了查找在Active Directory用户的经理纪录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

使用Active Directory,我试图找到SAM帐户和用户的经理的电子邮件。

Using Active Directory, am trying to find the SamAccountName and email of the user’s manager.

我发现通过搜索,其中sAMAccountName赋=域\帐户在AD中登录的用户。然后,我检索了经理属性,它看起来是这样的,例如:

I find the logged on user in the AD by search where sAMAccountName = Domain\Account. I then retrieve the manager property, which looks like this, for example:

CN=Doe\, Jane E.,OU=Employees,OU=Users,OU=Detroit,OU=United States,DC=na,DC=gmc,DC=gmc,DC=com"

我如何使用这个presumed键查找此人的用户记录?我会匹配什么领域呢?

How can I use this presumed key to find the user record for this person? What field would I match on?

推荐答案

如果我没记错的话,那是他们的专有名称,这意味着你可以使用它作为直接引用他们的个人资料

If I remember correctly, that is their Distinguished Name, which means you can use it as the direct reference to their profile

LDAP://CN=Doe, Jane E.,OU=Employees,OU=Users,OU=Detroit,OU=United States,DC=na,DC=gmc,DC=gmc,DC=com

我也觉得如果配置文件存在,它会返回该名称。如果它已被删除,那么我相信它运行某种形式的GUID(基于内存 - 这可能是不正确的)

I also think it will return that name if the profile exists. If it has been deleted then I believe it runs a GUID of some sort (based on memory - this might be incorrect)

更多推荐

查找在Active Directory用户的经理纪录

本文发布于:2023-11-09 03:23:04,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1571262.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:纪录   经理   用户   Active   Directory

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!