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

Batch Importing product keys

Scheduled Pinned Locked Moved
General
2
3
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.
  • V
    Valmar Kuristik
    last edited by Jan 19, 2015, 11:33 AM

    Hello

    Loving Fog thus far, but I’d like to batch import a few hundred Windows product keys… I found the entry in the database, but it seems to be encrypted. Is there anyone who could shed some light on that matter, so I could just import them straight into the database, since the csv import format doesn’t seem to support importing them?

    P.S. if I leave the group product key empty and have keys entered for each individual host, will imaging by group use the individual ones or not perform activation at all?

    1 Reply Last reply Reply Quote 0
    • T
      Tom Elliott
      last edited by Jan 19, 2015, 1:46 PM

      The value is not Encrypted, but base64 encoded as a simplistic form of obfuscation.

      Your script would just need to read the value and base64 encode it which can be done easily on linux. I don’t know how easily it can be done on Windows, but shouldn’t be overly hard.

      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
      • V
        Valmar Kuristik
        last edited by Jan 19, 2015, 4:41 PM

        Thanks again!

        However I noticed there’s = replacing the last character of every base64 encoded product key in Fog database (which I had inserted manually via web interface thus far).
        When writing the script to encode all the keys I have, I got a similar result with two ==s appended in the end, but because the file was created in windows. Replacing Windows newlines with Unix’s by dos2unix gave a clean result, of course.
        Now I’m just wondering if this is a oversight in the php portion and I should replace the last character of they keys with it as when writing all the keys straight to the Fog database, or is there something going on beyond the initial php input form on web interface that would change data already in the database even if I’d append cleanly encoded keys?

        Couldn’t find anything relevant in the files, I’m not too php/java savvy.

        Thanks for your time, yet once again…

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

        151

        Online

        12.1k

        Users

        17.3k

        Topics

        155.3k

        Posts
        Copyright © 2012-2024 FOG Project