27.08.2007, 23:00 | #1 |
Участник
|
dax-lessons: Active directory in Axapta
Источник: http://DAX-Lessons.spaces.live.com/B...FCD1!122.entry
============== Introduction to Active Directory Active Directory is a directory service used to store information about the network resources across a domain. An Active Directory (AD) structure is a hierarchical framework of objects. The objects fall into three broad categories: resources (e.g. printers), services (e.g. e-mail) and users (accounts, or users and groups). The AD provides information on the objects, organizes the objects, controls access and sets security. Each object represents a single entity — whether a user, a computer, a printer, or a group — and its attributes. Certain objects can also be containers of other objects. An object is uniquely identified by its name and has a set of attributes — the characteristics and information that the object can contain — defined by a schema, which also determines the kind of objects that can be stored in the AD. Active Directory is an implementation of LDAP directory services by Microsoft for use primarily in Windows environments. The main purpose of Active Directory is to provide central authentication and authorization services for Windows based computers. Axapta 4.0 uses AD for the users. It checks for the user crendentials and the domain from the AD. Important Classes for AD : ADObject xAxaptauserManager xAxaptaUserdetails Here is the small example to get the user information from the AD. Copy the job and run the job by passing valid network alias. } Another way of validating the domain/ check whether user is enabled. This job gets the user related information only if domain is correct and user is enabled... static void validateDomain_getDetails(Args _args)How to create an active directory user: I have done it by writing piece of code in c#. I created a class library by name ADCreateUser and created user in AD by setting up the password through code in c#. Here i am providing the code below of ADCreateUser.cs Note: password is set in the code itself..please lookin to "SetPassword" code and set your password accordingly using System; Now all you have to do is to build the code and take the dll of the class library from Bin folder Copy paste the dll in to Axapta client\ Bin folder Now in the AOT->References -> Add new reference -> select the above pasted dll from the bin of Axapta client Thats it... simple...create a small job in Axapta to invoke the ADcreateUser method That's it. You are done with creating an user in AD Источник: http://DAX-Lessons.spaces.live.com/B...FCD1!122.entry
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору. |
|
|
Опции темы | Поиск в этой теме |
Опции просмотра | |
|