Skip to content

Zabbix Single Sign-On

Overview

This article describes the single sign-on configuration process between Zabbix 5.0+ and BambooCloud IDaaS based on the SAML protocol.

Authentication Configuration

Zabbix Configuration

For Zabbix configuration, please be sure to combine it with the SAML authentication section of the Zabbix official configuration instructions.

  1. Copy the BambooCloud IDaaS IDP certificate and save it as an idp.crt file, and store it under ui/conf/certs/ (if no SP certificate is generated, the SP certificate private key and certificate configuration can be ignored).

    To download BambooCloud IDaaS IDP metadata, visit https://{your_domain}/api/v1/saml2/idp/metadata.

    TIP

    You need to remove the newlines in the IDP certificate, otherwise Zabbix may prompt an error that the idp certificate cannot be found during SAML authentication.

  2. Configure SAML parameters in Zabbix.

    ParameterDescription
    Enable SAML authenticationEnable SAML authentication
    IDP entity IDBambooCloud IDaaS IDP EntityId
    SLO service URLOptional: BambooCloud IDaaS IDP logout URL
    Username attributeusername
    SP entity IDZabbix address
    SP name ID formatDefault
    SignAssertion signature, do not check
    EncryptAssertion encryption, do not check
    Case sensitive loginCase sensitive

    DANGER

    If you have upgraded from an old version to Zabbix 5.0, you also need to manually add the following lines to the Zabbix .conf.php file (located in the ui/conf/ directory), and then restart Zabbix.

    php
    // Used for SAML authentication.
    //$SSO['SP_KEY'] = 'conf/certs/sp.key'; // Path to your private key.
    //$SSO['SP_CERT'] = 'conf/certs/sp.crt'; // Path to your public key.
    $SSO['IDP_CERT'] = 'conf/certs/idp.crt'; // Path to IdP public key.
    $SSO['SETTINGS'] = [
        'idp' => [
            'certFingerprint' => '55551ecf41bee0a977b3bd1db1e9ae62f4f9df66',//IDP certificate fingerprint
           
    
        ],
    
    ];

    Online certificate fingerprint calculation address

BambooCloud IDaaS Configuration

  1. Add the pre-integrated application Zabbix.

  2. Configure authentication parameters.

  3. Mapping configuration - add mappings.

  4. Enter the application details, Authorization Management > Application Account, click the Add Account button, and select the authorized user.

    The account name must be consistent with the username (Alias) in Zabbix.

Login Verification

Access Zabbix, click Sign in with Single Sign-On (SAML), and you will be redirected to the BambooCloud IDaaS authentication page. Enter the username and password to log in to Zabbix.

BambooCloud IDaaS Open Platform