• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 355
  • Last Modified:

Rollback changes with LDIFDE (Urgent)

Hi there

I have executed a series of changes in AD and I want the same to be rolledback. I have used the following command: ldifde -i -f file_to_import.ldf

Inside that file some changes are as follow:

dn: CN=34weasdasd-de44-4fc3-a8e6-fda0fd23423491.3434.0023404,CN=SERVER1,CN=RpcServices,CN=System,DC=domain,DC=com
changetype: add
objectClass: top
objectClass: leaf
objectClass: connectionPoint
objectClass: rpcEntry
objectClass: rpcServerElement
rpcNsBindings: ncacn_ip_tcp:SERVER1
rpcNsInterfaceID: 3cc90b05-asd-4fc3-a8e6-asdasd.0234.0004
rpcNsTransferSyntax: 8a885d04-1ceb-11c9-9fe8-asdasdasd.0002.0000

Please I need help urgently
Thanks!
0
M7K
Asked:
M7K
  • 4
  • 2
1 Solution
 
TasmantCommented:
but do you know what were the values before?
else you need to do an authoritative restore of the objects you have modified
this guilde will help: http://technet.microsoft.com/en-us/library/cc779573%28WS.10%29.aspx
0
 
M7KAuthor Commented:
Hi Tasman
This changes were made on a new test domain, so we can remove them as they are made for a particular application.
In that case, should I use ADSI edit and look for the entries manually? or is it there any other easy way to achieve the removal of all the changes I made?

Thanks a mil.
0
 
TasmantCommented:
you can use LDIFDE as well as you did the first time.
to clear attributes:
------
dn: CN=34weasdasd-de44-4fc3-a8e6-fda0fd23423491.3434.0023404,CN=SERVER1,CN=RpcServices,CN=System,DC=domain,DC=com
changetype: modify
objectClass: top
objectClass: leaf
objectClass: connectionPoint
objectClass: rpcEntry
objectClass: rpcServerElement
delete: rpcNsBindings
delete: rpcNsInterfaceID
delete: rpcNsTransferSyntax
-

-----
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
M7KAuthor Commented:
Tasman thats great, one last question, should I remove the objectClass like objectClass: connectionPoint ? if so, how the syntax will be?

Thanks  very much
0
 
TasmantCommented:
This should work:

------
dn: CN=34weasdasd-de44-4fc3-a8e6-fda0fd23423491.3434.0023404,CN=SERVER1,CN=RpcServices,CN=System,DC=domain,DC=com
changetype: modify
delete: objectClass
objectClass: connectionPoint
delete: rpcNsBindings
delete: rpcNsInterfaceID
delete: rpcNsTransferSyntax
-

-----
0
 
TasmantCommented:
but i cannot answer to your question about removing or not the objectclass attribute.
but if you performed the "add", you should then clean it.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now