• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • 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.
  • D
    Deastrom
    last edited by Jun 25, 2015, 5:53 PM

    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
    • D
      Deastrom
      last edited by Jun 25, 2015, 6:26 PM

      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
      • W
        Wayne Workman
        last edited by Jun 25, 2015, 9:28 PM

        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
        • D
          Deastrom
          last edited by Deastrom Jun 26, 2015, 8:39 AM Jun 26, 2015, 2:22 PM

          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
          1 / 1
          • First post
            4/4
            Last post

          223

          Online

          12.0k

          Users

          17.3k

          Topics

          155.2k

          Posts
          Copyright © 2012-2024 FOG Project