@Ignore // The SASL Plain mechanism is ot supported
public void testSaslBindPLAIN() throws Exception
{
Dn userDn = new Dn( "uid=hnelson,ou=users,dc=example,dc=com" );
LdapConnection connection = new LdapNetworkConnection( "localhost", getLdapServer().getPort() );
BindRequest bindReq = new BindRequestImpl();
bindReq.setCredentials( "secret" );
bindReq.setName( userDn );
bindReq.setSaslMechanism( SupportedSaslMechanisms.PLAIN );
BindResponse resp = connection.bind( bindReq );
assertEquals( ResultCodeEnum.SUCCESS, resp.getLdapResult().getResultCode() );
Entry entry = connection.lookup( userDn );