• Recent
  • Unsolved
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
  • 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 Jan 31, 2017, 2:38 PM

    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 Feb 1, 2017, 11:00 AM

      @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
      • T
        Tom Elliott
        last edited by Jan 31, 2017, 2:51 PM

        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 Jan 31, 2017, 2:52 PM

          fin is a label (end in french 🙂 )

          Fog Version: Fog 1.5.10
          Server OS: AlmaLinux release 8.8

          T 1 Reply Last reply Jan 31, 2017, 2:53 PM Reply Quote 0
          • T
            Tom Elliott @lebrun78
            last edited by Jan 31, 2017, 2:53 PM

            @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 Feb 1, 2017, 9:06 AM Reply Quote 0
            • L
              lebrun78
              last edited by Jan 31, 2017, 2:56 PM

              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 Feb 1, 2017, 9:06 AM

                @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 Feb 1, 2017, 11:00 AM Reply Quote 0
                • Q
                  Quazz Moderator @lebrun78
                  last edited by Feb 1, 2017, 11:00 AM

                  @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 Feb 1, 2017, 11:10 AM

                    thanks, it works

                    Fog Version: Fog 1.5.10
                    Server OS: AlmaLinux release 8.8

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

                    147

                    Online

                    12.1k

                    Users

                    17.3k

                    Topics

                    155.3k

                    Posts
                    Copyright © 2012-2024 FOG Project