Package org.apache.directory.ldap.client.api.message

Examples of org.apache.directory.ldap.client.api.message.BindResponse


        Set failedACLs = map.getReadACLs(new ActiveMQQueue("TEST.FOO"));
        assertEquals("set size: " + failedACLs, 2, failedACLs.size());

        LdapConnection connection = new LdapConnection( "localhost", 1024 );
        BindResponse bindResponse = connection.bind("uid=admin,ou=system", "secret");
        assertNotNull(bindResponse);
        assertEquals(ResultCodeEnum.SUCCESS, bindResponse.getLdapResult().getResultCode());
        assertTrue(connection.isAuthenticated());

        ModifyDnResponse resp = connection.rename(new DN("cn=TEST.FOO,ou=Queue,ou=Destination,ou=ActiveMQ,ou=system"),
                new RDN("cn=TEST.BAR"));
View Full Code Here


        Set failedACLs = map.getReadACLs(new ActiveMQQueue("TEST.FOO"));
        assertEquals("set size: " + failedACLs, 2, failedACLs.size());

        LdapConnection connection = new LdapConnection( "localhost", 1024 );
        BindResponse bindResponse = connection.bind("uid=admin,ou=system", "secret");
        assertNotNull(bindResponse);
        assertEquals(ResultCodeEnum.SUCCESS, bindResponse.getLdapResult().getResultCode());
        assertTrue(connection.isAuthenticated());

        DN dn = new DN("cn=read,cn=TEST.FOO,ou=Queue,ou=Destination,ou=ActiveMQ,ou=system");

        ModifyRequest request = new ModifyRequest(dn);
View Full Code Here

  public Boolean checkPassword(String userId, String password) {
    boolean credentialsValid = false;
    LdapConnection connection = new LdapConnection(connectionParams.getLdapServer(),
        connectionParams.getLdapPort());
    try {
      BindResponse response = connection.bind("uid=" + userId + "," + USER_GROUP, password);
      if(response.getLdapResult().getResultCode() == ResultCodeEnum.SUCCESS) {
        credentialsValid = true;
      }
    } catch (Exception e) {
      throw new ActivitiException("LDAP connection bind failure", e);
    }
View Full Code Here

TOP

Related Classes of org.apache.directory.ldap.client.api.message.BindResponse

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.