AXForum  
Вернуться   AXForum > Microsoft Dynamics AX > DAX Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 16.02.2007, 13:20   #1  
Blog bot is offline
Blog bot
Участник
 
25,643 / 848 (80) +++++++
Регистрация: 28.10.2006
gl00mie: Dynamics AX and ADSI
Источник: http://gl00mie.blogspot.com/2006/07/...-and-adsi.html
==============

I've been using ADSI for a while during my work as a system administrator and I realy adore it but AX does lack Active Directory access facilities. There is only one built-in tool (as far as I know) to access AD from AX - that is ADObject class. But all it can do is find a user in the default domain and get some properties of it. To be precise it finds AD objects in the GetObject("LDAP://rootDSE").get("defaultNamingContext") using filter "(&(objectClass=user)(objectCategory=person)(sAMAccountName=%s))". AX supports COM objects (via IDispatch interface only), but if you try somehow to get an instance of IADs object you'll get an error so we should figure out how to get an IADs instance for a given LDAP path...
Unfortunately it looks like there is no way to do this whithout an external tool. I'm planning to write a small COM object that will make possible for an AX application to get instances of ADSI objects for a given LDAP path. Later I'll tell what I managed to do...


Источник: http://gl00mie.blogspot.com/2006/07/...-and-adsi.html
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
C# and AX Development: WCF interface for Dynamics AX Blog bot DAX Blogs 1 01.01.2009 14:55
gl00mie: Dynamics AX and ADSI Blog bot DAX Blogs 0 12.04.2007 16:10

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 05:54.