Solved

How to backup active directory image?

Posted on 2015-01-07
9
241 Views
Last Modified: 2015-01-21
I need run some scripts to extend active directory schema. it was provided to me by Oracle support as follows. This is the most important step for this new Oracle EUS project. Before I run the script, I would like to backup my active directory schema, it's a windows 2003 domain level, how could I do it.

Below is the action plan provided by Oracle Support:


1.      Make a back-up copy of your Active Directory image. The schema extensions inside of Active Directory are permanent and cannot be canceled. The back-up image enables you to restore all your changes if required.
2.      Execute the following command to load the Enterprise User Security required schema, ExtendAD, into Active Directory using the Java classes included in Oracle Unified Directory.
The ExtendAD file is located in the $ORACLE_HOME/config/EUS/ActiveDirectory/ directory (Unix) or ORACLE_HOME\config\EUS\ActiveDirectory\ directory (Windows). You can use the java executable in the ORACLE_HOME/jdk/bin directory.
java ExtendAD -h Active_Directory_Host_Name -p Active_Directory_Port
-D Active_Directory_Admin_DN -w Active_Directory_Admin_Password
–AD Active_Directory_Domain_DN -commonattr
Example:
java ExtendAD -h myhost -p 389 -D cn=administrator,cn=users,dc=example,dc=com -w <pwd> -AD dc=example,dc=com -commonattr
3.      Install the Oracle Unified Directory Password Change Notification plug-in, oidpwdcn.dll, by performing the following steps:
1.      Complete the following depending on your Windows:
Windows 32-bit
Copy OUD_HOME\config\EUS\ActiveDirectory\win\oidpwdcn.dll file to the Active Directory WINDOWS\system32 directory.
Windows 64-bit
Copy OUD_HOME\config\EUS\ActiveDirectory\win64\oidpwdcn.dll file to the Active Directory WINDOWS\system64 directory.
2.      Use regedt32 or regedt64 to edit the registry and enable the oidpwdcn.dll. Start regedt32 by entering regedt32 at the command prompt.
3.      Add oidpwdcn to the end of the Notification Packages entry in the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\ registry, for example:
4.      RASSFM
5.      KDCSVC
6.      WDIGEST
7.      scecli
8.      oidpwdcn
This enables the password DLL and populates orclCommonAttribute attribute with the password verifier required by EUS.
9.      Restart the Active Directory system after making these changes.
0
Comment
Question by:Jason Yu
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
  • +2
9 Comments
 
LVL 3

Accepted Solution

by:
Bahloul earned 215 total points
ID: 40536923
Schema updates are a one way function. You can only add new schema to AD, you can never delete anything. For this reason you should always carefully evaluate alternatives when software requires schema extensions or updates; so its very important to back A.D ntds system stat and verify this backup

Find the below article for A.D backup
http://technet.microsoft.com/en-us/library/cc787254(v=ws.10).aspx

Bahloul
0
 

Author Comment

by:Jason Yu
ID: 40536965
Hi, Bahloul

I feel the same way. I don't feel safe to extend the schema. However, this project was pending on our system admins team hand. The Oracle DBA team insist us to expand the schema since they need implement this new Oracle product call "EUS" (enterprise user security). I have no way but move forward.

I have cloned one DC to a test env and began to test the expending script. At the same time, I want to backup the schema.

I will read your article and give you an update.

Thanks.
0
 
LVL 3

Assisted Solution

by:Bahloul
Bahloul earned 215 total points
ID: 40536971
Schema is already included in system state backup also clone is good choice with system state .

Bahloul.
0
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

 
LVL 5

Assisted Solution

by:Shibu Kuttan
Shibu Kuttan earned 72 total points
ID: 40537375
Take a System state backup and proceed to perform the steps which provided by Oracle support team.

If anything going wrong in the activity you can get your old schema by restoring Active Directory
For restoring Active Directory you need to go DSRM (Directory Services Restore Mode) and restore your system state backup.

It is recommended you perform this activity in your test environment first before implement the production.
0
 
LVL 53

Assisted Solution

by:Will Szymkowski
Will Szymkowski earned 142 total points
ID: 40538273
Backing up the Active Directory System State is the best method of action. Do not use a clone to recover a Domain Controller. This will cause a lot of issues if doing so. The USN will be all out of whack and replication will not work properly.

Schema updates for Microsoft Products are typically bulletproof (i still personally like to test them) but I am always hesitant with 3rd party schema modifications. Does Oracle have another method like a LDS instance or something less invasive?

As already stated if you perform the schema modification you cannot turn back easily, even with system state backup there is some work involved to get it back to where it was.

Will.
0
 
LVL 3

Assisted Solution

by:Bahloul
Bahloul earned 215 total points
ID: 40538500
Cloning works good but you must backup any other integrated services with A.D.

Bahloul.
0
 
LVL 20

Assisted Solution

by:compdigit44
compdigit44 earned 71 total points
ID: 40545613
Just out of curiosity do you know what extensions the schema update is adding? The only reason I am asking is if a newer domain function level like 2008, 2008 r2, 2012 would add the need functionality...

Just thinking out loud
0
 

Author Comment

by:Jason Yu
ID: 40545673
It's a function for Oracle EUS interfacing with AC. I don't know if this is the info for your question, I will check the detail and update you later.
0
 
LVL 53

Assisted Solution

by:Will Szymkowski
Will Szymkowski earned 142 total points
ID: 40545704
Do not use a cloned image of your DC unless you have a DC that is running server 2012 which holds the PDC role and your cloned DC also needs to be running server 2012. You only use a DC image in eariler versions when all of your DC's have been compromized (virus/corrupt database). You would then restore the single DC image and then from there add other DC's using dcpromo.  If you restore an entire DC image FSMO holder or not it will mess up the replication and USN (Update Sequence Numbers) for replication.

Will.
0

Featured Post

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows the method of using the Resultant Set of Policy Tool to locate Group Policy that applies a particular setting.
Recently, Microsoft released a best-practice guide for securing Active Directory. It's a whopping 300+ pages long. Those of us tasked with securing our company’s databases and systems would, ideally, have time to devote to learning the ins and outs…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question