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

    Unable to join deployed PC to domain

    Scheduled Pinned Locked Moved
    Windows Problems
    3
    10
    919
    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.
    • C
      cwu_doug
      last edited by

      Hi,

      After deploying a Win10 machine, I had configured Active Directory within Fog management:

      Domain: domainName.local
      Join after Deploy: ticked
      OU: Left blank
      Username: domainName\AdminUsername
      Password: AdminPassword
      Password legacy: Left blank
      Name change: ticked

      I get the following message:

      HostnameChanger Logon failure: unknown username or bad password, code = 1326

      I checked other forums and I tried without domain in username still same issue. I used Add-Computer CMDlet and joins the PC manually with no issues.

      There is no NetDom command in Windows 10, so not sure if this may be an issue?

      Otherwise can anyone see any issues?

      Thanks

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

        @cwu_doug See my post here: https://forums.fogproject.org/post/131725

        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

        C 1 Reply Last reply Reply Quote 0
        • C
          cwu_doug @Sebastian Roth
          last edited by cwu_doug

          @sebastian-roth Thanks, I did use domain\username and also username and still same issue.

          Using Fog 1.5.9
          Fog client 0.12.0

          When I use the Fog debugger, the FogCycle.txt returns the ADUser field as “Domain.local\\username”

          Should that be correct? I am using just username in the field on the FOG GUI.

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

            @cwu_doug Is this a fully AD or some kind of small business server?

            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

            C 1 Reply Last reply Reply Quote 0
            • C
              cwu_doug @Sebastian Roth
              last edited by

              @sebastian-roth We have AD on Win Server 2016, however FOG is running on Ubuntu on XenServer.

              Is that what you was asking?

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

                @cwu_doug said in Unable to join deployed PC to domain:

                We have AD on Win Server 2016

                Ok, this sounds like a full AD - not small business stuff.

                When I use the Fog debugger, the FogCycle.txt returns the ADUser field as “Domain.local\username”

                Yes the FOG server actually prepends the domain to the username: https://github.com/FOGProject/fogproject/blob/master/packages/web/lib/client/hostnamechanger.class.php#L65

                Well, I can tell you the domain join is working for many people and the error code 1326 is pretty clear. Must be an authentication 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

                C 1 Reply Last reply Reply Quote 0
                • ayy_nelsonA
                  ayy_nelson
                  last edited by

                  What is the domain functional level of your DC?

                  I remember having difficulty with 2008 domain level, and I ended up having to join the domain in powershell instead of the FOG. Notice that domain does not have the .local part of it. That reallllly tripped me up for a while. Alternatively, I learned that you can do username@domain.local… at least when setting the autologin registry setting. I have not tested that in your use case, but it is something new to try 🙂

                  $domain = “domain”
                  $password = “notpassword” | ConvertTo-SecureString -asPlainText -Force
                  $username = “$domain\domainadmin”
                  $credential = New-Object System.Management.Automation.PSCredential($username,$password)
                  Add-Computer -DomainName $domain -Credential $credential -OUPath “OU=FOGBuilt,OU=Computers,OU=main,DC=domain,DC=LOCAL”

                  C 1 Reply Last reply Reply Quote 1
                  • C
                    cwu_doug @Sebastian Roth
                    last edited by

                    @sebastian-roth OK I see, it actually returns two backslashes “\” between the domain and username. Using FogDebugger

                    So was thinking was it not parsing through to the client correctly

                    1 Reply Last reply Reply Quote 0
                    • C
                      cwu_doug @ayy_nelson
                      last edited by

                      @ayy_nelson Ah the DFL is Windows Server 2008 R2.

                      Would you think this would be the sole reason FOG is incompatible with this type of version?

                      I am looking into running it via a script, but would love to get the domain join on FOG working, if it’s possible!

                      Thanks again!

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

                        @ayy_nelson @cwu_doug Thanks a lot for your feedback on this. I didn’t know 2008 DFL is an issue. Will keep that in mind.

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

                        173

                        Online

                        12.0k

                        Users

                        17.3k

                        Topics

                        155.2k

                        Posts
                        Copyright © 2012-2024 FOG Project