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

    Different Advanced Menus based on User Login

    Scheduled Pinned Locked Moved
    Feature Request
    2
    4
    1.3k
    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.
    • DeastromD
      Deastrom
      last edited by

      This might be a tie in with this feature request https://forums.fogproject.org/topic/4408/security-for-fog-users but I’m wondering if a guy can present different ipxe menus in the advanced menu section based on what user is logged in? This user has access to this tool, but should have access to this tool… i.e. an IT deployment tech may need access to an SCCM deployment tool, but a IT Security tech may need access to a recovery tool to which the average IT tech shouldn’t.

      1 Reply Last reply Reply Quote 1
      • DeastromD
        Deastrom
        last edited by

        To clarify, this would be in the PXE boot Advanced Menu. I was hoping that there’d be a variable for username and I might be able to include if then statements in the ipxe code for the advanced menu.

        1 Reply Last reply Reply Quote 0
        • Wayne WorkmanW
          Wayne Workman
          last edited by

          I’m sure it’s possible. How, I have no idea. Keep an eye on this thread, someone may pop in with an answer.

          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!
          Daily Clean Installation Results:
          https://fogtesting.fogproject.us/
          FOG Reporting:
          https://fog-external-reporting-results.fogproject.us/

          1 Reply Last reply Reply Quote 0
          • DeastromD
            Deastrom
            last edited by Deastrom

            Figured it out.

            goto ${username} || goto MENU
            
            :fogUser
            menu
            item --gap -- ---------------- Welcome fogUser ----------------
            item return        return to previous menu
            item kav        Kaspersky Antivirus
            choose --default return target && goto ${target}
            
            :fogTech
            item --gap -- ---------------- Welcome fogTech ----------------
            item return        return to previous menu
            item Clonezilla        Clonezilla ISO
            item UBCD        Ultimate Boot CD
            item Hirens        Hiren's Boot CD
            item kav        Kaspersky Antivirus
            choose --default return target && goto ${target}
            
            :MENU
            menu
            item --gap -- ---------------- iPXE boot menu ----------------
            item return        return to previous menu
            choose --default return target && goto ${target}
            

            Then just define the functions below the menu. fogTech and fogUser being different users that the menu accounts for and MENU being the default menu.

            This was made apparent after looking at the advanced.php code presented here https://wiki.fogproject.org/wiki/index.php/Advanced_Boot_Menu_Configuration_options

            Access to this menu can be granted without granting that user rights to the website by clicking the “Mobile/Quick Image Access Only?” toggle when creating the user.

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

            134

            Online

            12.1k

            Users

            17.3k

            Topics

            155.3k

            Posts
            Copyright © 2012-2024 FOG Project