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

Adding password to fog wipe task in pxe menu

Scheduled Pinned Locked Moved
General
pxe menu
3
12
4.7k
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.
  • T
    Tom Elliott
    last edited by Oct 27, 2016, 10:46 AM

    I feel I should add on.

    Login boot options aren’t exactly usable if you’re building your own menus. If you really need login protection for specific menu items, you can do as @Quazz recommended and build the item as an advanced menu. Do NOT put login params on the new menu item, but use “Advanced Login” or you could protect access to the menu in whole by using hidden menu.

    Hidden menu will require a double step (Enter some key sequence + Login). Once successfully logged in, though, you would then see the menu. In this instance, you would no longer need the wipe task parameters.

    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

    J 1 Reply Last reply Oct 27, 2016, 2:18 PM Reply Quote 1
    • J
      JJ Fullmer Testers @Tom Elliott
      last edited by Oct 27, 2016, 2:18 PM

      @Tom-Elliott @Quazz
      How do I go about adding it said advanced login menu?
      I had tried setting the advanced login menu to be available to all hosts and then setting the wipe task to be available in the advanced login menu and it then failed to load advanced.php or something of that sort.
      I’ll give using the hidden menu a try.

      Have you tried the FogApi powershell module? It's pretty cool IMHO
      https://github.com/darksidemilk/FogApi
      https://fogapi.readthedocs.io/en/latest/
      https://www.powershellgallery.com/packages/FogApi
      https://forums.fogproject.org/topic/12026/powershell-api-module

      Q 1 Reply Last reply Oct 27, 2016, 2:20 PM Reply Quote 0
      • Q
        Quazz Moderator @JJ Fullmer
        last edited by Oct 27, 2016, 2:20 PM

        @JJ-Fullmer You need to keep advanced login menu on advanced login only and then enable login for advanced menu under the ipxe boot menu options I believe.

        J 1 Reply Last reply Oct 27, 2016, 2:30 PM Reply Quote 1
        • J
          JJ Fullmer Testers @Quazz
          last edited by Oct 27, 2016, 2:30 PM

          @Quazz Tried that, no advanced menu appears. Also tried setting a key sequence to see if it would make the advanced menu appear, no luck there either. Also tried putting the advanced login on the all hosts screen and putting the wipe in the advanced category with no luck either.
          It just says chainloading failed after trying to load advanced.php
          0_1477578634323_Capture.PNG

          This is with efi boot and the bootfile ipxe.efi on a esxi VM as the host if it makes any difference.
          Actually I’ll see if it makes any difference on a legacy machine.

          Have you tried the FogApi powershell module? It's pretty cool IMHO
          https://github.com/darksidemilk/FogApi
          https://fogapi.readthedocs.io/en/latest/
          https://www.powershellgallery.com/packages/FogApi
          https://forums.fogproject.org/topic/12026/powershell-api-module

          Q 1 Reply Last reply Oct 27, 2016, 2:32 PM Reply Quote 0
          • Q
            Quazz Moderator @JJ Fullmer
            last edited by Quazz Oct 27, 2016, 8:33 AM Oct 27, 2016, 2:32 PM

            @JJ-Fullmer What happens if you navigate manually to advanced.php?

            Maybe I should mention that Advanced menu under iPXE menu configuration needs to be empty and it needs to be filled in under iPXE Boot Menu options

            J 1 Reply Last reply Oct 27, 2016, 2:40 PM Reply Quote 0
            • J
              JJ Fullmer Testers @Quazz
              last edited by Oct 27, 2016, 2:40 PM

              @Quazz @Tom-Elliott
              There was no difference on a legacy machine, in case you were curious.

              Hmm, you mean Advanced configuration options to add menu options the old fashioned way? The description in the gui says that’s for the default file, but hey I’ll give it a try.

              Have you tried the FogApi powershell module? It's pretty cool IMHO
              https://github.com/darksidemilk/FogApi
              https://fogapi.readthedocs.io/en/latest/
              https://www.powershellgallery.com/packages/FogApi
              https://forums.fogproject.org/topic/12026/powershell-api-module

              1 Reply Last reply Reply Quote 0
              • J
                JJ Fullmer Testers
                last edited by Oct 27, 2016, 2:53 PM

                Adding to the Advanced Configuration (I just added :fog.wipe) simply added my menu entry to the default option and didn’t help the issue.
                I tried @Tom-Elliott’s hidden menu suggestion and that works as expected. However I kind of like the aesthetics of my custom fog pxe screen logo popping up when a computer is booted. Plus the company logo reassures users that it’s a normal screen rather than their computer being hacked or something because they’ve seen too many bad movies. However, I guess I’ll stick with the hidden menu for now, but I would rather have the advanced option.

                Though I would add that in a previous configuration on a fog server I had added the login parameters to a dban iso task the way I was originally trying to do here. So I imagine it is possible, though I realize that was launching a custom booted iso from a parameter line rather than booting to a internal fog task. Does anyone else have a working advanced menu with login maybe my fellow @Testers could help me out with this. Or maybe the feature is broken at the moment?

                Have you tried the FogApi powershell module? It's pretty cool IMHO
                https://github.com/darksidemilk/FogApi
                https://fogapi.readthedocs.io/en/latest/
                https://www.powershellgallery.com/packages/FogApi
                https://forums.fogproject.org/topic/12026/powershell-api-module

                Q 1 Reply Last reply Oct 27, 2016, 2:55 PM Reply Quote 0
                • Q
                  Quazz Moderator @JJ Fullmer
                  last edited by Oct 27, 2016, 2:55 PM

                  @JJ-Fullmer I don’t know why it is functioning differently on your end, maybe you need to specify it’s a menu before it works with advanced menu, not sure.

                  J 1 Reply Last reply Oct 27, 2016, 3:12 PM Reply Quote 0
                  • J
                    JJ Fullmer Testers @Quazz
                    last edited by Oct 27, 2016, 3:12 PM

                    @Quazz Do you have a working advanced menu?

                    Have you tried the FogApi powershell module? It's pretty cool IMHO
                    https://github.com/darksidemilk/FogApi
                    https://fogapi.readthedocs.io/en/latest/
                    https://www.powershellgallery.com/packages/FogApi
                    https://forums.fogproject.org/topic/12026/powershell-api-module

                    Q 1 Reply Last reply Oct 27, 2016, 3:26 PM Reply Quote 0
                    • Q
                      Quazz Moderator @JJ Fullmer
                      last edited by Oct 27, 2016, 3:26 PM

                      @JJ-Fullmer

                      :urls
                      set msdart-url http://192.168.1.155/2-MSDART
                      :MENU
                      menu
                      colour --rgb 0xff0000 0 ||
                      cpair --foreground 1 1 ||
                      cpair --foreground 0 3 ||
                      cpair --foreground 4 4 ||
                      item --gap -- -------------------------------------
                      item fog.local Boot from hard disk
                      item msdart6x86 Microsoft DaRT for Windows Vista 32bit
                      item msdart6x64 Microsoft DaRT for Windows Vista 64bit
                      item msdart7x86 Microsoft DaRT for Windows 7 32bit
                      item msdart7x64 Microsoft DaRT for Windows 7 64bit
                      item msdart81x86 Microsoft DaRT for Windows 8.1 32bit
                      item msdart81x64 Microsoft DaRT for Windows 8.1 64bit
                      item fog.return Return to previous menu
                      choose --default fog.local --timeout 5000000 target && goto ${target}
                      :fog.local
                      sanboot --no-describe --drive 0x80 || goto MENU
                      :msdart6x86
                      initrd ${msdart-url}/MSDaRT60x86.iso
                      chain memdisk iso raw
                      :msdart6x64
                      initrd ${msdart-url}/MSDaRT60x64.iso
                      chain memdisk iso raw
                      :msdart7x86
                      initrd ${msdart-url}/MSDaRT70x86.iso
                      chain memdisk iso raw
                      :msdart7x64
                      initrd ${msdart-url}/MSDaRT70x64.iso
                      chain memdisk iso raw
                      :msdart81x86
                      initrd ${msdart-url}/MSDaRT8.1x86.iso
                      chain memdisk iso raw
                      :msdart81x64
                      initrd ${msdart-url}/MSDaRT8.1x64.iso
                      chain memdisk iso raw
                      :fog.return
                      chain http://${fog-ip}/${fog-webroot}/service/ipxe/boot.php?mac=${net0/mac} ||
                      prompt
                      goto MENU
                      
                      1 Reply Last reply Reply Quote 1
                      • 1 / 1
                      1 / 1
                      • First post
                        12/12
                        Last post

                      126

                      Online

                      12.1k

                      Users

                      17.3k

                      Topics

                      155.3k

                      Posts
                      Copyright © 2012-2024 FOG Project