vb.net - 针对 AD 发送敏感信息

标签 vb.net security authentication active-directory

我正在开发 vb.net 2.0 应用程序,该应用程序通过将 LDAP 配置、用户名和密码发送到 DirectoryEntry 方法来根据 AD 检查用户凭据。 LDAP 在 web.config 文件中配置。 AppScan 结果显示登录请求不是通过 SSL 发送的,建议在发送敏感信息时始终使用 SSL 和 POST(正文)参数:

DirectoryEntry("LDAPPath"), txtUserName, txtPassword)

如何以安全的方式向 AD 发送此请求? 预先感谢您。

最佳答案

如果您将 DirectoryEntry 上的 AuthenticationType 设置为 AuthenticationTypes.SecureSocketsLayer,这应该开始通过 LDAPS 工作。

关于vb.net - 针对 AD 发送敏感信息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9980875/

相关文章:

c# - LINQ - 单运算符(operator)

vb.net - 覆盖 DataGridView Shift+Space

java - 从数字签名中获取公钥

php - 对数据库进行盐散列的最佳方法

php - 带有 mysql_num_rows 的 mysql 和 php 登录页面

authentication - 在 Symfony2 单元测试中处理身份验证

c# - 使用 IDbConnection/IDbTransaction 安全吗?

vb.net - 合并两个 XElement

html - 基于源的安全模型是什么意思?

c# - .NET WebApi HttpClient 不将 Windows 身份验证凭据发送到同一域