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

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 02.10.2015, 20:14   #1  
Blog bot is offline
Blog bot
Участник
 
25,475 / 846 (79) +++++++
Регистрация: 28.10.2006
emeadaxsupport: Checking your MS Dynamics AX users against Active Directory domain resolution
Источник: http://blogs.msdn.com/b/axsupport/ar...esolution.aspx
==============

In this blog post I’d like to present the following X++ scipt which you may run as a job if you like. The purpose of this script is to go through all of your users in the MS Dynamics AX security system and check if their SID can be successfully resolved against your Active Directory (AD) domain.
In case there should be an issue you will receive an infolog message which lists the affected users.

Please take the following disclaimer into consideration here:

“Microsoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability or fitness for a particular purpose. This mail message assumes that you are familiar with the programming language that is being demonstrated and the tools that are used to create and debug procedures.

 

static void ADDomainResolution(Args _args)
{
  xAxaptaUserManager axUsrMgr;
  xAxaptaUserDetails axUsrDet;
  UserInfo userInfo;
  str userID;
  str domainName;
  str userSid;
  userAccountType accountType;


  axUsrMgr = new xAxaptaUserManager();
  while select * from userInfo where userInfo.enable == true
  {
    userID = userInfo.networkAlias;
    domainName = userInfo.networkDomain;
    accountType = userInfo.accountType;
    try
    {
      axUsrDet = axUsrMgr.getSIDFromName(userID, domainName, accountType);
    }
    catch(Exception::Error)
    {
      info(domainName + '\\' + userId + ': caused an exception');
    }
  }
}




Источник: http://blogs.msdn.com/b/axsupport/ar...esolution.aspx
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
crminthefield: Podcast and Overview: Microsoft Dynamics CRM 2011 Update Rollup 15 Blog bot Dynamics CRM: Blogs 1 10.02.2016 10:26
crminthefield: Podcast and Overview: Microsoft Dynamics CRM 2011 Update Rollup 17 Blog bot Dynamics CRM: Blogs 0 10.05.2014 06:30
DAX: Official Dynamics AX 2012 R2 Content (update) - Where is it, and how can you find out about updates? Blog bot DAX Blogs 0 03.12.2012 11:11
gatesasbait: Dynamics AX 2009 SSRS and SSAS Integration Tips Blog bot DAX Blogs 3 09.07.2009 13:07
axStart: Microsoft Dynamics AX 2009 Hot Topics Web Seminar Series Blog bot DAX Blogs 0 06.08.2008 12:05
Опции темы Поиск в этой теме
Поиск в этой теме:

Расширенный поиск
Опции просмотра

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

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

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 01:38.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.