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

Active Directory registration not working Windows 7 x64 client

Scheduled Pinned Locked Moved
Windows Problems
10
45
29.2k
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.
  • D
    Ddog800
    last edited by Feb 9, 2015, 9:52 PM

    OK, I’ve recompiled hostnamechanger.dll from the Git repository and everything is now working as expected. Thanks again for the help!

    1 Reply Last reply Reply Quote 0
    • B
      Berend de Boer
      last edited by Feb 10, 2015, 10:27 PM

      Is it possible to make a new hostnamechanger.dll available for download? I’m having problems too with connecting Windows 7 x64 clients. Haven’t checked for this particular message yet, but in case I have it, would be useful to give a new hostnamechanger.dll with default passphrase encryption a go.

      1 Reply Last reply Reply Quote 0
      • J
        Joe Schmitt Senior Developer
        last edited by Feb 10, 2015, 10:52 PM

        Per-request a patched version of the HostNameChanger dll with the default pass key. Please ensure the file name is correct (it may be wrong).

        [url]https://dl.dropboxusercontent.com/u/18664328/HostNameChanger.dll[/url]

        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
        • B
          Berend de Boer
          last edited by Feb 12, 2015, 7:02 PM

          Yeah, the name was HostNameChange.dll. But didn’t work for me. Where is that fog.log talked about above? Couldn’t find this. Anyway to enable debugging to see if it at least gets activated and to check where it fails?

          1 Reply Last reply Reply Quote 0
          • B
            Berend de Boer
            last edited by Feb 12, 2015, 7:05 PM

            Sorry, found c:\fog.log, but it’s basically empty. Can I trigger HostNameChange.dll manually?

            1 Reply Last reply Reply Quote 0
            • T
              Tom Elliott
              last edited by Feb 12, 2015, 7:07 PM

              [code]net stop “FOG Service”
              del c:\fog.log
              net start “FOG Service”[/code]

              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
              • T
                Tom Elliott
                last edited by Feb 12, 2015, 7:08 PM

                To watch the log, open a powershell and run:

                [code]get-content -wait c:\fog.log[/code]

                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
                • B
                  Berend de Boer
                  last edited by Feb 16, 2015, 2:15 AM

                  Much appreciated Tom, with powershell, first time I’ve used this, I was able to get the contents, seems log gets emptied at some point. This is what I see:

                  [CODE]16/02/2015 2:41 p.m. FOG::HostnameChanger Attempting to connect to fog server…
                  16/02/2015 2:41 p.m. FOG::HostnameChanger Module is active…
                  16/02/2015 2:41 p.m. FOG::HostnameChanger AD mode requested, confirming settings.
                  16/02/2015 2:41 p.m. FOG::HostnameChanger Padding is invalid and cannot be removed.
                  16/02/2015 2:41 p.m. FOG::HostnameChanger at System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte
                  [] inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]& outputBuffer, Int32 outputOffset, PaddingMode paddingMode,
                  Boolean fLast)
                  at System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(Byte[] inputBuffer, Int32 inputOffset,
                  Int32 inputCount)
                  at System.Security.Cryptography.CryptoStream.FlushFinalBlock()
                  at System.Security.Cryptography.CryptoStream.Dispose(Boolean disposing)
                  at System.IO.Stream.Close()
                  at FOG.FOGCrypt.decrypt(Byte[] cipherData, Byte[] Key, Byte[] IV)
                  at FOG.FOGCrypt.decrypt(Byte[] cipherData, String Password)
                  at FOG.FOGCrypt.decryptHex(String hex)
                  at FOG.HostNameChanger.changeHostName()
                  [/CODE]

                  Error looks similar to [URL=‘http://fogproject.org/forum/threads/fog-hostnamechanger-padding-is-invalid-and-cannot-be-removed.1078/’]this thread[/URL].

                  Had an a.b.c style DOMAIN, Administrator user did not have domain name in front. Have triple checked I got the password correct. The user is “Administrator” i.e. with all permissions as of this moment, as I’m trying to debug one problem at a time.

                  1 Reply Last reply Reply Quote 0
                  • B
                    Berend de Boer
                    last edited by Feb 16, 2015, 2:15 AM

                    This is what I get with the original HostnameChange.dll:

                    [CODE] 16/02/2015 2:49 p.m. FOG::HostnameChanger Attempting to connect to fog server…
                    16/02/2015 2:49 p.m. FOG::HostnameChanger Attempting to connect to fog server…
                    16/02/2015 2:49 p.m. FOG::HostnameChanger Module is active…
                    16/02/2015 2:49 p.m. FOG::HostnameChanger Module is active…
                    16/02/2015 2:49 p.m. FOG::HostnameChanger AD mode requested, confirming settings.
                    16/02/2015 2:49 p.m. FOG::HostnameChanger AD mode requested, confirming settings.
                    16/02/2015 2:49 p.m. FOG::HostnameChanger Hostname is up to date
                    16/02/2015 2:49 p.m. FOG::HostnameChanger Hostname is up to date
                    16/02/2015 2:49 p.m. FOG::HostnameChanger Attempting to join domain if not already a member…
                    16/02/2015 2:49 p.m. FOG::HostnameChanger Domain Error! (‘Unknown Error’ Code: 1791)
                    16/02/2015 2:49 p.m. FOG::HostnameChanger Domain Error! (‘Unknown Error’ Code: 1326)[/CODE]

                    PS: had to split posts, as get a message that this was marked as spam by Askimet or something like that.

                    1 Reply Last reply Reply Quote 0
                    • W
                      Wolfbane8653 Developer
                      last edited by Feb 16, 2015, 2:06 PM

                      From your comments [URL=‘http://fogproject.org/forum/threads/requests-for-wiki-access-ask-here.3811/page-2#post-42253’]here[/URL]. I am assuming that you have partly figured this out?

                      This error usually occurs due to the password not being encrypted correctly.

                      Check here and double check your settings.
                      [url]http://www.fogproject.org/wiki/index.php/FOGCrypt[/url]

                      [B]EDIT[/B]
                      OR the user you are inputting does not have the proper rights in your AD to join computers to the domain.

                      1 Reply Last reply Reply Quote 0
                      • J
                        Junkhacker Developer
                        last edited by Feb 16, 2015, 2:37 PM

                        [quote=“Berend de Boer, post: 42246, member: 28367”]
                        Had an a.b.c style DOMAIN, Administrator user did not have domain name in front. Have triple checked I got the password correct. The user is “Administrator” i.e. with all permissions as of this moment, as I’m trying to debug one problem at a time.[/quote]
                        It is worth mentioning that this user needs to be a domain user with rights to add computers to the domain, not a user on the computer.

                        signature:
                        Junkhacker
                        We are here to help you. If you are unresponsive to our questions, don't expect us to be responsive to yours.

                        1 Reply Last reply Reply Quote 0
                        • B
                          Berend de Boer
                          last edited by Feb 16, 2015, 6:36 PM

                          [quote=“Junkhacker, post: 42278, member: 21583”]It is worth mentioning that this user needs to be a domain user with rights to add computers to the domain, not a user on the computer.[/quote]

                          Yep, it’s the domain administrator. I just wanted to avoid having permission issues, so using max permissions for now.

                          1 Reply Last reply Reply Quote 0
                          • B
                            Berend de Boer
                            last edited by Feb 16, 2015, 6:38 PM

                            [quote=“Wolfbane8653, post: 42276, member: 3362”]From your comments [URL=‘http://fogproject.org/forum/threads/requests-for-wiki-access-ask-here.3811/page-2#post-42253’]here[/URL]. I am assuming that you have partly figured this out?

                            This error usually occurs due to the password not being encrypted correctly.[/quote]

                            That’s what one would think, but have triple checked the password, and got another person to check the encrypted password too.

                            But note I was using the old HostnameChanger and the new one. What error does indicate password not being encrypted correctly? Because I got different errors in both cases.

                            1 Reply Last reply Reply Quote 0
                            • T
                              Tom Elliott
                              last edited by Feb 16, 2015, 6:49 PM

                              16/02/2015 2:49 p.m. FOG::HostnameChanger Domain Error! (‘Unknown Error’ Code: 1791)
                              16/02/2015 2:49 p.m. FOG::HostnameChanger Domain Error! (‘Unknown Error’ Code: 1326)

                              Those errors are messages coming directly from microsoft during the domain join process.

                              Look them up and you may have a better/clearer answer. The error codes you see are not FOG generated

                              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
                              • Joseph HalesJ
                                Joseph Hales Testers
                                last edited by Feb 16, 2015, 7:17 PM

                                The error codes appear to be as per [url]http://www.hiteksoftware.com/knowledge/articles/049.htm[/url]
                                [SIZE=4][FONT=arial][COLOR=#000000]1326 Logon failure: unknown user name or bad password.[/COLOR][/FONT][/SIZE]
                                [SIZE=4][FONT=arial][COLOR=#000000]1791 A remote procedure call is already in progress for this thread.[/COLOR][/FONT][/SIZE]

                                RTFM

                                1 Reply Last reply Reply Quote 0
                                • B
                                  Berend de Boer
                                  last edited by Feb 16, 2015, 10:01 PM

                                  [quote=“Tom Elliott, post: 42287, member: 7271”]Look them up and you may have a better/clearer answer. The error codes you see are not FOG generated[/quote]

                                  Yep, they are generated by the old HostnameChanger. But the new one says this:

                                  [CODE]16/02/2015 2:41 p.m. FOG::HostnameChanger Padding is invalid and cannot be removed.
                                  16/02/2015 2:41 p.m. FOG::HostnameChanger at System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte
                                  [] inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]& outputBuffer, Int32 outputOffset, PaddingMode paddingMode,
                                  Boolean fLast)
                                  at System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(Byte[] inputBuffer, Int32 inputOffset,
                                  Int32 inputCount)
                                  [/CODE]

                                  As this is a different error message, does that mean that perhaps the encryption key of the new HostnameChanger is not the default one?

                                  The old dll error message may seem to indicate I really have a problem with username/password, and I’ll check that again.

                                  1 Reply Last reply Reply Quote 0
                                  • Tom ElliottT
                                    Tom Elliott
                                    last edited by Feb 16, 2015, 10:08 PM

                                    Which new one are you referring to?

                                    The one from the github fogproject repo? Or the one from the fogservice repo?

                                    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
                                    • B
                                      Berend de Boer
                                      last edited by Mar 16, 2015, 6:04 AM

                                      [quote=“Tom Elliott, post: 42293, member: 7271”]Which new one are you referring to?

                                      The one from the github fogproject repo? Or the one from the fogservice repo?[/quote]

                                      The one I downloaded [URL=‘http://www.fogproject.org/forum/threads/active-directory-registration-not-working-windows-7-x64-client.11514/#post-42039’]from here in this thread[/URL].

                                      1 Reply Last reply Reply Quote 0
                                      • B
                                        Berend de Boer
                                        last edited by Mar 16, 2015, 8:07 AM

                                        OK, I had both the old dll and new dll in the directory, and it seems the service picks up both. That’s confusing. When using the new dll, I get this output (as already posted):

                                        [CODE] 16/03/2015 9:04 p.m. FOG Service Engine Version: 3
                                        16/03/2015 9:04 p.m. Starting all sub processes
                                        16/03/2015 9:04 p.m. 2 modules loaded
                                        16/03/2015 9:04 p.m. * Starting FOG.HostNameChanger
                                        16/03/2015 9:04 p.m. * Starting FOG.MODDebug
                                        16/03/2015 9:04 p.m. FOG::MODDebug Start Called
                                        16/03/2015 9:04 p.m. FOG::MODDebug Sleeping for 100 Seconds
                                        16/03/2015 9:04 p.m. FOG::HostnameChanger Starting hostname change process…
                                        16/03/2015 9:04 p.m. FOG::HostnameChanger Yielding to other subservices for 5 seconds.
                                        16/03/2015 9:04 p.m. FOG::HostnameChanger Attempting to connect to fog server…
                                        16/03/2015 9:04 p.m. FOG::HostnameChanger Module is active…
                                        16/03/2015 9:04 p.m. FOG::HostnameChanger AD mode requested, confirming settings.
                                        16/03/2015 9:04 p.m. FOG::HostnameChanger Padding is invalid and cannot be removed.
                                        16/03/2015 9:04 p.m. FOG::HostnameChanger at System.Security.Cryptography.RijndaelManagedTransform.DecryptData(Byte
                                        [] inputBuffer, Int32 inputOffset, Int32 inputCount, Byte[]& outputBuffer, Int32 outputOffset, PaddingMode paddingMode,
                                        Boolean fLast)
                                        at System.Security.Cryptography.RijndaelManagedTransform.TransformFinalBlock(Byte[] inputBuffer, Int32 inputOffset,
                                        Int32 inputCount)
                                        at System.Security.Cryptography.CryptoStream.FlushFinalBlock()
                                        at System.Security.Cryptography.CryptoStream.Dispose(Boolean disposing)
                                        at System.IO.Stream.Close()
                                        at FOG.FOGCrypt.decrypt(Byte[] cipherData, Byte[] Key, Byte[] IV)
                                        at FOG.FOGCrypt.decrypt(Byte[] cipherData, String Password)
                                        at FOG.FOGCrypt.decryptHex(String hex)
                                        at FOG.HostNameChanger.changeHostName()[/CODE]

                                        I’ve tried to fire up MonoDevelop, an IDE on Linux and to recompile this, but it seems my dll is not recognised unfortunately.

                                        1 Reply Last reply Reply Quote 0
                                        • B
                                          Berend de Boer
                                          last edited by Mar 16, 2015, 8:21 AM

                                          PS: it would be great if someone had a tip on how to compile HostnameChange.dll on Linux and produce a .dll that’s recognised. Then I could do some actual debugging!

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

                                          236

                                          Online

                                          12.0k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project