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: .status:not(:last-child) {
    margin-right: 1em;
  }
  
  .status .icon {
    padding: 0 !important;
    margin-right: 1ch;
    border-radius: 50%;
    background-color: grey;
    height: 10px;
    width: 10px;
    display: inline-block;
  }
  
  .status .error {
    background-color: #ae2323;
  }
  
  .status .acknowledged {
    background-color: #337ab7;
  }
  
  .status .ok {
    background-color: #23ae89;
  }
  