Migrate schema of the Active Directory

We assume that we need to import the client ad schema into our local active directory.We can use the LDIFDE command-line utility to import directory objects into Active Directory using LDAP Data Interchange Format (LDIF) files.

 

1). Create a backup of the schema master domain controller’s system state using the NTBACKUP utility.
2). ldifde -i -u -f addiff.ldf -j . -c "dc=x" "dc=local"


addiff.ldf file like following:

 


 

How to get the file addiff.ldf
w e assume that ad_schema.ldif is the target ad schema, ad_local.ldif is the local ad schema.
1). Export the ad_schema.ldif from the target active directory
ldifde -f c:/ad_schema.ldif  -d  “cn=schema, cn=configuration,dc=xxx”
2). Export the ad_local.ldif from the local active directory
ldifde –f c:/ad_local.ldif –d “cn=schema,cn=configuration,dc=local”
3). Runing AdSchemaAnalyzer.exe
4). Load target and local ldif flat file
5). Create addiff.ldf file

Notice
1). ad_schema.ldif file need to be process after exported from the target active directory, if not it’s maybe couldn’t loaded into adschemaanalyzer tool, we can use java or Perl, and other tools to do this procedure. For exmple: remove the line like “objectGUID:: Woiqp0gigkCDsZdVIqDq/w==”, “schemaIDGUID:: IIBFUmrK0BGv/wAA+ANnwQ==” and so on.

       2). addiff.ldf file maybe need to be process if an error has occurred in the program, the same as 1).

 

 

We can get the AdSchemaAnalyzer.exe from ADAM dirctory or download in the internet.

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值