Ad Widget

Collapse

Struggling with JIT for Azure AD SAML (v 6.4)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • HB78
    Junior Member
    • Mar 2023
    • 4

    #1

    Struggling with JIT for Azure AD SAML (v 6.4)

    Hello,
    i quite beginning with zabbix during the last weeks and I struggle to put in place JIT provisionning with AzureAD SAML through an Enterprise App.
    The SAML part is working fine, i can logon with an existing username i created manually, fitting my UPN.
    Example [email protected]
    But if i start from nothing, enable & configure the JIT option , i should be able to login as [email protected] even if it is not existing.
    I don't know where to look at , i suppose an issue with my group mapping
    Click image for larger version

Name:	image.png
Views:	3577
Size:	9.9 KB
ID:	461780
    memberOf is the Group Claim custom i did :
    Click image for larger version

Name:	image.png
Views:	3287
Size:	29.3 KB
ID:	461781​​
  • smolki
    Junior Member
    • Feb 2023
    • 1

    #2
    I am also trying to run it in this environment. Without result.
    I am able to achieve authorization only with an already created user.
    JIT, does not work, we need support how to run the service in MS Azure.​

    Comment

    • YouDontKnowMe
      Junior Member
      • Apr 2023
      • 1

      #3
      I have the same problem.

      SAML authentication only works if a user is already provisioned in Zabbix.

      When I try to authenticate with JIT enabled, I'm getting the error​ "Incorrect user name or password or account is temporarily blocked".

      Click image for larger version

Name:	image.png
Views:	3309
Size:	10.0 KB
ID:	462530

      Comment

      • ro_bitussin
        Junior Member
        • Apr 2023
        • 2

        #4
        I was finally able to get this working. For my SAML setup, I used this guide from another post https://www.joostdeheer.nl/zabbix/Za...SO_AzureAD.pdf

        In Azure, I had to adjust the following settings in my group claim:
        • "Which Groups associated with the user should be returned in the claim?" > Set to "Groups assigned to the application"
        • "Source Attribute" > Set to "Cloud-only group display names"
        • Checked "Customize the name of the group claim" > Set to "memberOf"
        In Zabbix
        • Group Name Attribute > set to "memberOf"
        • User name Attribute > set to "username" (claim setup from the guide)
        • User Group Mapping, SAML group pattern > Matches group assigned to the application in Azure AD
        • Checked "Enable SCIM Provisioning"
        I would also verify that the user role has the correct privileges.



        Comment

        • HB78
          Junior Member
          • Mar 2023
          • 4

          #5
          Hi,
          Just to close the topic, JIT is just working great now , my issue was more on Azure Claims !
          I had to change the group Claim i made.

          From ro_bitbussin answer i simply adapted the choice to be : Security Groups + select SAMaccountname ( the default was Group ID which is reporting ... ID and not names !)
          My custom Name stayed as is ("memberOf")
          That permit me to have multiple groups like XYZ-Admins, XYZ-Viewer, etc and then play with User Group mapping
          Just need to be sure not to have overlaps : user can't be viewer and admin , I presume ; not sure what happen
          Click image for larger version

Name:	image.png
Views:	3196
Size:	50.7 KB
ID:	462920

          Comment

          • ltep
            Member
            • Nov 2022
            • 42

            #6
            Can someone share the PDF from https://www.joostdeheer.nl/zabbix/Za...SO_AzureAD.pdf​ ? The URL doesn't work anymore.

            Comment

            • polcape
              Junior Member
              • Jun 2023
              • 1

              #7
              Hi HB78,
              I have same issue.

              I can't configure provisioning on AzureAd side, it give me an error.

              Do you solve?

              Thanks

              Comment

              • gianlucas94
                Junior Member
                • Jun 2023
                • 1

                #8
                Hi there,
                In my case every user is being provisioned with their roles and groups but when they try to login into zabbix they get this message:
                Click image for larger version

Name:	image.png
Views:	3018
Size:	6.2 KB
ID:	465858

                And when I go back to the user list in Zabbix, the user that tried to login go to the group disabled.

                Someone can help me ?


                Thanks!

                Comment

                • andrebello87
                  Junior Member
                  • Feb 2021
                  • 1

                  #9
                  Hi guys,

                  I resolved my problem, was missing​ the to configure​ Group Claims in the Enterprise applications​​.
                  I customized the name of the group claim to groups, so we need to configure the same name in the front Zabbix Server. Group name attribute = groups

                  .Click image for larger version

Name:	Captura de Tela 2023-08-04 às 09.17.53.png
Views:	2873
Size:	66.1 KB
ID:	468349


                  Thanks


                  Comment

                  • MRedbourne
                    Senior Member
                    • Feb 2023
                    • 103

                    #10
                    Going to pile onto this thread. We're also having issues with the SCIM setup. I've tried a variety of configs for Provisioning/claims, but can't get this to work. Is anyone able to point me in the right direction?

                    Edit: I should say what's wrong. We can get the accounts provisioned, but Zabbix isn't mapping our roles and groups correctly. Even trying fully generalized wildcards (Eg: the match pattern is '*', we can get this to map anything.

                    We're on Zabbix 6.4.8 (planned upgrade to 6.4.11 after change board approves), RHEL 9.3 64 bit. Standard apache build with PHP and a ton of hardening applied (CSP, X-Frames, HSTS, Information Disclosure, etc).
                    Attached Files
                    Last edited by MRedbourne; 21-02-2024, 05:27.

                    Comment

                    Working...