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

    Hard Drive Protection and Fog Client

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    3
    12
    2.6k
    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.
    • M
      Max Kern
      last edited by Max Kern

      Server
      • FOG Version: 1.3.0-RC-17
      • OS: Linux Debian
      Client
      • Service Version: 0.11.05
      • OS: Windows 10 64-bit
      Description

      Hi,
      i´ve got an Software Hard Drive Protection Solution for my System.

      This works about 2 or 3 days, but then the Fog Client cannot communicate with the Server and the following error is showing: “Unable to get subsection”+“Object not set to instance of Object” (more in the log).
      Then i reset the encryption data, so the token will be released.
      After that everything is working, until the next reboot, because my Hard Drive Protection now get the old State of the Machine with the old Security token.

      It is not a option to disable the Hard Drive Protection Solution.

      In my opinion there are two solutions, reset the security token after every boot, or dont change the security token afte the protection is enabled.

      Thank you for your help, and sorry for that bad english.

      Max Kern

      ----------------------------------UserTracker---------------------------------
      ------------------------------------------------------------------------------
       28.10.2016 11:52 Client-Info Client Version: 0.11.5
       28.10.2016 11:52 Client-Info Client OS:      Windows
       28.10.2016 11:52 Client-Info Server Version: 1.3.0-RC-17
       28.10.2016 11:52 Middleware::Response ERROR: Unable to get subsection
       28.10.2016 11:52 Middleware::Response ERROR: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
       28.10.2016 11:52 Middleware::Communication URL: http://192.168.1.5/fog/management/index.php?sub=requestClientInfo&configure&newService&json
       28.10.2016 11:52 Middleware::Response Success
       28.10.2016 11:52 Service Sleeping for 67 seconds
       28.10.2016 11:53 Middleware::Communication URL: http://192.168.1.5/fog/management/index.php?sub=requestClientInfo&mac=40:8D:5C:47:AC:48&newService&json
       28.10.2016 11:53 Middleware::Authentication Waiting for authentication timeout to pass
       28.10.2016 11:54 Middleware::Communication Download: http://192.168.1.5/fog/management/other/ssl/srvpublic.crt
       28.10.2016 11:54 Data::RSA FOG Server CA cert found
       28.10.2016 11:54 Middleware::Authentication Cert OK
       28.10.2016 11:54 Middleware::Communication POST URL: http://192.168.1.5/fog/management/index.php?sub=requestClientInfo&authorize&newService
       28.10.2016 11:54 Middleware::Response #!ist
       28.10.2016 11:54 Middleware::Response Success
       28.10.2016 11:54 Middleware::Communication URL: http://192.168.1.5/fog/service/getversion.php?clientver&newService&json
       28.10.2016 11:54 Middleware::Communication URL: http://192.168.1.5/fog/service/getversion.php?newService&json
      
       28.10.2016 11:54 Service Creating user agent cache
       28.10.2016 11:54 Middleware::Response ERROR: Unable to get subsection
       28.10.2016 11:54 Middleware::Response ERROR: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
       28.10.2016 11:54 Middleware::Response ERROR: Unable to get subsection
       28.10.2016 11:54 Middleware::Response ERROR: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
       28.10.2016 11:54 Middleware::Response ERROR: Unable to get subsection
       28.10.2016 11:54 Middleware::Response ERROR: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
      
      ------------------------------------------------------------------------------
      ---------------------------------ClientUpdater--------------------------------
      ------------------------------------------------------------------------------
       28.10.2016 11:54 Client-Info Client Version: 0.11.5
       28.10.2016 11:54 Client-Info Client OS:      Windows
       28.10.2016 11:54 Client-Info Server Version: 1.3.0-RC-17
       28.10.2016 11:54 Middleware::Response Success
      ------------------------------------------------------------------------------
      
      
      ------------------------------------------------------------------------------
      ----------------------------------TaskReboot----------------------------------
      ------------------------------------------------------------------------------
       28.10.2016 11:54 Client-Info Client Version: 0.11.5
       28.10.2016 11:54 Client-Info Client OS:      Windows
       28.10.2016 11:54 Client-Info Server Version: 1.3.0-RC-17
       28.10.2016 11:54 Middleware::Response ERROR: Unable to get subsection
       28.10.2016 11:54 Middleware::Response ERROR: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
      
      ------------------------------------------------------------------------------
      --------------------------------HostnameChanger-------------------------------
      ------------------------------------------------------------------------------
       28.10.2016 11:54 Client-Info Client Version: 0.11.5
       28.10.2016 11:54 Client-Info Client OS:      Windows
       28.10.2016 11:54 Client-Info Server Version: 1.3.0-RC-17
       28.10.2016 11:54 Middleware::Response ERROR: Unable to get subsection
       28.10.2016 11:54 Middleware::Response ERROR: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
      
      ------------------------------------------------------------------------------
      ---------------------------------SnapinClient---------------------------------
      ------------------------------------------------------------------------------
       28.10.2016 11:54 Client-Info Client Version: 0.11.5
       28.10.2016 11:54 Client-Info Client OS:      Windows
       28.10.2016 11:54 Client-Info Server Version: 1.3.0-RC-17
       28.10.2016 11:54 Middleware::Response ERROR: Unable to get subsection
       28.10.2016 11:54 Middleware::Response ERROR: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
      
      ------------------------------------------------------------------------------
      --------------------------------PrinterManager--------------------------------
      ------------------------------------------------------------------------------
       28.10.2016 11:54 Client-Info Client Version: 0.11.5
       28.10.2016 11:54 Client-Info Client OS:      Windows
       28.10.2016 11:54 Client-Info Server Version: 1.3.0-RC-17
       28.10.2016 11:54 Middleware::Response ERROR: Unable to get subsection
       28.10.2016 11:54 Middleware::Response ERROR: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
      
      ------------------------------------------------------------------------------
      --------------------------------PowerManagement-------------------------------
      ------------------------------------------------------------------------------
       28.10.2016 11:54 Client-Info Client Version: 0.11.5
       28.10.2016 11:54 Client-Info Client OS:      Windows
       28.10.2016 11:54 Client-Info Server Version: 1.3.0-RC-17
       28.10.2016 11:54 Middleware::Response ERROR: Unable to get subsection
       28.10.2016 11:54 Middleware::Response ERROR: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.```
      1 Reply Last reply Reply Quote 0
      • J
        Joe Schmitt Senior Developer
        last edited by Joe Schmitt

        @Max-Kern I don’t know what hard drive protection solution you are using, but almost all ship with some kind of whitelist feature, where you can select certain files to persist between boots. Without that feature many pieces of software, such as the FOG Client, would not function.

        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.

        1 Reply Last reply Reply Quote 0
        • M
          Max Kern
          last edited by

          Hi,
          in this solution there is no way for a whitelist.
          All other Programms are working fine.
          There is also no way to change this software because as a school we cannot quit this licens.

          I only need the call of the PHP script which perform the action of resetting the encryption data until we have another solution.

          Ive read something about users with dual boot system which have a simular issue is there a solution for that kind of Problem?

          1 Reply Last reply Reply Quote 0
          • M
            Max Kern
            last edited by

            @Joe-Schmitt maybe thats a point, but this is not a solution for my Problem.
            I dont want to reset the token without authentication, i want to reset the token from the fog Server itselfe, with a cron Job.
            Maybe there will be a Security issue, but it is only Imaging and manage a Client and no real sensitiv Data.

            I also can search in the Script for the function call of the encryption data, but this is no clean way.

            Wayne WorkmanW 1 Reply Last reply Reply Quote 0
            • Wayne WorkmanW
              Wayne Workman
              last edited by Wayne Workman

              @Joe-Schmitt said in Hard Drive Protection and Fog Client:

              e.g. deep freeze has thaw sections

              Centurion Smart Shield, a locking software I have experience with, also has what they call “Persistent” partitions. A.K.A. the P:\ drive.

              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
              • Wayne WorkmanW
                Wayne Workman @Max Kern
                last edited by Wayne Workman

                @Max-Kern said in Hard Drive Protection and Fog Client:

                i want to reset the token from the fog Server itselfe, with a cron Job.

                That’s not as bad. I can write a script for you to do it.What OS are you using for the FOG Server?

                EDIT
                duh, read wayne. You’re using Debian.

                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/

                M 1 Reply Last reply Reply Quote 0
                • M
                  Max Kern @Wayne Workman
                  last edited by

                  Thank you @Wayne-Workman.
                  Maybe this is also a solution for People with simular Problems.

                  1 Reply Last reply Reply Quote 0
                  • J
                    Joe Schmitt Senior Developer
                    last edited by

                    @Max-Kern for reference what hard drive protection software are you using?

                    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.

                    M 1 Reply Last reply Reply Quote 0
                    • Wayne WorkmanW
                      Wayne Workman
                      last edited by

                      The below script should do it, and it should work in Cron fine since I pathed out the mysql command dynamically.

                      The software the forums uses, nodeBB, has a bug in it lately where it removes spaces from BASH scripts. In the below script where you see [[ and ]] There needs to be a space after [[ and a space before ]]

                      #!/bin/bash
                      
                      #----- MySQL Credentials -----#
                      snmysqluser=""
                      snmysqlpass=""
                      snmysqlhost=""
                      # If user and pass is blank, leave just a set of double quotes like ""
                      # if the db is local, set the host to just double quotes "" or "127.0.0.1" or "localhost"
                      
                      
                      #----- Begin Program -----#
                      
                      mysql=$(command -v mysql)
                      
                      resetEncryptionForAll="UPDATE hosts SET hostPubKey=\"\", hostSecToken=\"\", hostSecTime=\"0000-00-00 00:00:00\""
                      
                      #Test lines to make sure the sql looks good.
                      #echo
                      #echo $resetEncryptionForAll
                      #echo
                      
                      options="-sN"
                      if [[ $snmysqlhost != "" ]]; then
                              options="$options -h$snmysqlhost"
                      fi
                      if [[ $snmysqluser != "" ]]; then
                              options="$options -u$snmysqluser"
                      fi
                      if [[ $snmysqlpass != "" ]]; then
                              options="$options -p$snmysqlpass"
                      fi
                      options="$options -D fog -e"
                      
                      
                      #Do it
                      $mysql $options "$resetEncryptionForAll"
                      

                      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/

                      M 1 Reply Last reply Reply Quote 1
                      • M
                        Max Kern @Joe Schmitt
                        last edited by

                        @Joe-Schmitt it is a german solution named "Dr. Kaiser PC-Wächter/Drive "

                        1 Reply Last reply Reply Quote 0
                        • M
                          Max Kern @Wayne Workman
                          last edited by

                          @Wayne-Workman Ah, ok it all goes over the DB.

                          So if want to reset only one Group in, this example Group with id 2, i can do also:

                          UPDATE hosts AS h INNER JOIN groupMembers AS s on h.hostID=s.gmhostID SET hostPubKey="", hostSecToken="", hostSecTime="0000-00-00 00:00:00" WHERE s.gmGroupID=2;
                          

                          If i want ít with the Group Name i must do a second join, but that shouldnt be the Problem.

                          Wayne WorkmanW 1 Reply Last reply Reply Quote 0
                          • Wayne WorkmanW
                            Wayne Workman @Max Kern
                            last edited by

                            @Max-Kern Well just try and see. Clearly you know some SQL, I don’t think you need my help any further lol. All I ask is that if you tweak the script, share it here.

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

                            202

                            Online

                            12.0k

                            Users

                            17.3k

                            Topics

                            155.2k

                            Posts
                            Copyright © 2012-2024 FOG Project