index
int64
0
4.08k
text
stringlengths
34
4.9k
url
stringclasses
38 values
696
@RuleTemplate = "PassThroughClaims" @RuleName = "Pass through email" c:[Type == "http://schemas.xmlsoap.org/claims/EmailAddress"] => issue(claim = c); After the text file has been created, append the current issuance transform rules to the file with the following commands: $RPTrust = Get-ADFSRelyingPartyTrust Add-Cont...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
697
Discussion By default, AD FS performs verbose logging of all events related to the AD FS service. To lower the logging level of the AD FS service, you must set the AD FS LogLevel properties to the logging levels you wish to capture. Available log levels are FailureAu dits, SuccessAudits, Errors, Information, Warnings, ...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
698
CHAPTER 20 Microsoft Exchange Server 2013 20.0. Introduction Microsoft Exchange Server is Microsoft’s flagship messaging and collaboration server application. Exchange manages email messages through a proprietary MAPI protocol for rich use with Microsoft Outlook clients as well as the Internet standard protocols POP3, ...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
699
implementation of Active Directory. In addition, Exchange routing is now dependent on AD Site topology instead of its own routing engine, as was present in 2003. This deep integration also means that AD topology design should also consider Ex‐ change messaging requirements. The AD and Exchange relationship also makes a...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
700
Exchange Administration Center The EAC is a web-based management center that allows you to easily manage multiple Exchange servers. It is a graphical representation of underlying shell commands in the EMS. The EAC replaces the Exchange Management Console that existed in Exchange 2007 and Exchange 2010. The EAC allows y...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
701
Solution Using PowerShell PowerShell has a cmdlet that can list all the available cmdlets in PowerShell or the EMS, called Get-Command. A subset of this cmdlet, called Get-ExCommand, returns only the cmdlets added to PowerShell with the installation of the EMS. To get a list of all the EMS cmdlets, execute the followin...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
702
There is no separate mechanism to apply schema extensions or prepare the domain independent of installing the Exchange Server binaries when using the GUI. This makes the GUI a reasonable option for smaller shops; however, larger businesses with division of administrative duties will certainly want to use the command-li...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
703
This series of setup steps is sequential. The schema needs to be extended before AD is configured, and that must complete prior to the domains being prepared. Especially in a wide area topology, you should leave sufficient time in between steps to allow for AD replication between domain controllers. Discussion Microsof...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
704
centralized administration group responsible for the overall Active Directory forest from preparing the forest and domain(s) for Exchange. For a more in-depth discussion of the Exchange deployment requirements, consider‐ ations, and specifics of what the preparation processes do, please see “Planning and Deployment”. S...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
705
10. The next screen asks whether you would like to enable malware scanning. Malware scanning is enabled by default; if you would like to disable it, click Yes, and then click Next. 11. Setup works through a set of Readiness Checks. Click Install if there are no issues to correct. 12. Installation progress is shown in t...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
706
/DoNotStartTransport This switch prevents Exchange Server from automatically routing email when it first starts. This is usually used in case there is additional software to install or configure before Exchange is enabled. /CustomerFeedbackEnabled As we saw in the GUI, Microsoft is interested in making the product bett...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
707
Using PowerShell For small installations, PowerShell does not offer great benefits for running the setup. Setup.exe can be run from a classic command prompt or a PowerShell prompt. For larger organizations, especially with multiple simultaneous Exchange Server installations, PowerShell affords some opportunities to sim...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
708
Solution Using a command-line interface Exchange 2013 can be installed in unattended mode simply using the command-line setup options. Some of the setup.exe switches can be listed within a text file that in turn is called by the /AnswerFile parameter. The setup.exe switches that can reside in an unattended installation...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
709
Solution Using a graphical user interface 1. Follow the standard installation steps outlined in Recipe 20.5, except bypass the step that creates a new organization. 2. Select the defaults for the remainder of the installation and complete the wizard. Using a command-line interface Setup.exe provides a switch to select ...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
710
Solution Using a graphical user interface 1. Launch the Services management console (services.msc). 2. Locate the services that begin with “Microsoft Exchange.” 3. Right-click the service and select the appropriate action. Using a command-line interface To start a service using the command line, issue the following com...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
711
Different servers could be running a combination of different services based on the complexity of the environment and the specific function of the server. Not all Exchange servers will run all Exchange services. For the long list of Exchange Server services, see Table 20-1. Table 20-1. Exchange services Exchange servic...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
712
Exchange service Description Mailbox Transport Submission (MSExchangeSubmission) Runs on Mailbox servers and processes messages by converting from MAPI to MIME, and then relays them to the hub transport server. Throttling (MSExchangeThrottling) Limits the rate of user operations that could affect Exchange performance. ...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
713
Using PowerShell This is one of those tasks that is simple on the surface but makes significant changes beneath. PowerShell and Exchange Server reduce mail-enabling an existing user to a simple one-line cmdlet: Enable-MailUser -Identity "<user_ID_parameter>" -Alias "<Alias_Name>"↵ -ExternalEmailAddress "<SMTP:proxy_SMT...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
714
Disable-MailUser -Identity "<user_ID_parameter>" An example of the cmdlet might look like this: Disable-MailUser -Identity "Elias Mereb" or: Disable-MailUser "emereb@widetechconsulting.com" The -Identity parameter can use the Distinguished Name, the User Principal Name, the Domain\Account name, the GUID, or other ident...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
715
3. Enter a unique alias for the mailbox. 4. Select whether this is a new user or whether to add a mailbox for an existing Active Directory user. 5. If enabling a mailbox for an existing user, click Browse and select the user. Click OK and then Save. 6. If creating a new user, click the “new user” radio button. 7. Compl...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
716
When you create a mailbox for a user, in the background, the specific changes occur on the user object in Active Directory and include changes to the following attributes: • mDBUseDefaults • msExchUserAccountControl • homeMTA • msExchHomeServerName • homeMDB • mailNickname • msExchMailboxGuid • msExchMailboxSecurityDes...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
717
Solution Using a graphical user interface 1. Sign in to the EAC by navigating to https://<CASServer>/ecp. 2. From the Recipient screen, select the user to mailbox-disable. 3. Click the arrow next to the trashcan icon and click Disable. 4. Select Yes to confirm. This process disconnects the mailbox from the user object ...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
718
20.13. Moving a Mailbox Problem You want to move a mailbox to a new database or server. Solution Using a graphical user interface 1. Sign in to the EAC by navigating to https://<CASServer>/ecp. 2. From the Recipients screen, select the mailbox that you want to configure. 3. From the right panel, scroll to the bottom, a...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
719
Get-Mailbox | Where {$._<Property> -eq "<Value>"} |↵ New-MoveRequest -TargetDatabase "<Database>" You can also assemble the mailboxes in an array that PowerShell can loop through using a foreach command. This works well if the array is loaded at the beginning of the script. If not, the mailboxes are then moved in seri...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
720
A mailbox move is an odd operation in terms of permissions. Logically, moving a mailbox is basically a combination of create and delete op‐ erations, which is something a typical Exchange administrator has per‐ missions to do. See MS KB 842033 for details of the permissions needed. Using a graphical user interface The ...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
721
quantifies mailbox size, item count, last logon time, and more. (See this recipe’s “Dis‐ cussion” for the list.) To get summary statistics for a specific server, run the following: Get-MailboxStatistics -Server <Server_name> This lists the mailboxes and their size and message counts on the server specified. Data is eas...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
722
Using PowerShell The Get-MailboxStatistics cmdlet is a powerful reporting resource. It can be used as a standalone command to review a snapshot of mailbox properties, or it can be used as a filter for other queries. The output can be saved on a regular basis to compare values over time and identify trends of how users ...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
723
Any of these output values can be used to filter another cmdlet or be saved to file or database for reporting over time. The LastLogonTime is valuable in identifying stale mailboxes that have not been archived and deleted. Be wary of the LastLogonTime if you have third-party software (such as archiving software) that l...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
724
An example of this command is as follows: Set-MailboxDatabase "DB01" -IssueWarningQuota "3GB" -ProhibitSendQuota "4GB"↵ -ProhibitSendReceiveQuota "5GB" To set the different quota levels on a mailbox, use the following command: Set-Mailbox "<MailboxAlias>" -UseDatabaseQuotaDefaults <$true|$False>↵ -IssueWarningQuota "<...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
725
20.16. Creating an Address List Problem You want to create an address list. Solution Using a graphical user interface 1. Sign in to the EAC by navigating to https://<CASServer>/ecp. 2. Navigate to Organization→Address lists. 3. Click the plus sign (+) to create a new address list. 4. Enter a name for the new list. 5. S...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
726
Update-AddressList -Identity "\Regions\Nevada" Discussion Address lists are special groupings of email accounts that allow users to quickly find specific email users that are part of some logical grouping in the GAL. In essence, they are a subset of the GAL. Exchange Server provides some precanned address lists and all...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
727
2. Navigate to Servers→Database Availability Groups. 3. Click the plus sign (+) to open the new DAG window. 4. Enter a name for the DAG. 5. If you would like a specific server to be the witness server, specify it in the Witness Server field; otherwise, leave it blank. 6. If you need to designate a specific directory fo...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
728
20.18. Creating a Mailbox Database Problem You want to create a mailbox database. Solution Using a graphical user interface 1. Sign in to the EAC by navigating to https://<CASServer>/ecp. 2. Navigate to Servers→Databases. 3. Click the plus sign (+) to add a new database. 4. Assign the mailbox database a relevant name. ...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
729
mount. Exchange Server allows for up to 50 databases with the Enterprise edition (this was reduced from a maximum of 100 databases in Exchange 2010). Mailbox databases are represented in Active Directory by the msExchPrivateMDB class. This class is not as simple as some of the other classes used by Exchange. In additio...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
730
See Also “Disable or Bypass Anti-Malware Scanning” 20.20. Enabling Message Tracking Problem You want to enable message tracking on Exchange Server. Solution Using a graphical user interface Message tracking in Exchange can be set on servers running with the Mailbox role installed. To enable message tracking on an Excha...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
731
MessageTrackingLogMaxDirectorySize Controlling the directory size where message tracking logs are stored can prevent unexpected drive space usage. MessageTrackingLogMaxFileSize The default file size for message tracking logs is 10 MB. To control the frequency of new logfiles and the total number of files, it may be ben...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
732
CHAPTER 21 Microsoft Forefront Identity Manager 21.0. Introduction Microsoft Forefront Identity Manager (FIM) is the successor to Microsoft Identity Life‐ cycle Manager (ILM). The core focus areas of FIM are managing policy, managing credentials, managing and provisioning users and groups, access control, and compli‐ a...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
733
• Databases — Microsoft SQL — Oracle — IBM DB2 • Email — Microsoft Exchange Server — Lotus Notes • Flat text files — DSML — LDIF — Attribute Value Pair — CSV — Delimited — Fixed width FIM is considered to be in a class of products known as metadirectory synchroniza‐ tion tools. This is in contrast to other products lik...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
734
Requirements for FIM 2010 R2 Each FIM component has a specific set of prerequisite software, with the high-level pieces listed here: Windows Server 2008 Standard or Enterprise Edition (x64) or Windows Server 2008 R2 Standard or Enterprise All of the FIM components rely on Windows Server 2008 at a minimum. SQL Server 20...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
735
The synchronization engine is an application that relies completely on SQL Server, and all data, code, rule sets, attribute flows, and consolidated data sets are stored within SQL tables (see Figure 21-1). Figure 21-1. FIM architecture Since FIM is a complex application and not something most AD administrators have exp...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
736
Delta imports (stage only) If the CD is capable of differentiating changes like AD is, you can ask the CD for objects that have changed since your last full import. The caveat here is that you always have to start with at least one error-free full import in order to get a delta import. You get data into FIM by “staging...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
737
thing because you can grab a copy of the data and then build and validate your rules against it without risking data corruption, access rights, or network traffic. Getting objects staged into the CS takes minutes to set up and is limited only by your rights to read the directory and the time it takes to iterate through...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
738
After using a full or delta import to stage data into the CS, we can then project those objects into the MV using a projection rule. Objects in a separate CS can be connected through an MV object through the join process, which allows for the synchronization of data between connec‐ ted objects. Now, projecting an objec...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
739
Figure 21-4. Joins The many faces of the connector Whenever you project a CS object into the MV, a connector is created. Of particular importance is the type of that connector—in this case it is considered a normal connec‐ tor. You can also create connectors of type explicit, and you can remove a connector by disconnec...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
740
State-based synchronization There are two basic types of Identity Management (IdM) products on the market today: state-based and event-based. FIM is a state-based product, which simply means that things happen when an object or attribute changes state. Where event-based systems are concerned, an event is generated base...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
741
We use full or delta imports to stage data into the CS, but we also do full or delta syncs to copy data between the CS and the MV. The im‐ portant thing to note is that while imports are always one-way (import, not export), synchronizations are always two-way (import and export). There is simply no way around this—if y...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
742
Management Agents The management agent (MA) is a set of processes comprising the native APIs of the product we are connecting to combined with a nice little GUI to configure it. All the stuff we talked about—imports and syncs, joins and projections, and connector filters —is part of the management agent itself. In fact...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
743
• Export The export operation is solely for exporting pending changes in the CS out to the CD. This is critical for actually sending the changes back to the directory. You should feel reassured to know that the product cannot automatically affect the CD simply by ma‐ nipulating objects in the MV or the CS. You must do ...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
744
Direct Flowing data from a CS attribute to an MV attribute of the same type (e.g., String/ String). The attribute names can be completely different, but you just want to flow the data over unaltered—for example, flow EIN into employeeID. Advanced There are three types of advanced flows: Extension Flows data from one or...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
745
MAs are used to connect natively to a CD; they define the objects in which you are interested, whether those objects should be filtered, how they are joined or projected, and what attribute flow rules exist between the CS and MV. You can create custom attributes to flow information into the MV through the Metaverse Des...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
746
Let’s walk through how FIM will synchronize the HR Database with Active Directory and define some of the specialized terms Microsoft uses to describe the process. The numbers in parentheses refer to the numbered points in the diagram. First, we will import or stage (1) records from the HR Database into the HR Database ...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
747
The FIM help file FIM comes with a very useful and complete help file. You can find it in the FIM Synchronization Service installation folder, typically at C:\Program Files\Microsoft Forefront Identity Manager\2010\Synchronization Service\UIShell\Helpfiles. The file is named mms.chm, and it contains general help for co...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
748
1. Open the Synchronization Service Manager. 2. Click the Management Agents button on the toolbar. 3. In the Actions pane on the right, click Create. 4. In the Create Management Agent Wizard, select SQL Server from the “Management Agent for” drop-down list. 5. Type HR Database into the Name text box. 6. Type a descript...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
749
Discussion Following these steps will create a SQL Server management agent. Associated with the MA is a namespace known as the connector space. FIM will store the data from the relevant columns of the database here and use them to provision, synchronize, and deprovision user accounts in Active Directory. Creating the S...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
750
9. In the Configure Directory Partitions pane on the right side: a. Select the domain(s) you wish to manage in the Select Directory Partitions field. b. Click the Containers button in the lower-right portion of the dialog box. c. In the Select Container dialog, select the containers you wish to manage. d. Click OK. e. ...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
751
• Advanced • Delete • Replicate directory changes • Create all child objects • Delete all child objects • List contents • Read all properties • Write all properties • Delete subtree • Read permissions • All validated writes A popular question that surfaces in the discussion boards has to do with why FIM doesn’t support...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
752
1. Open the Synchronization Service Manager. 2. Click the Metaverse Designer button on the toolbar. 3. In the Actions pane on the far-right side, click Configure Object Deletion Rule. 4. Select the “Delete metaverse object when connector from this management agent is disconnected” radio button and ensure that the SQL S...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
753
1. Open the Synchronization Service Manager. 2. Click the Management Agents button on the toolbar. 3. In the Management Agents pane, double-click the SQL Server database MA. 4. In the Management Agent Designer pane on the lefthand side, select Configure Attribute Flow. 5. Ensure that “person” is selected in the data so...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
754
from the first character of the first name prepended to the last name—you need an advanced flow. As a rule of thumb (and personal preference), it is generally better to do advanced flows to assemble data on the inbound flow so that the correct information is contributed to the metaverse. This approach scales better sin...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
755
9. In the Mapping Type section of the dialog, select Direct. 10. In the Flow Direction section of the dialog, select Export. 11. Click New. The new attribute mapping will appear in the attribute mapping list, with an arrow indicating that it is an export attribute flow. 12. Click OK. Discussion This will configure a si...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
756
21.6. Defining an Advanced Import Attribute Flow Problem You want to create an Active Directory username using the first and last names from a SQL Server database. Simple attribute-to-attribute mapping is not sufficient. You need to take partial strings from different attributes and combine them to form a new name. Sol...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
757
13. Notice that in the Type column in the upper pane, the newly created attribute map‐ ping is detailed as Rules-Extension. A rules extension is a unit of managed .NET code. 14. Select FirstName and LastName from the Data Source attribute mapping list. (Re‐ member to use the Ctrl key to select multiple attributes.) 15....
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
758
21.7. Implementing an Advanced Attribute Flow Rules Extension Problem You want to perform advanced attribute flow from a SQL Server database. Solution You’ve already defined an advanced attribute flow rule for the MA in the Identity Man‐ ager console. You now need to write the code and produce the DLL that implements t...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
759
This recipe assumes that you have already installed Visual Studio 2008 or later on the machine running FIM. If you are doing your development on another machine, you have two choices. You can map a drive to the FIM server and modify the code through the mapped drive, or you can copy the entire project to your develop‐ ...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
760
9. Edit this section to make the code look like this (the bold sections are new code that we typed in): Select Case FlowRuleName Case "uid"If Not csentry("Last Name").IsPresent Then Throw New↵ UnexpectedDataException("No Last Name!")End If If Not csentry("First Name").IsPresent Then Throw New↵ UnexpectedDataException(...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
761
16. In the lefthand pane of the Management Agent Designer, click Configure Exten‐ sions. 17. Click the Select button. 18. Select HR DatabaseExtension.dll and click OK. 19. Click OK to close Management Agent properties. 20. Close the Synchronization Service Manager. Discussion This code does some fairly simple string ma...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
762
4. In the Management Agent Designer pane on the lefthand side, select Configure Attribute Flow. 5. Ensure that “user” is selected in the data source object type drop-down list. 6. Ensure that “person” is selected in the metaverse object type drop-down list. 7. In the Mapping Type section of the dialog, select Advanced....
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
763
1. Open the Synchronization Service Manager. 2. Click the Management Agents button on the toolbar. 3. In the Management Agents pane, click the SQL Server MA. 4. In the Actions pane on the far-right side, click Configure Run Profiles. 5. In the Configure Run Profiles for “<MA Name>” dialog box, click New Profile. 6. In ...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
764
21.10. Loading Initial SQL Server Database Data into FIM 2010 R2 Using a Run Profile Problem With the MA and run profile created, you now want to load the data into FIM 2010 R2. Solution You need to execute the run profile to load the data (refer to (1) in Figure 21-6, which shows data being loaded from the SQL Server ...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
765
See Also Recipe 21.1; Recipe 21.9 for more on how this run profile was configured 21.11. Configuring a Run Profile to Load the Container Structure from Active Directory Problem Before you can provision and synchronize data in the AD connector space, you need to build the container structure in the connector space to re...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
766
Your partition name may be different. 10. Click OK. Figure 21-8. Configure Run Profiles dialog for the AD MA Discussion Three steps are required to get data into the AD MA connector space: 1. Create the MA. 2. Create the run profile. 3. Execute the run profile. In this recipe you created the run profile. When you creat...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
767
partition (Naming Context in AD terms, which will usually be after the domain NC) from which to load the container structure. A common mistake among FIM novices is to get “object does not have a parent” errors when running a synchronization step. This is because the container structure for Active Directory isn’t loaded...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
768
Discussion The first time you load the container structure into FIM, you need to use a full import step. Once the container structure is loaded, subsequent imports can use delta import steps, which in normal daily operations will be considerably faster to execute and will consume fewer resources on the FIM server, the ...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
769
• Mapping Group: 1 • Action: Project • Metaverse Object Type: person 8. Click OK. Discussion The synchronization process projects (or creates) metaverse objects that are joined to objects in the SQL Server MA connector space. When projected, FIM can provision new objects to the AD MA’s connector space. Hence, in our de...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
770
Solution There are three steps to provisioning: 1. Write a rules extension. 2. Configure a run profile. 3. Execute the run profile. In this recipe, you will write a Provisioning-Rules-Extension. FIM will help you with the initial project creation. Refer to (6) in Figure 21-6, which shows objects being pro‐ visioned fro...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
771
Throw New EntryPointNotImplementedException() End Sub 10. Modify it to contain the following code: Public Sub Provision(ByVal mventry As MVEntry) Implements ↵ IMVSynchronization.Provision Dim container As String Dim rdn As String Dim ADMA As ConnectedMA Dim numConnectors As Integer Dim myConnector As CSEntry Di...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
772
14. Open the Synchronization Service Manager. 15. From the menu select Tools→Options. 16. In the Options dialog, click Browse. 17. Select MVExtension.dll and click OK to close the Options dialog. Discussion Because you can use any .NET programming language, FIM is very flexible in a multi‐ team environment. As with man...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
773
2. Click the Management Agents button on the toolbar. 3. In the Management Agents pane, click the SQL Server MA. 4. In the Actions pane on the far-right side, click Configure Run Profiles. 5. In the Configure Run Profiles dialog, click New Profile. 6. In the Name text box, type Full Synchronization and then click Next....
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
774
Discussion There are two types of synchronization run profiles: full and delta. A full synchroniza‐ tion will process every object in the connector space. This is obviously necessary when it is the very first synchronization on the data. But in normal daily operations, you only want to perform delta synchronization ste...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
775
7. Notice that in the Synchronization Statistics pane in the bottom-lefthand corner, statistics showing the number of projections and provisioned entries are displayed. If you click one of the hyperlinks, you can navigate to the information that was projected and provisioned. Discussion Inbound attribute flow is proces...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
776
7. Ensure that Export is selected in the Type drop-down list and then click Next. 8. Ensure that the correct domain partition is showing in the Partition drop-down list and then click Finish. 9. Click New Step. 10. In the Configure Step dialog, ensure that Delta Import (Stage Only) is selected in the Type drop-down lis...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
777
Discussion We mentioned earlier that it is a good idea to name the run profiles you create exactly the same as the run profile steps; that is, a run profile of type Full Import (Stage Only) is named Full Import (Stage Only). The one exception to this general rule applies to export run profiles. When an export is comple...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
778
4. In the Actions pane on the far-right side, click Run. 5. In the Run Management Agent dialog, select Export and click OK. 6. You’ll have to be quick if there is only a small amount of data in the AD MA. Notice that the MA says “Running” in the State column of the Management Agents pane. 7. Notice that in the Synchron...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
779
Solution You need to create a run profile script: 1. Open the Synchronization Service Manager. 2. Click the Management Agents button on the toolbar. 3. In the Management Agents pane, click the SQL Server MA. 4. In the Actions pane on the far-right side, click Configure Run Profiles. 5. In the Configure Run Profiles dia...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
780
21.20. Creating a Controlling Script Problem You want a self-contained script that controls an entire sequence of operations; for example, import the SQL Server database records, synchronize, and then export to AD. Solution Before you start this recipe, you may want to make sure you have the GroupPopulator Sync.cmd and...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
781
3. In this case, insert the SQL Server MA name and domain FQDN where appropriate. This example also shows Full Import (Stage Only), which is the name of the run profile. If you named the steps differently, replace them with the appropriate name here. 4. Save the file with a .cmd file extension. 5. Close Notepad. 6. Ope...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
782
dim profile dim verbosemode dim wmiLocator dim wmiService dim managementagent dim server dim username dim password '----------------------------------------- rescode = ParamExists("/?") if rescode = true then call DisplayUsage verbosemode = ParamExists("/v") managementagentName = ParamValue("/m") if managementagentName...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
783
if err.number <> 0 then wscript.echo "%Error: Cannot connect to MMS WMI Service <" ↵ & err.Description & ">" wscript.quit(-1) end if if verbosemode then wscript.Echo "%Info: Getting MMS Management Agent↵ via WMI" Set managementagent = wmiService.Get( " MIIS_ManagementAgent.Name='" & _ managementagentName & "'") if ...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
784
Dim Arguments '* Arguments from the command-line command Dim NumberofArguments '* Number of arguments from the command-line Dim ArgumentArray '* Array to store arguments from command-line Dim TemporaryString '* Utility string '* Initialize Return Value to e the Empty String ParamValue = "" '* If no ParameterName is ...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
785
ParamExists = false '* If no ParameterName is passed into the function exit if ParameterName = "" then exit function '* Check if Parameter is in the Arguments and return the value Set Arguments = WScript.Arguments NumberofArguments = Arguments.Count - 1 For i=0 to NumberofArguments TemporaryString = Arguments(i...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
786
21.21. Enabling Directory Synchronization from Active Directory to the HR Database Problem You want AD to become the authoritative source for the telephoneNumber attribute of Active Directory users. Solution You need to configure both the import attribute flow from the AD MA connector space to the metaverse, as well as...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
787
19. Ensure that “person” is selected in the data source object type drop-down list. 20. Ensure that “person” is selected in the metaverse object type drop-down list. 21. In the data source object type attribute list, select “telephoneNumber.” This assumes that the SQL Server database contains a field called “telephoneN...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
788
Solution Configure a run profile that combines import and synchronization as demonstrated in this recipe, and then execute it (see Recipe 21.23): 1. Open the Synchronization Service Manager. 2. Click the Management Agents button on the toolbar. 3. In the Management Agents pane, click the AD MA. 4. In the Actions pane o...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
789
Figure 21-12. Dialog showing Delta Import and Delta Synchronization run profile add‐ ed to the existing AD MA run profiles Discussion Because a previous import step was completed in an earlier recipe, you can use the combined Delta Import and Delta Synchronization step so that FIM imports and syn‐ chronizes changes tha...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
790
See Also Recipe 21.17; Recipe 21.23 for how to use the run profile configured in this recipe 21.23. Loading telephoneNumber Changes from AD into FIM Using a Delta Import/Delta Sync Run Profile Problem You need to pull the data from AD into FIM. Solution With the MA and run profile created, you can now load telephoneNum...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
791
Figure 21-13. Run Step Warning dialog box 12. Notice that the Synchronization Statistics pane in the bottom-lefthand corner dis‐ plays statistics showing the number of updates and connectors with flow updates. If you click one of the hyperlinks, you can navigate to the information that was loaded. Discussion The Run St...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
792
See Also Recipe 21.1; Recipe 21.18 for exporting objects to AD using an export run profile, which contains information about the confirming import (a Delta Import [Stage Only] step type) 21.24. Exporting telephoneNumber Data to a SQL Server Database Problem You need to export the data from a SQL Server MA connector spa...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
793
Figure 21-14. Export Run Profile added to the existing HR Database MA run pro‐ files 13. Click OK. Discussion You had to select Full Import (Stage Only) for the confirming import step in this run profile because the SQL Server MA hasn’t been configured to provide deltas. See Also Recipe 21.17 for similarities in how a ...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
794
Solution You need to execute the run profile (refer to (12) in Figure 21-6, which shows the telephoneNumber data being exported to a SQL Server database): 1. Open the Synchronization Service Manager. 2. Click the Management Agents button on the toolbar. 3. In the Management Agents pane, click the SQL Server MA. 4. In t...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf
795
3. In the Management Agents pane, click the MA you wish to search. 4. In the Actions pane on the far-right side, click Search Connector Space. 5. In the Search Connector Space dialog, click the Search button. You will notice records returned in the main search pane. If this is the SQL Server MA, the DN of each record w...
http://ter40.free.fr/ebooktmp/new/Active%20Directory%20Cookbook,%204th%20Edition.pdf