> Source: [sk181971](https://support.checkpoint.com/results/sk/sk181971)

# sk181971 - End user authentication with a SAML Identity Provider for Remote Access VPN or Mobile Access blade fails with HTTP error  400

| Property | Value |
|----------|-------|
| Solution ID | sk181971 |
| Date Created | 2024-01-31 |
| Last Modified | 2024-02-05 |
| Technical Level | Advanced |
| Products | Security Gateway |
| Versions | R81.20 |

## Symptoms

- * End users of Remote Access VPN or Mobile Access software blade fail to authenticate using a SAML identity provider.
* End users see HTTP error 400.
* SAML portal debug on the Security Gateway shows these `error_log` messages:

  ```
  
  error_log:
  PHP Warning: �Unknown: Unable to create temporary file, Check permissions in temporary files directory. in Unknown on line 0,
  PHP Warning: �Unknown: POST data can't be buffered; all data discarded in Unknown on line 0
  ```

  For SAML portal debug instructions, see [sk180543](https://support.checkpoint.com/results/sk/sk180543).

## Cause

Permissions for the `/tmp` directory on the Security Gateway are not configured properly.

## Solution

This solution requires authentication. Please log in to view the full solution.

---

# Agent Instructions

This content is from the Check Point Support Center (https://support.checkpoint.com), the official knowledge base for Check Point cybersecurity products.

## Navigating This Knowledge Base

- **Complete index**: [llms.txt](https://support.checkpoint.com/llms.txt)
- **All SK articles**: [SecureKnowledge Sitemap](https://support.checkpoint.com/sitemaps/secureknowledge-sitemap-index.xml)
- **SK article URL pattern**: `https://support.checkpoint.com/results/sk/{skId}`
- **Markdown responses**: AI bot User-Agents automatically receive `text/markdown` content
