/** * Bind to the server using the SASL DIGEST-MD5 mechanism. * * @param userName The user name * @param credentials The user credentials * @return A LdapResponse containing the result * @throws LdapException if some error occurred */ public BindResponse bindSaslDigestMd5( String userName, String credentials ) throws LdapException { SaslDigestMd5Request request = new SaslDigestMd5Request(); request.setUsername( userName ); request.setCredentials( "secret" ); return bind( request ); }
/** * Bind to the server using the SASL DIGEST-MD5 mechanism. * * @param userName The user name * @param credentials The user credentials * @return A LdapResponse containing the result * @throws LdapException if some error occurred */ public BindResponse bindSaslDigestMd5( String userName, String credentials ) throws LdapException { SaslDigestMd5Request request = new SaslDigestMd5Request(); request.setUsername( userName ); request.setCredentials( "secret" ); return bind( request ); }
/** * Bind to the server using the SASL DIGEST-MD5 mechanism. * * @param userName The user name * @param credentials The user credentials * @return A LdapResponse containing the result * @throws LdapException if some error occurred */ public BindResponse bindSaslDigestMd5( String userName, String credentials ) throws LdapException { SaslDigestMd5Request request = new SaslDigestMd5Request(); request.setUsername( userName ); request.setCredentials( "secret" ); return bind( request ); }
request.setUsername(username);
digestMd5Request.setUsername( bindPrincipal ); digestMd5Request.setCredentials( bindPassword ); digestMd5Request.setRealmName( connection.getConnectionParameter().getSaslRealm() );