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

    FOG::HostnameChanger Domain Error! ('Unknown Error' Code: 2)

    Scheduled Pinned Locked Moved
    FOG Problems
    2
    5
    2.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.
    • S
      scottmcmullan8
      last edited by

      Hi,

      I am having trouble with getting fog to add machines to the domain. This was working fine and has recently just stopped and I cannot figure out what has changed.

      I get as far as the image being deployed and in the fog log it says 20/04/2015 09:51 FOG::HostnameChanger Domain Error! (‘Unknown Error’ Code: 2)

      I am not sure what the error code 2 means.

      I have tried changing he password and rebuilt the dll and used fog crypt. When I do this it brings up a different error message which I searched for and it states it is something to do with the password. So I am sure that error code 2 is not password related? I have also checked the hostname changer service is running and that the OU directory listed is correct.

      Help?

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

        What OU have you got set? If you just want them to join the domain to the default Computers Group, remove this from the OU field.

        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
        • S
          scottmcmullan8
          last edited by

          I have previously had fog set up to join different OUs depending on the department the machine will be located. Separated by the | symbol and the default OU being set by the ;

          It use to work a treat but I have since removed all this to try and fix the current issue. Still the same message in the log file and it is just not joining the domain. Not sure what it is failing on as it says HostnameChanger Domain Error! (‘Unknown Error’ Code: 2)

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

            The error codes you see are coming from Microsoft. What I told you above is correct. The OU parameter is incorrect, or it’s trying to move the system to the Default OU. The Error code 2 means it’s having issues placing the system into the OU.

            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
            • S
              scottmcmullan8
              last edited by

              Ah ok I understand now - brilliant this has resolved the issue I wasn’t aware that specifying the default OU would have a knock on effect.

              Thanks again for your help

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

              150

              Online

              12.0k

              Users

              17.3k

              Topics

              155.2k

              Posts
              Copyright © 2012-2024 FOG Project