We continue to publish articles on backup and recovery after virtualized Active Directory failures. The previous article dealt with restoring the entire domain controller. However, system administrators are much more likely to encounter requests to restore individual Active Directory objects. Therefore, today we will consider the restoration of virtualized Active Directory objects from tombstone in systems with forest functional mode not higher than Windows Server 2008. In principle, now they are quite rare, but somewhere they are probably still used somewhere. Newer systems and features such as Active Directory Recycle Bin will be discussed in the next article.
So why is it so important to understand how systems of earlier versions function? Because modern logic and familiar functionality are not applicable in these cases. Before the advent of Windows Server 2008 R2, the life cycle of Active Directory objects was as follows:
Deleting an Active Directory object does not physically delete it — this is what happens:
And here the question arises: if the "tombstone" object is not physically deleted for some time, is it possible to restore it? In short - you can. Although such a mechanism for deleting objects was not intended for use as a temporary recycle bin, and deleted objects were not supposed to be restored, it is technically possible. Further I will tell how it can be made.
LDP ( LDP.exe ) —a time-tested program created by Active Directory developers. It looks pretty simple, but it has many features that allow you to fully manage Active Directory objects. Its disadvantage is that it takes a lot of time to master the functionality of the program, and the interface is not very modern and clear.
Note: This article is not a complete LDP guide. To learn how to work with the program, I recommend using the LDP manual .
So, to restore the “tombstone” object using LDP, you need to do the following:
The figure below shows a typical search example that I performed to find tombstone objects in my test domain:
In addition to the above, some features of such restoration of tombstone objects should be remembered. For example, some attributes (for example, group membership) that were deleted during the initial deletion will not be restored, which could potentially cause you problems.
As an alternative, you can use Veeam solutions, in particular, Veeam Explorer for Active Directory . This program will allow you to perform recovery much easier and faster. In doing so, it solves many of the problems of recovering tombstone objects — for example, losing the account password and many important attributes, such as the user's first and last name. However, this recovery option is not suitable for all scenarios - you first need to conduct preliminary training. Namely: to use Veeam Explorer for Active Directory , you must have a backup copy of the domain controller where the object was deleted. Today we are considering a virtualized controller whose backup was created using Veeam Backup & Replication.
So, if you are lucky enough to be the administrator of a virtual domain controller with the functional mode of a Windows Server 2003 or Windows Server 2008 domain forest, you can use the following procedure:
Restoring the old password will reduce the burden on the administrator and make the account recovery process completely invisible to the user. Imagine that at night, as a result of a failure, an entire unit (OU) with hundreds of users disappeared, and it needs to be restored. In the morning, upon entering the system, all employees will be asked to change their password, and they, of course, will start asking questions. Naturally, if possible, it is better to avoid such a situation.
Given the above, it is clear that Veeam Explorer for Microsoft Active Directory offers a relatively simple way to restore tombstone objects to Active Directory. If you are working in a suitable system, I recommend to pay attention to this product.
For today, perhaps, everything. In the next article in this series, we will compare the capabilities of the Active Directory recycle bin with other ways to restore objects.
Source: https://habr.com/ru/post/317174/
All Articles