java - JNDI 中的 LdapContext 与 dircontext

标签 java active-directory jndi

请解释在 JNDI 中使用 ldapcontextdircontext 之间的区别。

我发现有 JNDI 示例同时使用 ldapcontextdircontext。我应该使用哪个?

最佳答案

来自关于 ldapcontext 的 JavaDocs

This interface represents a context in which you can perform operations with LDAPv3-style controls and perform LDAPv3-style extended operations. For applications that do not require such controls or extended operations, the more generic javax.naming.directory.DirContext should be used instead.

关于java - JNDI 中的 LdapContext 与 dircontext,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15514143/

相关文章:

java - 无法使用 LDAP 连接从 Java 后端检索 Active Directory 用户 [LDAP : error code 32 – No Such Object]

java - 将 SMS 发送到非 native 端口 – 端口 0 除外

java - JFileChooser - 不浏览 Windows Server 2008 机器中的 'Mounted Drives'

java - 如何为我的整个应用程序设置默认手机字体

c# - 从 ADFS 声明授权

jndi - Logback 找不到外部属性文件资源

java - 方法 : Taking a text file and storing it in 2d array

php - 用于保护 LDAP 服务器的 ldap_bind 返回 "Unknown CA"

php - 通过仅具有登录凭据的 LDAP 和 PHP 获取用户可读的名称

java - 如何检查jndi绑定(bind)/解除绑定(bind)状态?