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

Domain Join Question

Scheduled Pinned Locked Moved
General
3
22
8.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.
  • B
    BigMan99211
    last edited by Feb 24, 2014, 8:01 PM

    Wasn’t sure which topic to post this under.

    What order does FOG join a host to the domain? Let’s say that I already have a host set up, and I want FOG to join it to the domain after imaging, but I want it to be named correctly first, as I have “*” set for ComputerName in Sysprep. Will FOG rename first, or does it join the domain, then rename, if I check the Join Domain option?

    "Failure is not an option. It come pre-installed on Windows…" - Anonymous

    "Life is hard; It's harder if you're stupid" - John Wayne

    1 Reply Last reply Reply Quote 0
    • T
      Tom Elliott
      last edited by Feb 24, 2014, 8:03 PM

      Here’s the code:
      [php] // Send the information.
      print ‘#!ok=’.$Host->get(‘name’).“\n”;
      print ‘#AD=’.$Host->get(‘useAD’).“\n”;
      print ‘#ADDom=’.$Host->get(‘ADDomain’).“\n”;
      print ‘#ADOU=’.$Host->get(‘ADOU’).“\n”;
      print ‘#ADUser=’.$Host->get(‘ADUser’).“\n”;
      print ‘#ADPass=’.$Host->get(‘ADPass’);[/php]

      So it changes name, then joins to domain.

      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
        BigMan99211
        last edited by Feb 24, 2014, 8:23 PM

        Awesome! Thanks, Tom! 🙂

        "Failure is not an option. It come pre-installed on Windows…" - Anonymous

        "Life is hard; It's harder if you're stupid" - John Wayne

        1 Reply Last reply Reply Quote 0
        • B
          BigMan99211
          last edited by Feb 24, 2014, 11:10 PM

          One more question though… Is there any manual way to add to domain through FOG? Like, an option to go to a specific host and just click a button that says “Add to Domain Now” or something like that?

          "Failure is not an option. It come pre-installed on Windows…" - Anonymous

          "Life is hard; It's harder if you're stupid" - John Wayne

          1 Reply Last reply Reply Quote 0
          • T
            Tom Elliott
            last edited by Feb 24, 2014, 11:12 PM

            No, and I don’t think there could be. It’s up to the client to checkin, not the server checkin with the client. Otherwise we’d have a heck of a mess in network traffic I’d think.

            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
              BigMan99211
              last edited by Feb 25, 2014, 3:48 AM

              From what I know of client/server software like this, the way around it is to just have the server tell the client to “refresh” it’s check-in timer. This causes the client to check for changes. But, you only do this when you want to make a change right then. I know that’s how Ghost Console did it. If you execute a task, it just tells the client to check in. The server isn’t initiating anything other than that.

              But, then again, I don’t really understand how that would cause any more or less traffic, than having the server side push changes to the clients…

              "Failure is not an option. It come pre-installed on Windows…" - Anonymous

              "Life is hard; It's harder if you're stupid" - John Wayne

              1 Reply Last reply Reply Quote 0
              • T
                Tom Elliott
                last edited by Feb 25, 2014, 11:18 AM

                In FOG’s case, its based on the client and it’s refresh times to checkin with the server. We don’t have cross communication between the two as there’s no network connectivity in that regard. Maybe ghost had a client that maintained an open port on the system, but fog doesn’t so theres truly no way, for now, get have the server tell the client to check in.

                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
                  BigMan99211
                  last edited by Feb 25, 2014, 1:38 PM

                  Is it possible to at least, create a task for joining the domain alone, instead of only joining after imaging? So, next time the client checks in, it just runs said task…

                  "Failure is not an option. It come pre-installed on Windows…" - Anonymous

                  "Life is hard; It's harder if you're stupid" - John Wayne

                  1 Reply Last reply Reply Quote 0
                  • T
                    Tom Elliott
                    last edited by Feb 25, 2014, 1:48 PM

                    Dude, I don’t know.

                    I didn’t code the service files at all. It works as it always had. I don’t know what else to tell you.

                    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
                      BigMan99211
                      last edited by Feb 25, 2014, 2:44 PM

                      Where are these service files located? I’ll look for myself…

                      Edit - Nevermind… I found it.

                      "Failure is not an option. It come pre-installed on Windows…" - Anonymous

                      "Life is hard; It's harder if you're stupid" - John Wayne

                      1 Reply Last reply Reply Quote 0
                      • T
                        Tom Elliott
                        last edited by Feb 25, 2014, 2:51 PM

                        Which services files are you referring to? The files found in /var/www/{fogwebdir}/service/ are not the ones that I’m referring to. If you need the files that actually perform the checkin’s they’re located if you’ve checked out the trunk in trunk/FOG Service/

                        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
                          BigMan99211
                          last edited by Feb 25, 2014, 3:34 PM

                          I’m actually looking for the command that tells the machine to add to domain. The part that would run right after imaging… It has to be fairly simple to pull that portion out and place it somewhere as it’s own callable function.

                          "Failure is not an option. It come pre-installed on Windows…" - Anonymous

                          "Life is hard; It's harder if you're stupid" - John Wayne

                          1 Reply Last reply Reply Quote 0
                          • L
                            Lee Rowlett Developer
                            last edited by Mar 2, 2014, 11:38 AM

                            it’s not just joining after imaging - the client service will join to the domain at the next time it checks in with the server as long as domain join is set/checked under host information and the client checks in as pretty instant the first time the service starts/restarts so the easiest way without you having to mess with code is to just restart the fog service on the remote machine as long as you have admin rights to that machine just run this from command line (a windows machine):

                            sc.exe \machine restart “FOG Service”

                            1 Reply Last reply Reply Quote 0
                            • T
                              Tom Elliott
                              last edited by Mar 2, 2014, 1:37 PM

                              Or you can use the command on the location system with Command Prompt (as administrator) with:
                              [code]net stop “FOG Service”
                              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
                              • B
                                BigMan99211
                                last edited by Mar 3, 2014, 9:39 PM

                                I’m noticing that my “hostnamechanger” component isn’t running anymore. When the machine boots, the log is only showing “UserTracker”, “SnapinClient”, “DirCleaner”, “GUIWatcher”, and “MODDebug”. This is the same image i’ve been working with for a while now… I’m going to uninstall the client and reinstall to see if it helps.

                                As for adding to the domain, i’ve managed to get this to run one time, but it failed and this is what the log said… [ATTACH=full]569[/ATTACH]

                                [url=“/_imported_xf_attachments/0/569_20140224_182410_resized.jpg?:”]20140224_182410_resized.jpg[/url]

                                "Failure is not an option. It come pre-installed on Windows…" - Anonymous

                                "Life is hard; It's harder if you're stupid" - John Wayne

                                1 Reply Last reply Reply Quote 0
                                • Tom ElliottT
                                  Tom Elliott
                                  last edited by Mar 3, 2014, 11:28 PM

                                  It looks like domain joining is working, until it tries sending the data back to the host. This isn’t an issue in the hostname.php file, but rather looks to me like the password being sent isn’t encrypted, or there’s a blank username being send. Maybe the password is wrong?

                                  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
                                    BigMan99211
                                    last edited by Mar 4, 2014, 3:23 PM

                                    I was reading some other forum posts last night and now that you said something about the password not being encrypted… Do I have to encrypt it? Also, I read that you have to put the domain before the username (domain\username). Is this true?

                                    Even if I set those settings right, i’m still having the issue of “hostnamechanger” not running. At least I’m not seeing in fog.log.

                                    "Failure is not an option. It come pre-installed on Windows…" - Anonymous

                                    "Life is hard; It's harder if you're stupid" - John Wayne

                                    1 Reply Last reply Reply Quote 0
                                    • Tom ElliottT
                                      Tom Elliott
                                      last edited by Mar 4, 2014, 3:54 PM

                                      Did the hostname change happen with the imaging process? Is the hostname set properly already? If it is, it’s not going to change the name because it’s already set.

                                      I believe you do need to have the username as: domain\user or user@domain.

                                      The password does need to be encrypted.

                                      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
                                        BigMan99211
                                        last edited by Mar 4, 2014, 7:27 PM

                                        No, I don’t have the hostname set during the imaging process. In my unattend.xml, I have put in “<ComputerName>*</ComputerName>”, so the imaged machine gets a randomly generated computer name. After the unattend process runs, the machine reboots, but nothing happens once it gets back to the login screen. It worked fine a few weeks ago. Also, when I check fog.log, there aren’t any entries from hostnamechanger at all. The only other thing I’m thinking is, maybe it got disabled in the client. Is there a way to check, without removing and reinstalling the client software?

                                        "Failure is not an option. It come pre-installed on Windows…" - Anonymous

                                        "Life is hard; It's harder if you're stupid" - John Wayne

                                        1 Reply Last reply Reply Quote 0
                                        • Tom ElliottT
                                          Tom Elliott
                                          last edited by Mar 4, 2014, 7:43 PM

                                          Yes, check the host service settings.

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

                                          169

                                          Online

                                          12.0k

                                          Users

                                          17.3k

                                          Topics

                                          155.2k

                                          Posts
                                          Copyright © 2012-2024 FOG Project