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

Bypass host registration and password

Scheduled Pinned Locked Moved Solved
FOG Problems
4
8
1.8k
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.
  • G
    gozalitos
    last edited by gozalitos Nov 5, 2018, 5:21 AM Nov 5, 2018, 11:20 AM

    Hi all,

    I’m looking for a fully automatic solution to deploy one image on several machines.

    At this moment, the only thing that prevent it from my goal is the need to registrar every host, and enter the FOG credentials to deploy an image.

    There is any way to bypass those tow?
    I’m on the 1.5.4 version and the server is running on centos 7 machine.

    Thanks

    1 Reply Last reply Reply Quote 0
    • G
      george1421 Moderator
      last edited by george1421 Nov 5, 2018, 6:40 AM Nov 5, 2018, 12:34 PM

      Are you functioning as a PC repair shop where once you image a machine yo will never see it again or need to manage it with fog once its imaged?

      If so, on the FOG iPXE menu there is an option to Deploy Image. From that menu you can select any image in the catalog and push that out to the target computer registration in FOG is not required. You will have to enter a user ID and Password in that menu, but there is a way to bypass that password requirement too.

      1. Edit the fog.deployimage iPXE menu entry in the fog configurations menu.
      2. In the Parameter fields remove the login action.
      3. In the Parameters field replace
      param username ${username}
      param password ${password}
      

      with

      param username <username>
      param password <password>
      

      Where <username> and <password> are the correct for your installation of fog.
      4. Save the Changes
      5. Done

      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!

      1 Reply Last reply Reply Quote 0
      • G
        gozalitos
        last edited by Nov 5, 2018, 3:16 PM

        Thank you for your answer George, and for your blessing work here in the forum.
        Somehow it didn’t solved this issue.

        After the change, I manged to pass the user login screen to the images select screen, but right after I choose the image to deploy I’m getting a screen with the error “invalid login! … restart in 10sec”…

        Any other suggestions?

        Btw, I don’t need the option to mange the hosts after the deployment.

        Thanks

        G 1 Reply Last reply Nov 5, 2018, 3:20 PM Reply Quote 0
        • G
          george1421 Moderator @gozalitos
          last edited by Nov 5, 2018, 3:20 PM

          @gozalitos Hmmm that’s strange it should work.

          Here is another example: https://forums.fogproject.org/topic/4433/is-it-possible-to-remove-the-fog-quick-image-password/30

          This one is using the set command to assign the variable before the params command. Maybe I missed that one.

          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!

          G 1 Reply Last reply Nov 5, 2018, 4:24 PM Reply Quote 0
          • G
            gozalitos @george1421
            last edited by Nov 5, 2018, 4:24 PM

            @george1421 This one solved it.
            Thanks!

            1 Reply Last reply Reply Quote 0
            • D
              daniel4567
              last edited by Jun 7, 2023, 9:49 AM

              Hello i tried the approch

              original parameter file

              login
              params
              param mac0 ${net0/mac}
              param arch ${arch}
              param username ${username}
              param password ${password}
              param qihost 1
              isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
              isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme

              now i changed this to
              params
              param mac0 ${net0/mac}
              param arch ${arch}
              param username myusername
              param password mypassword
              param qihost 1
              isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
              isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme

              when i select deploy image now i see all the avalieble images
              but if i select on of those i got the a invalid login

              T 1 Reply Last reply Jun 7, 2023, 10:18 AM Reply Quote 0
              • T
                Tom Elliott @daniel4567
                last edited by Tom Elliott Jun 7, 2023, 4:19 AM Jun 7, 2023, 10:18 AM

                @daniel4567 The user and password should be set to that of a user who can actually login to the fog ui.

                You should follow the information here as well:
                https://forums.fogproject.org/topic/4433/is-it-possible-to-remove-the-fog-quick-image-password/22

                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
                • D
                  daniel4567
                  last edited by Jun 7, 2023, 2:21 PM

                  thanks @Tom-Elliott

                  worked for me in the fog.deployimage option
                  like this
                  params
                  param mac0 ${net0/mac}
                  param arch ${arch}
                  set username myuser
                  set password mypassword
                  param username ${username}
                  param password ${password}
                  param qihost 1
                  isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
                  isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme

                  The Problem with my previous approach was i tried do set this in one line
                  like

                  params
                  param mac0 ${net0/mac}
                  param arch ${arch}
                  param set username myuser
                  param set password mypassword
                  param qihost 1
                  isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
                  isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme

                  make obviously no sense when i look at it now 😉

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

                  258

                  Online

                  12.0k

                  Users

                  17.3k

                  Topics

                  155.2k

                  Posts
                  Copyright © 2012-2024 FOG Project