Configuration Example, Management

phpIPAM – Azure and SAML authentication

René Jorissen on May 7, 2020 2 Comments • Tags: #azure #phpipam #saml2

What is easier than using your Azure credentials to log in to your web applications like phpIPAM? My daily job is networking, like routing, switching, wireless, and Wi-Fi, so I had to puzzle when I had to configure SAML2 authentication between phpIPAM and our company Azure infrastructure. I couldn’t find a lot of information about the configuration, but I managed to get it done eventually.

The only thing that doesn’t seem to work is the mapping between a local user and the Azure user. Every successful authentication from Azure ends up by signing in with the default phpIPAM admin user. I can live with that (for now). To get the configuration done, you need to follow these steps:

  • Access the Azure portal via
  • Navigate to Azure Active Directory
  • Choose Enterprise Applications
  • Configure a New Application
  • Choose the option Non-gallery application
  • Configure a name for the application and choose Add

The next step is to configure the single sign on part of Azure.

  • Choose option 2. Set up single sign on from the above image
  • Edit the Basic SAML Configuration
  • Enter the following information (our phpIPAM URL is
    • Identifier (Entity ID):
    • Reply URL (Assertion Consumer Service URL):
  • Save the configuration

The next step involves downloading the SAML Signing Certificate and get the certificate fingerprint. You can download the certificate under 3 SAML Signing Certificate.

Download and save the Base64 certificate. I use OpenSSL and the following command to retrieve the fingerprint:

openssl x509 -in saml-cert.cer -fingerprint -sha256 -noout -text

You find the fingerprint at the end of the output. Save the fingerprint. The last piece of information is the links to Azure AD. Mine can be found below.

You have all the information to go ahead and configure the SAML connection in phpIPAM. The last step is to add users or groups to the Enterprise application. Choose Users and Groups from the menu and add the users or groups which are allowed to have access. We don’t have a premium subscription, so I can only add single users and no groups.

This is it for the Azure part. The next step is the phpIPAM configuration. Log in to your phpIPAM environment and go to the Authentication Methods in phpIPAM and create a new SAML2 Authentication. Enter all the information from the Azure portal into the correct fields.

Use the following information.

IDP issuerAzure AD Identifier
IDP login urlLogin URL
IDP logout urlLogout URL
IDP cert fingerprintOpenssl fingerprint

Add the SAML2 Authentication Method. The next step would be to create a local user in phpIPAM and associate the user with the SAML2 Authentication Method.

You are now ready to test your SAML integration. I now have the opportunity to log in with my Azure account, including MFA, to access the phpIPAM environment.

The following two tabs change content below.

René Jorissen

Co-owner and Solution Specialist at 4IP Solutions
René Jorissen works as Solution Specialist for 4IP in the Netherlands. Network Infrastructures are the primary focus. René works with equipment of multiple vendors, like Cisco, Aruba Networks, FortiNet, HP Networking, Juniper Networks, RSA SecurID, AeroHive, Microsoft and many more. René is Aruba Certified Edge Expert (ACEX #26), Aruba Certified Mobility Expert (ACMX #438), Aruba Certified ClearPass Expert (ACCX #725), Aruba Certified Design Expert (ACDX #760), CCNP R&S, FCNSP and Certified Ethical Hacker (CEF) certified. You can follow René on Twitter and LinkedIn.

Latest posts by René Jorissen (see all)

  1. Sebastian says:

    User mapping solution found at

    Preventing all SAML authenticated users mapping to Admin
    Returning to the Server’s terminal, we need to make a change to a file. Without this change, once SAML is set up, all users get mapped to Admin.

    Using nano, we edit the config.php file:

    sudo nano /var/etc/www/html/phpipam/config.php

    Search for a line that begins “ define(‘MAP_SAML_USER’ ” and change the value from true to false.

  2. Booch_fan says:

    eEasy peasy with your guidance,
    you are the bomb

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.