简体   繁体   中英

LdapContext vs dircontext in JNDI

Please explain the difference between using ldapcontext and dircontext in JNDI.

I found that there are JNDI samples using both ldapcontext and dircontext . Which should I use?

From JavaDocs about ldapcontext

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM