Active Directory 可以回滚吗?
我读过一些关于如何以编程方式与 Active Directory 交互的文章。但仍然存在一个问题,是否可以使用 Active Directory 回滚某种事务?
我读到,在有多个域控制器的情况下这是不可能的,因为它们似乎使用更新序列号 (USN) 相互更新,就像它们知道在一起通信时要查询什么 USN 或类似的东西,简而言之。有关详细信息,请阅读以下文章:
我的要求是能够执行:
- 创造;
- 更新;
- 删除;
- 选择。
OU,万一出现问题,我需要回滚到开始。好吧,你们都知道什么是交易了!
所以,我想看看我有什么选择。有人可以帮忙吗?
谢谢!
I have read a few articles about how to programmatically interacting with Active Directory. One question remains though, is it possible to rollback a transaction of some sort with Active Directory?
I have read that it is not possible in a context which you have several domain controllers as they seem to update each other with an update sequence number (USN) like they know what USN to query when communicating together or something like that, in short. For proper details, please read these articles:
- USN Rollback
- Considerations when hosting Active Directory domain controller in virtual hosting environments
My requirements are to be able to perform :
- Create;
- Update;
- Delete;
- Select.
Of OU, and in case something goes wrong, I need to rollback to the start. Well, you all know what a transaction is after all!
So, I wish to see what are my options. Anyone can help?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不可以。Active Directory 不支持事务。
请参阅:Active Directory 事务感知吗?
No. Active Directory does not support Transactions.
Please see: Is Active Directory transaction-aware?
您需要在代码中以手动方法执行此操作 -
读取所有更改的属性
更新
出了点问题
更新为原始值
这种方法有一些明显的危险,但应该是可能的
You would need to do this in a manual method within code -
Read all changing properties
Update
Something went wrong
Update to original values
There is some obvious danger in this method, but it should be possible