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

    Advanced Login

    Scheduled Pinned Locked Moved
    FOG Problems
    2
    5
    764
    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.
    • S
      seppim
      last edited by

      Hello,

      I set the “fog.advancedlogin” to “All hosts”

      I set an own menu item to “Advanced Options”

      When I boot in the menu, I see the Advanced Menu item … he asking for a login.
      After login, he switch back to the main menu, which looks exactly same as before.

      Where is my mistake? I want display a menu item only after login.

      Thank you!

      1 Reply Last reply Reply Quote 0
      • S
        seppim
        last edited by

        [push]

        Maybe someone has in idea whats wrong?

        1 Reply Last reply Reply Quote 0
        • S
          Sebastian Roth Moderator
          last edited by Sebastian Roth

          @seppim said in Advanced Login:

          I want display a menu item only after login.

          If that is what you want to do you need to take a look at iPXE General Configuration -> Advanced Menu settings. Here you can define a custom iPXE script that is being called after the login.

          If you don’t have a text field for Advanced menu command then you need to disable your Adblock browser addon.

          I set the “fog.advancedlogin” to “All hosts”

          I think you need to switch that back to “Advanced Login Required”.

          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

          S 1 Reply Last reply Reply Quote 0
          • S
            seppim @Sebastian Roth
            last edited by

            @sebastian-roth Hello Sebastian,

            for my unterstanding:
            When I choose “Advanced menu” in PXE menu, I log in and get back to the menu and see the menu items which has “Advanced Login Required”.

            1. I enable Advanced Menu Login in iPXE General Configuration -> Advanced Menu settings:
              8f45bb27-c87c-4530-89a4-810e3d51b4ef-grafik.png
              now the menu item is displayed:
              2633148a-b3f4-420d-be6a-574bdcd52d27-grafik.png

            2. I login and hit enter, then this happen:
              8866bf04-1fdb-44b3-a4bc-912ae95ec181-grafik.png

            I guess I need to set the “Advanced menu command”? But why is this not out of the box working?

            Or did I misunderstood this feature?

            1 Reply Last reply Reply Quote 0
            • S
              Sebastian Roth Moderator
              last edited by

              @seppim said in Advanced Login:

              I guess I need to set the “Advanced menu command”? But why is this not out of the box working?

              Yes, you need to add some custom advanced menu that you want to see after the login. There is no default.

              Here is some example code you can start working on:

              menu
              item --gap -------------- iPXE advanced boot menu --------------
              item DBAN Boot and Nuke
              item SHELL iPXE Shell
              item RETURN Return to previous menu
              choose --default RETURN --timeout 10000 target && goto ${target}
              
              :DBAN
              kernel ${boot_url}/dban/dban.bzi nuke="dwipe" silent vga=785
              boot
              goto MENU
              
              :SHELL
              shell ||
              goto MENU
              
              :RETURN
              chain http://${fog-ip}/${fog-webroot}/service/ipxe/boot.php?mac=${net0/mac} ||
              prompt
              goto MENU
              
              autoboot
              

              Here is more stuff if you need: https://forums.fogproject.org/topic/7329/sub-menu-within-fog-advanced-menu

              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

              235

              Online

              12.0k

              Users

              17.3k

              Topics

              155.2k

              Posts
              Copyright © 2012-2024 FOG Project