FOG Project

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

    Different Advanced Menus based on User Login

    Feature Request
    2
    4
    1214
    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.
    • Deastrom
      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
      • Deastrom
        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
        • Wayne Workman
          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
          • Deastrom
            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
            • 1 / 1
            • First post
              Last post

            173
            Online

            10.2k
            Users

            16.3k
            Topics

            149.9k
            Posts

            Copyright © 2012-2020 FOG Project