[英]Active Directory LDAP connection using System.DirectoryServices - The server is not operational
[英]Updating Logon Hours on a user using C# System.DirectoryServices (windows 2008 Active Directory library)
這是工作日的小時訪問表……我該怎么辦?
在Directory Programming.NET上檢查該線程-這是我到目前為止發現的最佳信息(並且我一直在尋找一段時間!)。
http://directoryprogramming.net/forums/thread/6194.aspx
在CodeProject上還有一篇文章-DirectoryEntry的LoginHours作為布爾數組 -在一定程度上顯示了如何使用DirectoryEntry
對象的登錄時間。
這是另一篇文章 ,顯示了如何在Java中設置登錄時間-可能也很有幫助,只是看看它們是如何做到的。
該討論提供了有關時區的提示https://social.msdn.microsoft.com/Forums/vstudio/en-US/e745e812-1644-491f-9034-39855cd16016/how-to-get-users-login-hours -from-active-directory-using-c?forum = csharpgeneral ,在其他答案中共享的有用鏈接中也提到了一點http://www.codeproject.com/KB/system/DirectoryEntry_LoginHours.aspx
在這里,您可以找到有關通過帳戶管理API訪問此內容的更多信息https://msdn.microsoft.com/zh-cn/library/system.directoryservices.accountmanagement.authenticableprincipal.permittedlogontimes(v=vs.110).aspx
有關使用該API的一些示例, 請參見https://www.codeproject.com/Articles/90142/Everything-in-Active-Directory-via-C-NET-3-5-Using,但尚未發現專門用於操作的API時間
如果您將經典API與LDAP樣式的屬性一起使用,則需要訪問https://msdn.microsoft.com/zh-cn/library/ms676846(v=vs.85).aspx和https中的 “ logonHours” ://social.technet.microsoft.com/wiki/contents/articles/6822.active-directory-attributes-in-the-aduc-gui-tool.aspx
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.