hunk.code_window: 	}
   	err = handler.addUserIntoTeams(user, ldapSettings)
   	if err != nil {
   		log.Printf("Warning: unable to automatically add user into teams: %s\n", err.Error())
   	}
  
hunk.labels: keep keep replace replace replace keep keep
hunk.after_edit: 	if settings.AuthenticationMethod == portainer.AuthenticationLDAP {
   		return handler.authenticateLDAP(rw, user, payload.Username, payload.Password, &settings.LDAPSettings)
  
hunk.file_path: api/http/handler/auth/authenticate.go
hunk.type: replace
file: import KubernetesResourceQuotaHelper from 'Kubernetes/helpers/resourceQuotaHelper';
  
  export const KubernetesPortainerResourceQuotaPrefix = 'portainer-rq-';
  export const KubernetesPortainerResourceQuotaCPULimit = 'limits.cpu';
  export const KubernetesPortainerResourceQuotaMemoryLimit = 'limits.memory';
  export const KubernetesPortainerResourceQuotaCPURequest = 'requests.cpu';
  export const KubernetesPortainerResourceQuotaMemoryRequest = 'requests.memory';
  
  export const KubernetesResourceQuotaDefaults = {
    CpuLimit: 0,
    MemoryLimit: 0,
  };
  
  export function KubernetesResourceQuota(namespace) {
    return {
      Id: '',
      Namespace: namespace ? namespace : '',
      Name: namespace ? KubernetesResourceQuotaHelper.generateResourceQuotaName(namespace) : '',
      CpuLimit: KubernetesResourceQuotaDefaults.CpuLimit,
      MemoryLimit: KubernetesResourceQuotaDefaults.MemoryLimit,
      CpuLimitUsed: KubernetesResourceQuotaDefaults.CpuLimit,
      MemoryLimitUsed: KubernetesResourceQuotaDefaults.MemoryLimit,
      Yaml: '',
      ResourcePoolName: '',
      ResourcePoolOwner: '',
    };
  }
  