authentication « jndi « Java Enterprise Q&A





1. In Websphere 6.x LDAP query using LdapContext is the transmission of credentials encrypted?    stackoverflow.com

In Websphere when you do an LDAP query using LdapContext are the transmission of credentials encrypted?

LdapContext ctx = new InitialLdapContext (env, null);
Lets say I make an LdapContext for a web app ...

2. How does java LoginContext.login() work?    stackoverflow.com

I have this code to create a configuration of a java client to connect to a JBoss application server:

System.setProperty( "java.security.auth.login.config", "auth.conf" );
LoginContext auth = new LoginContext( "myAuth", 
    ...

3. LDAP user password authentication using JNDI    stackoverflow.com

public static void main(String[] args)
{
    String INITCTX = "com.sun.jndi.ldap.LdapCtxFactory";
    String MY_HOST = "ldap://Localhost:1389";
    String MGR_DN = "cn=John,ou=Users,o=IT,dc=QuizPortal";
    String MGR_PW ...

4. Java LDAP Authentication using username and password    stackoverflow.com

I have a working code snippet by which i can authenticate a user by dn and password. My requirement is that the user will be entering his username(samaccountname) and i want ...

5. How can I enforce a LDAP bindRequest in java using JNDI?    stackoverflow.com

I have a JNDI-Connection to a LDAP server (Active Directory in this case). I also ctx.extendedOperation( new StartTlsRequest() ) to get a secure connection. On this connection I need to validate credentials. ...

6. ldap check username-password combination via java    stackoverflow.com

To test a username-password combination with ldap i do the following

  1. connect to an ldap server with a masteruser account
  2. search for the user to check
  3. open another connection by using InitialLdapContext and the ...