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

    Encryption error when clicking on "list hosts", just set AD password.

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    4
    19
    1.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.
    • V
      vangrimoire
      last edited by vangrimoire

      {"error":"error:0606508A:digital envelope routines:EVP_DecryptFinal_ex:data not multiple of block length"} 
      

      On clicking list hosts. Just set AD password for new image.

      1 Reply Last reply Reply Quote 0
      • V
        vangrimoire
        last edited by

        error shows when clicking on “tasks” and “export hosts” as well.

        1 Reply Last reply Reply Quote 0
        • V
          vangrimoire
          last edited by

          Looks like a problem in webrypt with @ symbols in passwords. Yup that’s it.

          mysql to ‘fog’

          ran

          UPDATE hosts
          SET
              hostADPass = '0'
          WHERE
              hostID = 2;
          
          1 Reply Last reply Reply Quote 0
          • S
            Sebastian Roth Moderator
            last edited by

            @vangrimoire Which version of FOG do you run?

            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
              vangrimoire
              last edited by

              Current according to the system.

              1 Reply Last reply Reply Quote 0
              • S
                Sebastian Roth Moderator
                last edited by

                @vangrimoire So that means 1.5.7?

                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
                  vangrimoire
                  last edited by

                  Yep, sorry didn’t see the version on the big button. 1.5.7

                  1 Reply Last reply Reply Quote 0
                  • S
                    Sebastian Roth Moderator
                    last edited by

                    @vangrimoire I have not found the time to replicate and look into the issue but I will do so soon.

                    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

                    V 1 Reply Last reply Reply Quote 0
                    • V
                      vangrimoire @Sebastian Roth
                      last edited by

                      @Sebastian-Roth

                      Just enter an @ sign in the password field of the “Active Directory” page and save.

                      https://stackoverflow.com/questions/19934422/encrypt-string-in-php-and-decrypt-in-node-js

                      1 Reply Last reply Reply Quote 0
                      • S
                        Sebastian Roth Moderator
                        last edited by Sebastian Roth

                        @vangrimoire Ok, I played with it for a bit but can’t actually reproduce the error. I did as you said, opened the settings of one host, went to the AD tab, entered a password that includes an @ symbol (tried different combinations - somewhere in the middle, at the end, as a single character), saved,went back to the host listing and don’t get an error on the web UI.

                        Here is what I have in the DB for this host now:

                        mysql> SELECT hostName,hostUseAD,hostADDomain,hostADUser,hostADPass,hostEnforce FROM hosts;
                        +----------+-----------+--------------+---------------+-------------+-------------+
                        | hostName | hostUseAD | hostADDomain | hostADUser    | hostADPass  | hostEnforce |
                        +----------+-----------+--------------+---------------+-------------+-------------+
                        | ws228732 | 1         | MYDOM        | Administrator | test123@123 | 1           |
                        +----------+-----------+--------------+---------------+-------------+-------------+
                        1 row in set (0.000 sec)
                        

                        As well, nothing in the apache and PHP error logs.

                        Where do you see the error? Can you post a picture?

                        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
                          vangrimoire
                          last edited by

                          when I click on “list hosts”, “tasks”, and “export hosts” the page is replaced with the error.

                          php is version 7.2.23 on CentOS Linux release 7.7.1908 (core)

                          1 Reply Last reply Reply Quote 0
                          • S
                            Sebastian Roth Moderator
                            last edited by

                            @vangrimoire My test was on a Fedora 30 system using PHP 7.3.10

                            @Moderators Anyone else able to replicate this issue?

                            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
                            • Q
                              Quazz Moderator
                              last edited by Quazz

                              Tested on Centos 7 PHP 7.2 FOG 1.5.7

                              No problem with @ in password on my end.

                              @vangrimoire what’s in your PHP/apache error logs?

                              1 Reply Last reply Reply Quote 0
                              • V
                                vangrimoire
                                last edited by

                                Password was: |-|@11ow33n

                                Maybe try the bars and hyphen?

                                1 Reply Last reply Reply Quote 0
                                • S
                                  Sebastian Roth Moderator
                                  last edited by

                                  @vangrimoire Indeed that did the trick. I will see why this happens.

                                  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

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

                                    @Sebastian-Roth it’s the double pipes.

                                    We used to store the encrypted form of the password in such a way that it was

                                    IV|encryprtedpassword|key

                                    It needed all three to decrypt

                                    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 2
                                    • S
                                      Sebastian Roth Moderator
                                      last edited by

                                      @Tom-Elliott Yeah right! Can we solve this in the code by not allowing the pipes in passwords at all? But I am sure there are people out there using those in their passwords.

                                      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

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

                                        @Sebastian-Roth I think we just need to refine the code a bit more. I don’t know why it’s getting the error, I just know what we did int he past for the passwords. I’m sure we can make a more proper fix without limiting what passwords an admin can use.

                                        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

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

                                          I found and believe I may have fixed the issue. It was actually pretty simple. The error was coming from the unpacking of information.

                                          Hopefully it helps. Just repull the dev-branch and install and all should be back to normal.

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

                                          195

                                          Online

                                          12.1k

                                          Users

                                          17.3k

                                          Topics

                                          155.3k

                                          Posts
                                          Copyright © 2012-2024 FOG Project