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

    AD join problems

    Scheduled Pinned Locked Moved Unsolved FOG Problems
    6 Posts 2 Posters 63 Views
    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.
    • A
      AdamC
      last edited by

      Hi,

      I’m running 1.6.0.158.

      When I deploy a machine it does not join the domain and in the agent log I’m seeing “rejoin: blocked (directory_observation_unknown)”

      On Fog server, in the host record, I’m seeing:

      Host_AD_issue.png

      It’s the same for all hosts in my system.

      I’ve confirmed the LDAP connection using ldapsearch.

      Any help would be appreciated.

      Thank you,

      Adam

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

        @AdamC Hi Adam,

        directory_observation_unknown means the server does not know this PC is in a workgroup. A workgroup PC gets its own join path. Without that flag, the server waits for a domain controller and a secure channel that a fresh image does not have.

        The agent reports workgroup membership only when that report changes. If your agents first reported on 1.6.0 or 1.6.0.14, and you then upgraded to 1.6.0.158, the server never received the report in the form it now needs. That matches “the same for all hosts”.

        Two questions:

        • Did you upgrade this server from 1.6.0 or 1.6.0.14?
        • Which fog-agent version do the hosts run?

        This should make each agent send its report again on the next poll. It clears a cached hash only, no host data:

        DELETE FROM hostFactState WHERE hfsKind = 'directory';
        

        Run it in the fog database, then wait one agent poll. Tell us if the join starts.

        “Current directory observation does not match this host” is expected for a PC that is not joined yet. “Target lookup is unavailable” is a separate check for existing computer accounts. A workgroup join does not use it.

        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
        • A
          AdamC
          last edited by

          Hi Tom,

          I did upgrade from 1.6.0.14.

          I’ve tried almost every agent version from 1.20 to 1.28

          I’m still seeing the same errors after running the database command you suggested.

          Note that I get “Target lookup is unavailable” on all of my machines, and most of them are joined to the domain.

          Host_AD_issue2.png

          Is there a way to validate Fogs AD configuration?

          Thanks,

          Adam

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

            @AdamC Hi Adam,

            Thanks. The upgrade from 1.6.0.14 fits the cause, but the SQL should have cleared it. So something else is in play on your server.

            “Target lookup is unavailable” is a separate issue. FOG does its own LDAP lookup from the server with the settings in FOG Configuration > FOG Settings > FOG Directory: FOG_DIRECTORY_LDAP_URI, FOG_DIRECTORY_BIND_DN, the bind password, FOG_DIRECTORY_BASE_DN, and FOG_DIRECTORY_CA_CERT. Your ldapsearch test does not use those settings. If they are empty, or the bind fails, every host shows that line. That lookup finds an existing computer account for a rejoin or an OU move. A workgroup PC that joins does not use it, so it does not block the join.

            For one PC that does not join, please post:

            • A screenshot of its Active Directory tab, the same view as your first picture.
            • The lines that contain rejoin or directory from C:\ProgramData\FOG\fog-agent.log, from one poll after the SQL.
            • The output of this query, with that host’s name:
            SELECT h.hostName, d.hdJoined, d.hdKind, d.hdDomain, d.hdRejoinState
            FROM hosts h JOIN hostDirectory d ON d.hdHostID = h.hostID
            WHERE h.hostName = 'PCNAME';
            

            That shows what the agent reported and what the server stored.

            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
            • A
              AdamC
              last edited by

              Host_AD_issue3.png

              directory rejoin: blocked (directory_observation_unknown)

              | hostName | hdJoined | hdKind | hdDomain | hdRejoinState |
              ±------------±---------±----------±---------±--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
              | gsb-240-w01 | 0 | workgroup | | {“version”:1,“protocol”:2,“placement_hold”:true,“observation”:{“current_name”:“gsb-240-w01”,“pending_name”:“gsb-240-w01”,“domain”:“”,“netbios”:“”,“role”:“workstation”,“secure_channel”:“unknown”,“boot”:{“marker”:“ce623c08-6eb4-49c0-8405-d70714c439e8”,“started”:“2026-11-25T13:55:17.5Z”},“revision”:“d048894c3d8e49235e320ea4a3b170d6”,“dc”:“<removed but valid - Adam>”,“dc_reachable”:true},“observed_at”:1795617039} |

              1 Reply Last reply Reply Quote 0
              • A
                AdamC
                last edited by

                I should have noted, the machine in question does not currently have a domain account. So it’s trying to join, not rejoin.

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

                52

                Online

                12.8k

                Users

                17.7k

                Topics

                157.5k

                Posts
                Copyright © 2012-2026 FOG Project