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

    store a login account in a ipxe menu

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    3
    8
    2.8k
    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.
    • L
      lebrun78
      last edited by

      Server
      • FOG Version: 1.3.4
      • OS: centos 6.8
      Client
      • Service Version:
      • OS:
      Description

      Hello,
      I 'm always looking for a solution for my system learning room and deploying an image locally without account.
      If I write this in the fog.deployimage menu

      #login
      params
      param mac0 ${net0/mac}
      param arch ${arch}
      param hostname ${hostname}
      goto host_${hostname} || goto autres
      :host_admin13
      param username toto
      param password toto
      param qihost 1
      isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
      isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
      goto fin
      :autres
      login
      param username ${username}
      param password ${password}
      param qihost 1
      isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
      isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
      :fin
      

      toto account is not accepted, should I encrypt the password, how show I do that ?

      For that room, all the hostnames begin by i201, which syntax could I use to discriminate that machines ?

      Fog Version: Fog 1.5.10
      Server OS: AlmaLinux release 8.8

      1 Reply Last reply Reply Quote 0
      • Q
        Quazz Moderator @lebrun78
        last edited by

        @lebrun78 I suggest doing

        set username toto
        set password toto
        params
        param username ${username}
        param password ${password}
        

        Key points: Set username and password before param tries to use them. Initialize params (you seem to have forgotten that )

        1 Reply Last reply Reply Quote 3
        • Tom ElliottT
          Tom Elliott
          last edited by

          A new section needs it’s own params setup. At least this is how I might suggest it.

          #login
          params
          param mac0 ${net0/mac}
          param arch ${arch}
          param hostname ${hostname}
          goto host_${hostname} || goto autres
          :host_admin13
          params
          param username toto
          param password toto
          param qihost 1
          isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
          isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
          goto fin
          :autres
          login
          params
          param username ${username}
          param password ${password}
          param qihost 1
          isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
          isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
          :fin
          

          What’s in the :fin function btw?

          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

          1 Reply Last reply Reply Quote 0
          • L
            lebrun78
            last edited by

            fin is a label (end in french 🙂 )

            Fog Version: Fog 1.5.10
            Server OS: AlmaLinux release 8.8

            Tom ElliottT 1 Reply Last reply Reply Quote 0
            • Tom ElliottT
              Tom Elliott @lebrun78
              last edited by

              @lebrun78 Right, but what’s after it?

              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

              L 1 Reply Last reply Reply Quote 0
              • L
                lebrun78
                last edited by

                nothing, I realize I don’t need it

                Could you explains what are (and where could I find source code) login and params

                Fog Version: Fog 1.5.10
                Server OS: AlmaLinux release 8.8

                1 Reply Last reply Reply Quote 0
                • L
                  lebrun78 @Tom Elliott
                  last edited by

                  @Tom-Elliott
                  No I always have authentication problem.
                  The first pass seems ok
                  I get :
                  After have valid “deploy image” in boot menu

                  http://122.60.15.17/fog/service/ipxeboot.php... ok
                  Invalid login!
                  

                  Fog Version: Fog 1.5.10
                  Server OS: AlmaLinux release 8.8

                  Q 1 Reply Last reply Reply Quote 0
                  • Q
                    Quazz Moderator @lebrun78
                    last edited by

                    @lebrun78 I suggest doing

                    set username toto
                    set password toto
                    params
                    param username ${username}
                    param password ${password}
                    

                    Key points: Set username and password before param tries to use them. Initialize params (you seem to have forgotten that )

                    1 Reply Last reply Reply Quote 3
                    • L
                      lebrun78
                      last edited by

                      thanks, it works

                      Fog Version: Fog 1.5.10
                      Server OS: AlmaLinux release 8.8

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

                      245

                      Online

                      12.0k

                      Users

                      17.3k

                      Topics

                      155.2k

                      Posts
                      Copyright © 2012-2024 FOG Project