The only non-destructive solution when attempting to merge with an existing Domain is to use a simple PowerShell script which performs a find-and-replace on a string.
For example:
It is necessary to synchronize a Domain called contoso.net with a Domain called contosolab.net
When creating the Mapping for OU's or Containers, choose the distinguished name attribute for the mapping under contoso.net and under the mapping for contosolab.net choose a PowerShell script.
A sample PowerShell script which would perform the necessary find-and-replace would look like this:
' *****************************************************************************
' THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
' EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
' WARRANTIES OF MERCHANTBILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE
'
' IF YOU WANT THIS FUNCTIONALITY TO BE CONDITIONALLY SUPPORTED,
' PLEASE CONTACT QUEST PROFESSIONAL SERVICES OR CUSTOM DEVELOPMENT.
' *****************************************************************************
$strDN = $srcObj["distinguishedName"]
$strDN = $strDN.ToUpper()
$strDN = $strDN.Replace("DC=CONTOSOLAB" ,"DC=CONTOSO" )
$strDN
© 2024 One Identity LLC. ALL RIGHTS RESERVED. Feedback Terms of Use Privacy Cookie Preference Center