如何监听活动目录的登录事件 [英] How to listen for logon event of active directory

查看:109
本文介绍了如何监听活动目录的登录事件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有人知道如何在c#

Does any one know how to listen for the login event of the active directory in c#

推荐答案

中监听活动目录的登录事件。在代码事件中没有事件,并且没有通知订阅。



您可以通过监视eventId 4624(登录)的安全事件日志来完成此操作,但您的代码必须监视所有日志服务于相关域的域控制器。您还需要服务器的管理员权限才能执行此操作。
There is no "event", as in code events, and no notification to subscribe to.

You could do this by monitoring the Security EventLog for eventId 4624 (Logon), but your code would have to be monitoring the logs of ALL the domain controllers servicing the domain in question. You'll also need admin permissions to the servers to do it.


这篇关于如何监听活动目录的登录事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆