2

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

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"

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

4

3 に答える 3

2

私の記憶が正しければ、それは彼らの識別名です。これは、彼らのプロフィールへの直接の参照として使用できることを意味します

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

また、プロファイルが存在する場合はその名前が返されると思います。削除されている場合は、ある種の GUID を実行していると思います (メモリに基づく - これは正しくない可能性があります)。

于 2009-06-11T15:24:34.920 に答える
1

マネージャーのエントリは、マネージャーのバインディング文字列です。マネージャーの情報を返すオブジェクトにバインドすることで、Active Directory への要求にフィードバックできます。

于 2009-06-11T15:15:03.413 に答える