Help needed with advanced menu (with login)



  • Server
    • FOG Version: 1.3.0 RC36
    • OS: Debian Jessie 8.6.0

    I’m having a hard time creating a PXE menu item that needs login. I had several tries with no success, maybe here somebody can help me out.

    The menu scheme i’d like to achieve is the following:

    An untegistered host has 2 options,default: perform quick registration, and advanced options which should be a sub-menu and needs login.

    A registered host has also 2 items in menu, default: boot from hard-drive, and advanced options which needs login.

    The advanced options should be a sub menu, with other items, which are the same for registered/unregistered hosts.

    Setting the visibility for menu items to registered/unregistered host is working, but i’m unable to create the advanced submenu which needs login.



  • Thanks a lot for the help, it is working.

    I believed that the “fog.advancedlogin” menu item is itself the advanced sub-menu item, and every other menu item that i configure to show with " Advanced Login Required" will be an item in that sub-menu. Since that was not working i fuzzed with fog.advanced, and fog.advancedlogin, menu visibilities, and the "advanced menu login.

    TBH now i’m very confused, but at least i have a working solution. Thanks a lot again.


  • Moderator

    Hi, you need to insert the entire menu data at FOG Settings -> iPXE Boot Menu -> Advanced Configuration options

    Here’s an example that I’m using:

    :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
    

    Check Advanced Menu Login at iPXE Boot Menu as well.

    Advanced menu login should stay on show on : Advanced Login required

    With the configuration of:

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

Log in to reply
 

402
Online

38724
Users

10553
Topics

99872
Posts

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.