|
|
|
Снова про ActiveDirectory
|
|||
|---|---|---|---|
|
#18+
Делаю следующее: entryPC = new System.DirectoryServices.DirectoryEntry(); entryPC.Path = "LDAP://CN=домен,DC=com"; searcherPC = new System.DirectoryServices.DirectorySearcher(entryPC); searcherPC.PropertyNamesOnly = true; searcherPC.PropertiesToLoad.Add("givenName"); // имя Console.WriteLine(entryPC.Properties["givenName"].Value.ToString() + ";"); вначале ошибок не выдает, но потом сообщает An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in system.directoryservices.dll Additional information: Сервер возвратил ссылку подскажите что делаю не так и как мне вытащить именя пользователей из ActiveDirectory? Заранее спасибо ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 24.02.2005, 10:52 |
|
||
|
|

start [/forum/topic.php?fid=18&msg=32930631&tid=1394467]: |
0ms |
get settings: |
10ms |
get forum list: |
19ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
180ms |
get topic data: |
10ms |
get forum data: |
3ms |
get page messages: |
36ms |
get tp. blocked users: |
1ms |
| others: | 248ms |
| total: | 515ms |

| 0 / 0 |
