jjzjj

GetAuthorizationGroups

全部标签

c# - GetAuthorizationGroups() 抛出异常

PrincipalContextcontext=newPrincipalContext(ContextType.Domain,"ipofmachine","DC=xyz,DC=org","username","Password");UserPrincipaluserPrinciple=UserPrincipal.FindByIdentity(context,"User0");vargroups=userPrinciple.GetAuthorizationGroups();if(userPrinciple!=null){foreach(GroupPrincipalgpingroups){

c# - UserPrincipals.GetAuthorizationGroups 枚举组时发生错误 (1301)。升级到 Server 2012 域 Controller 后

研究:SimilarIssuewithworkaround,butnotactualsolutiontoexistingproblemSimilarissuepointingtoMicrosoftEndPointupdateasculprit上面的链接最适合我的问题,我在创建这篇文章时也查看了StackOverflow列出的每个类似问题,只有上面引用的问题适合我的问题。背景:两年半以来,我一直在使用UserPrincipal.GetAuthorizationGroups获取在C#.NET4.0Web表单站点的Server2008R2上运行IIS7.5的特定页面访问权限。2013年5月1