code: protected void setupAuthenticatedEnvironment(Hashtable<String, Object> env, String principal, String credentials) {
  		try {
  			authenticationStrategy.setupEnvironment(env, principal, credentials);
  		}
  		catch (NamingException e) {
  			throw LdapUtils.convertLdapException(e);
  		}
  	}
docs: Default implementation of setting the environment up to be authenticated.
  This method should typically NOT be overridden; any customization to the
  authentication mechanism should be managed by setting a different
  {@link DirContextAuthenticationStrategy} on this instance.
  
  @param env the environment to modify.
  @param principal the principal to authenticate with.
  @param credentials the credentials to authenticate with.
  @see DirContextAuthenticationStrategy
  @see #setAuthenticationStrategy(DirContextAuthenticationStrategy)