hunk.code_window: 	if settings.AuthenticationMethod == portainer.AuthenticationLDAP {
   		if u == nil && settings.LDAPSettings.AutoCreateUsers {
   			return handler.authenticateLDAPAndCreateUser(w, payload.Username, payload.Password, &settings.LDAPSettings)
   		} else if u == nil && !settings.LDAPSettings.AutoCreateUsers {
   			return &httperror.HandlerError{http.StatusUnprocessableEntity, "Invalid credentials", httperrors.ErrUnauthorized}
   		}
  
hunk.labels: keep replace replace replace replace keep keep
hunk.after_edit: 		if settings.AuthenticationMethod == portainer.AuthenticationInternal ||
   			settings.AuthenticationMethod == portainer.AuthenticationOAuth ||
   			(settings.AuthenticationMethod == portainer.AuthenticationLDAP && !settings.LDAPSettings.AutoCreateUsers) {
  
hunk.file_path: api/http/handler/auth/authenticate.go
hunk.type: replace
file: angular.module('portainer.kubernetes').component('kubernetesApplicationsView', {
    templateUrl: './applications.html',
    controller: 'KubernetesApplicationsController',
    controllerAs: 'ctrl',
    bindings: {
      $transition$: '<',
      endpoint: '<',
    },
  });
  