• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    LDAP authentication on PXE menu (with email support as username)

    Scheduled Pinned Locked Moved
    General
    3
    10
    835
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • F
      fritoss007
      last edited by

      Now there is a way to authenticate users with LDAP using attribute userPrincipalName filled with email address, I’m wondering if we can enable this authentication on PXE menu as well??

      1 Reply Last reply Reply Quote 0
      • Tom ElliottT
        Tom Elliott
        last edited by

        It should already work for ipxe authentication already

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

        1 Reply Last reply Reply Quote 0
        • F
          fritoss007
          last edited by

          I must admit I have a complexe password with non alphanumeric characters (Active Directory Policy), can this be this ?

          Tom ElliottT 1 Reply Last reply Reply Quote 0
          • Tom ElliottT
            Tom Elliott @fritoss007
            last edited by

            @fritoss007 I guess i’m not understanding.

            iPXE should be able to take the same authentication as how you login to the GUI.

            I guess, what is being asked here is already answered.

            Are you saying you’ve tried logging in and it is not working?

            Are you 100% certain you’re entering the username and password correctly?

            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

            Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

            Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

            george1421G 1 Reply Last reply Reply Quote 0
            • Tom ElliottT
              Tom Elliott
              last edited by

              To add on:

              There’s 2 places that need the regex pattern updated within the User class: (The following are from the dev-branch, but should be relatively close for master branch as well)

              1. https://github.com/FOGProject/fogproject/blob/dev-branch/packages/web/lib/fog/user.class.php#L134
              2. https://github.com/FOGProject/fogproject/blob/dev-branch/packages/web/lib/fog/user.class.php#L223

              There’s 1 place that needs the regex pattern updated within the LDAP plugin ldap class.

              1. https://github.com/FOGProject/fogproject/blob/dev-branch/packages/web/lib/plugins/ldap/class/ldap.class.php#L264

              Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

              Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

              Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

              1 Reply Last reply Reply Quote 0
              • george1421G
                george1421 Moderator @Tom Elliott
                last edited by

                @Tom-Elliott said in LDAP authentication on PXE menu (with email support as username):

                iPXE should be able to take the same authentication as how you login to the GUI.

                Can you think of any non-web safe characters that might be passed that might not be escaped right by iPXE. Lets say the password had some reserved html characters in it like “ruBBer?ducks&15” If that was sent to the FOG server over a query string apache may get confused. I can’t say about a form/post method.

                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                Tom ElliottT 1 Reply Last reply Reply Quote 0
                • Tom ElliottT
                  Tom Elliott @george1421
                  last edited by

                  @george1421 Pretty sure that would not be the issue.

                  Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                  Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                  Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                  1 Reply Last reply Reply Quote 1
                  • F
                    fritoss007
                    last edited by

                    @Tom-Elliott @george1421 My bad, I’m so sorry! It’s a keyboard layout issue! Man I feel like a newbie right now! But in mydefence, As you can tell by my bad english I’m a frenchy from Canada :)…

                    So this bring that next question, how can I change the keyboard layout in the pxe menu ? and Should I start a new thread 🙂 ?

                    Tom ElliottT 1 Reply Last reply Reply Quote 0
                    • Tom ElliottT
                      Tom Elliott @fritoss007
                      last edited by

                      @fritoss007 https://forums.fogproject.org/topic/10851/change-keyboard-layout-in-fog-boot-menues/9
                      https://wiki.fogproject.org/wiki/index.php/Building_undionly.kpxe
                      https://wiki.fogproject.org/wiki/index.php/IPXE#Compile

                      These are just a couple rough examples.

                      While I used to build all these things quite regularly, I’ve been out of practice as of late and mostly just improving and fixing code as needed, and trying to help on the forums when I can.

                      Key mapping has to be incorporated during compilation, and imagine a binary being generated with all key maps possible? So we leave this to the admin.

                      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                      Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                      Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                      Tom ElliottT 1 Reply Last reply Reply Quote 1
                      • Tom ElliottT
                        Tom Elliott @Tom Elliott
                        last edited by Tom Elliott

                        @fritoss007 This may help too, as I believe @Sebastian-Roth has made this script native to the github fogproject code, and can be run at any time:
                        https://github.com/FOGProject/fogproject/blob/master/utils/FOGiPXE/buildipxe.sh

                        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                        1 Reply Last reply Reply Quote 0
                        • 1 / 1
                        • First post
                          Last post

                        156

                        Online

                        12.0k

                        Users

                        17.3k

                        Topics

                        155.2k

                        Posts
                        Copyright © 2012-2024 FOG Project