Vendor configuration recipe; review against your vendor version. This page is not evidence of fresh external interoperability. Release verification scope.

Integrations · SAML 2.0

Zabbix SSO

Configure SAML 2.0 SSO for Zabbix monitoring platform (≥ 6.0) with Clavex as the Identity Provider. Supports SP-initiated and IdP-initiated flows, and attribute-based role mapping.

Prerequisites

SAML library: Zabbix uses SimpleSAMLphp or the OneLogin/php-saml library. Ensure the PHP SAML extension is enabled: php -m | grep xml.

Step 1 — Clavex IdP Parameters

ParameterValue
IdP Entity IDhttps://id.acme.eu/acme/saml
SSO URL (HTTP-POST)https://id.acme.eu/acme/saml/sso
SLO URLhttps://id.acme.eu/acme/saml/slo
CertificateBase64 from /acme/saml/idp/metadata

Step 2 — Configure Zabbix SAML Authentication

  1. Log in to Zabbix → Administration → Authentication
  2. Select SAML tab
  3. Fill in:
    FieldValue
    IdP entity IDhttps://id.acme.eu/acme/saml
    SSO service URLhttps://id.acme.eu/acme/saml/sso
    SLO service URLhttps://id.acme.eu/acme/saml/slo
    Username attributeemail
    SP entity IDhttps://zabbix.acme.eu
    SP name ID formaturn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress
    Sign assertionsYes
    Sign AuthN requestsNo (or Yes with SP key)
    IdP certificatePaste the X.509 certificate from Clavex metadata
  4. Enable SAML

Step 3 — Register Zabbix as SP in Clavex

Register in the organization console. Create the matching OIDC application or downstream SAML application using its actual supported configuration. Copy the exact callback and required client credentials into the vendor configuration below. The management API uses an organization ID and typed request fields; follow the current OIDC guide and release API schema, rather than the obsolete client_name/scopes recipe. Keep credentials server-side.

Step 4 — User Provisioning

Zabbix does not auto-provision users from SAML by default. Create users in Zabbix with usernames matching the Clavex email/username:

bash — Zabbix API
# Get auth token $ TOKEN=$(curl -s -X POST https://zabbix.acme.eu/api_jsonrpc.php \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","method":"user.login","params":{"user":"Admin","password":"$ZBX_PW"},"id":1}' \ | jq -r .result)
# Create user (userdirectory: 0 = internal, use SAML user type) $ curl -s -X POST https://zabbix.acme.eu/api_jsonrpc.php \ -H 'Content-Type: application/json' \ -d "{\"jsonrpc\":\"2.0\",\"method\":\"user.create\",\"params\":{\"username\":\"alice@acme.eu\",\"name\":\"Alice\",\"surname\":\"Smith\",\"autologin\":0,\"lang\":\"en_US\",\"usrgrps\":[{\"usrgrpid\":\"8\"}]},\"auth\":\"$TOKEN\",\"id\":2}"
Zabbix 6.4+ User Directories: Zabbix 6.4 adds LDAP/SAML User Directories with auto-provisioning and group-to-role mapping. Configure via Administration → Authentication → User directories.

Troubleshooting

SymptomCauseFix
SAML button not shown SAML not enabled in Zabbix Administration → Authentication → SAML → Enable SAML authentication
No permissions for system access User exists but has no user group in Zabbix Add the user to a Zabbix user group with appropriate permissions
PHP SAML error in Zabbix logs Missing PHP extensions Install php-xml, php-mbstring, and php-openssl
Assertion validation fails IdP certificate not pasted correctly in Zabbix Paste only the Base64 content without -----BEGIN CERTIFICATE----- headers
Login loop Username attribute mismatch Ensure Username attribute in Zabbix matches the claim name sent by Clavex