JNDI affords a trendy API for interacting with naming and directory offerings using a provider issuer interface (SPI), which has similarities to JDBC driving force. To connect to an LDAP server, you should acquire a reference to an item that implements the DirContext. In maximum packages, that is executed by means of using an InitialDirContext object that takes a Hashtable as an argument: Hashtable env = new Hashtable();
env.Placed(Context.INITIAL_CONTEXT_FACTORY, "com.Solar.Jndi.Ldap.LdapCtxFactory");
env.Positioned(Context.PROVIDER_URL, "ldap://localhost:387");
env.Put(Context.SECURITY_AUTHENTICATION, "easy");
env.Put(Context.SECURITY_PRINCIPAL, "cn=Directory Manager");
env.Put(Context.SECURITY_CREDENTIALS, "myPassword");
DirContext ctx = new InitialDirContext(env);
Posted Date:- 2021-09-16 07:47:59
What is WebLogic JNDI WLInitialContextFactory?
What is Jtatransactionmanager?
What does @transactional do in Java?
What is difference between JNDI and JDBC?
Explain the creation of a thread-safe singleton in Java using double-checked locking.
Compare overloading with overriding.
What Is Xfn And How Does This Relate To Jndi?
How Does Jndi Relate To Omg's Corba Standards For Naming?
Who Will Provide Implementations Of Jndi?
Where Is Jndi Being Used In The Java Platform?
What Is An Ldap Server ? And What Is It Used For In An Enterprise Environment ?
What Is A Jndi Initialcontext ?
Explain The Importance Of Jndi?
How can we delete one attribute in LDAP with LDIF?
Name the Three Ldap Client Utilities Or Applications?
What Is Xfn And How Does This Relate To Jndi?
What is XFN and how does this relate to JNDI?
How does JNDI relate to Microsoft's ADSI?
How does JNDI relate to OMG's CORBA standards for naming?
How Does Jndi Relate To Netscape's Java Ldap Api?
What Protocols Does Jndi Provide An Interface To?
Who Will Provide Implementations Of Jndi?
Where Is Jndi Being Used In The Java Platform?
So Where Does Jndi Fit Into This Ldap ?
Difference between JNDI list and listBindings method.
Why do we need JNDI when communication using LDAP is possible?
Explain what is a naming service in JNDI?
Tell me what do you know about LDAP?
What is the importance of JNDI?
What do you know about the directory service of JNDI?