Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/337.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 为什么LDAP(将DirectoryEntry与AuthenticationTypes.SecureSocketLayer一起使用)需要凭据?_C#_Asp.net_Active Directory_Ldap - Fatal编程技术网

C# 为什么LDAP(将DirectoryEntry与AuthenticationTypes.SecureSocketLayer一起使用)需要凭据?

C# 为什么LDAP(将DirectoryEntry与AuthenticationTypes.SecureSocketLayer一起使用)需要凭据?,c#,asp.net,active-directory,ldap,C#,Asp.net,Active Directory,Ldap,尝试访问非RootDSE的active directory文件夹时,LDAP和LDAP(使用AuthenticationTypes.SecureSocketLayer)之间是否有任何不同 当我尝试在不使用AuthenticationTypes.SecureSocketLayer的情况下访问除RootDSE以外的active directory文件夹时,我可以这样做,但当我尝试使用AuthenticationTypes.SecureSocketLayer访问除RootDSE以外的active di

尝试访问非RootDSE的active directory文件夹时,LDAP和LDAP(使用
AuthenticationTypes.SecureSocketLayer
)之间是否有任何不同

当我尝试在不使用
AuthenticationTypes.SecureSocketLayer
的情况下访问除RootDSE以外的active directory文件夹时,我可以这样做,但当我尝试使用
AuthenticationTypes.SecureSocketLayer
访问除RootDSE以外的active directory文件夹时,我会收到“操作失败错误”这是由于绑定错误(缺少访问广告的用户名和密码)造成的


是否可以在不提供用户名和密码的情况下使用LDAPS(与使用LDAP相同)?

AuthenticationTypes。SecureSocketLayer强制对Active Directory进行客户端证书身份验证,这可能不是您想要的


改为使用AuthenticationTypes.Secure并将用户名/密码保留为空,以作为当前用户绑定到Active Directory。

谢谢您,但我确实需要使用AuthenticationTypes.SecureSocketLayer来保护ldap数据包。好的,抱歉。您可以添加以下身份验证标志:签名和密封。我尝试了。。但它仍然需要用户名和密码。您的active directory是否配置为允许在ldaps端口上进行匿名绑定?我不确定。如何将其配置为允许匿名绑定?我如何检查它是否已经配置为允许匿名绑定?是否使用LDAPS或LDAP协议与Active Directory的身份验证要求无关。LDAPS仅通过传输层加密确保数据传输的机密性-它不传递任何类型的身份验证信息。我认为有更多的原因导致这种行为。。。