directoryentry

    3熱度

    2回答

    我試圖修改配置文件/ home目錄/主驅動器設置爲指定中每個AD用戶, 下面我有一些非常基本的代碼,要達到這個而是拋出以下異常: 請求的操作不符合與對象的類關聯的一個或多個約束 。 有沒有人有這個問題,如果有的話,有辦法解決它? 謝謝。 DirectoryEntry Entry = new DirectoryEntry("LDAP://OU=Company,DC=corp,DC=Placehold

    5熱度

    4回答

    我在windowsPrincipal.getIdentity()。getSid()中將用戶的SID設置爲byte []。我如何從SID獲取活動目錄條目(DirectoryEntry)?

    -1熱度

    1回答

    登錄域名我有AD域名如MyDomain.com和Windows登錄域名如MD(MD = MYDOMAIN)。我怎樣才能使用DirectoryEntry.Properties收集AD域贏得登錄域名?

    1熱度

    2回答

    我想在我的winforms應用程序中將IUSR帳戶添加到該管理員組。下面的代碼失敗,因爲它無法找到「NT AUTHORITY \ IUSR」用戶: DirectoryEntry AD = new DirectoryEntry("WinNT://" + Environment.MachineName + ",computer"); DirectoryEntry administrators = A

    4熱度

    2回答

    我需要在AD DirectoryEntry中設置accountExpires屬性找不到簡單的答案。 發現一些信息; http://msdn.microsoft.com/en-us/library/system.directoryservices.accountmanagement.userprincipal.aspx http://social.msdn.microsoft.com/Forums/

    2熱度

    1回答

    我一直在敲我的頭幾個小時,試圖找出爲什麼這不會'工作。我找到了一個從AD組獲得用戶列表的例子,但是我無法使其工作。這裏是我一直在努力做的事情: DirectoryEntry de = new DirectoryEntry("LDAP://DC=" + domain + ",DC=com"); DirectorySearcher ds = new DirectorySearcher(de);//

    2熱度

    2回答

    我知道,我們可以得到這樣一個DirectoryEntry: string conPath = "LDAP://10.0.0.6/DC=wds,DC=gaga,DC=com"; string conUser = "administrator"; string conPwd = "Iampassword"; DirectoryEntry de = new DirectoryEntry(conPa

    1熱度

    1回答

    我需要訪問防火牆後面的遠程LDAP服務器(使用C#/ .NET)進行用戶驗證。 將遠程站點的防火牆設置爲允許特定IP地址,但它不是,而是服務器上的主IP地址,即默認情況下,到遠程LDAP服務器的連接將使用主IP。 你如何強制LDAP在.NET中使用輔助IP地址? 我特別使用System.DirectoryServices.DirectoryEntry和System.DirectoryService

    0熱度

    2回答

    作爲我公司的一個項目,我試圖用asp.net c#查詢兩個AD。本地和遠程。 當地人沒有給我任何麻煩,連接,查詢和每件事情都很好。 問題在於遠程問題(位於ISP位置的服務器場中)。 我收到「發生本地錯誤」錯誤。 連接的代碼,我寫道: DirectoryEntry directoryObject = new DirectoryEntry("LDAP://[SERVER IP ADDRESS]/OU=

    2熱度

    1回答

    我的目標是從遠程服務器獲取網站名稱列表。但我得到的例外: RPC服務器不可用。 下面是代碼: public List<string> GetWebSites(string serverIP) { List<string> names = new List<string>(); DirectoryEntry Services = new DirectoryEntry