简体   繁体   English

在.net应用程序中使用Active Directory安装程序时如何获取LastActivityDate

[英]How to get LastActivityDate when using Active Directory Setup in a .net application

I have a requirement to show a list of all users along with the Last Activity Date. 我需要显示所有用户的列表以及上次活动日期。 The application is .Net based. 该应用程序基于.Net。

I found the MemberShip class provides the Last Activity date. 我发现MemberShip类提供了上次活动日期。 However, this does not work when the MemberShip provider is ActiveDirectory Link to MSDN page because the ActiveDirectoryMemberShipUser does not implement the LastActivityDate property. 但是,当MemberShip提供程序是ActiveDirectory 链接到MSDN页面时,这将不起作用,因为ActiveDirectoryMemberShipUser没有实现LastActivityDate属性。

Is there any workaround or other way, I can get the LastActivityDate of the user in the application. 有任何解决方法或其他方法,我可以在应用程序中获取用户的LastActivityDate。

Thanks for any info 谢谢你的任何信息

The problem is that the AD does not maintain an accurate last logon time stamp so determining the last activity would require searching through the domain controllers Security Eventlog. 问题在于,AD不能维护准确的上次登录时间戳,因此确定上一个活动将需要搜索域控制器“安全事件日志”。

http://blogs.technet.com/askds/archive/2009/04/15/the-lastlogontimestamp-attribute-what-it-was-designed-for-and-how-it-works.aspx http://blogs.technet.com/askds/archive/2009/04/15/the-lastlogontimestamp-attribute-what-it-was-designed-for-and-how-it-works.aspx

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 C#asp.net MVC:何时更新LastActivityDate? - C# asp.net MVC: When to update LastActivityDate? 当在 Blazor 应用程序中使用 Azure Active Directory 时如何在 asp net core 3.1 中自定义注销页面 - How to customize sign out page in asp net core 3.1 when Azure Active Directory used in a Blazor application 使用Azure Active Directory-一个应用程序在本地和发布时登录 - Using Azure Active Directory - one application to login locally and when published 当IIS在服务帐户下运行时,如何在ASP.NET中获取当前的Active Directory用户 - How to get current Active Directory user in ASP.NET when IIS is running under a service account 如何使用c#从asp.net中的活动目录获取授权用户? - How to get authorized user from active directory in asp.net using c#? 使用C#.net应用程序访问活动目录中的不同域在本地计算机上工作,但在IIS服务器中托管时不能 - Access to different domain in active directory using C# .net application works in local machine but not when hosted in IIS server ASP.NET如何获取Active Directory中的组列表 - ASP.NET How to get List of Groups in Active Directory 如何使用 windows 应用程序为外部用户获取 azure 活动目录令牌 - how to get the azure active directory token for the externl user using the windows application 如何使用asp.net获取活动目录中用户的“最小密码使用期限”? - How can I get 'minimum password age' of user in active directory using asp.net? 获取.net应用程序的活动窗口 - Get Active Window of .net application
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM