directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chengcheng...@pekall.com
Subject Feedback
Date Fri, 11 Oct 2013 12:02:08 GMT

1. connection.isAuthenticated()  this always returns true. I don't know how to return false.
 My code is here:
            BindRequest request = new BindRequestImpl();
            request.setName("cn=cc,cn=users,dc=xx,dc=com");
            request.setCredentials("aaabbbb123");
            request.setSimple(true);
            BindResponse response = connection.bind(request);
            System.out.println("resultCode ==> " + response.getLdapResult().getResultCode());
            System.out.println("isConnect ==>  " + connection.isConnected());
            System.out.println("isAuthenticated ==>  " + connection.isAuthenticated());

2. The guide-doc has many spelling errors, like "the" is spelled to "hte".

3. The version is not correct. For example:

public void testAnonymousBindRequest() throws Exception
{
    BindResponse bindResponse = connection.bind();  // Cannot compile success. Need to change
to my code in problem 1.

    assertNotNull( bindResponse );
    assertEquals( ResultCodeEnum.SUCCESS, bindResponse.getLdapResult().getResultCode() );
    assertTrue( connection.isAuthenticated() );
}


Wishes your feedback.



Best Regards~


Mime
View raw message