草庐IT

ContextOptions

全部标签

c# - 事件目录服务 : PrincipalContext -- What is the DN of a "container" object?

我目前正在尝试使用PrincipalContext类通过ActiveDirectory服务进行身份验证。我想让我的应用程序使用密封和SSL上下文对域进行身份验证。为此,我必须使用thefollowingconstructorofPrincipalContext(linktoMSDNpage):publicPrincipalContext(ContextTypecontextType,stringname,stringcontainer,ContextOptionsoptions)具体来说,我是这样使用构造函数的:PrincipalContextdomainContext=newPrin

c# - 事件目录服务 : PrincipalContext -- What is the DN of a "container" object?

我目前正在尝试使用PrincipalContext类通过ActiveDirectory服务进行身份验证。我想让我的应用程序使用密封和SSL上下文对域进行身份验证。为此,我必须使用thefollowingconstructorofPrincipalContext(linktoMSDNpage):publicPrincipalContext(ContextTypecontextType,stringname,stringcontainer,ContextOptionsoptions)具体来说,我是这样使用构造函数的:PrincipalContextdomainContext=newPrin