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

FOG Change Domain OU

Scheduled Pinned Locked Moved
Feature Request
4
9
2.4k
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.
  • G
    Greg Plamondon Testers
    last edited by Tom Elliott Jul 19, 2016, 10:56 AM Jul 19, 2016, 4:44 PM

    I think it would be great if FOG would change OU if it detects that the host assigned OU has changed, and it is not within the specified OU. Right now, if the PC already exists in AD it will not perform any more actions. It would be extremely beneficial as we have limited some of our admins and they are unable to move hosts to a different OU.

    The user assigned in FOG that enables domain domain joining does have permission to perform the OU moves. This is simply a request to enable more automated tracking and changing as possible.

    W 1 Reply Last reply Jul 19, 2016, 4:49 PM Reply Quote 0
    • W
      Wayne Workman @Greg Plamondon
      last edited by Jul 19, 2016, 4:49 PM

      @Greg-Plamondon said in FOG Change Domain OU:

      We have admins here that do not have the permissions to AD to remove or move a pc to another OU.

      Fog would need credentials that have permission to do it - either way.

      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!
      Daily Clean Installation Results:
      https://fogtesting.fogproject.us/
      FOG Reporting:
      https://fog-external-reporting-results.fogproject.us/

      T G 2 Replies Last reply Jul 19, 2016, 4:57 PM Reply Quote 0
      • T
        Tom Elliott @Wayne Workman
        last edited by Jul 19, 2016, 4:57 PM

        @Wayne-Workman I edited the information to clarify what is needed.

        I think it boils down that he’s trying to limit admin access, and if the wrong OU is assigned when the host joins the domain, changing the OU becomes a bit more difficult. I don’t even know if it’s possible, but I think such a feature could prove extremely helpful.

        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

        G 1 Reply Last reply Jul 19, 2016, 5:25 PM Reply Quote 0
        • G
          george1421 Moderator @Tom Elliott
          last edited by george1421 Jul 19, 2016, 11:27 AM Jul 19, 2016, 5:25 PM

          @Tom-Elliott The fog client could do this with a bit of coding (I actually have a script that does this in the windows realm. We deploy to a build up OU then on first run the script moves the target to the defined OU. A post install script sets this up during imaging, but that is a bit off point).

          The FOG client will need to know the admin user to connect to AD with that has sufficient rights to move/change OU affiliation.

          The vbscript to do this is pretty simple.

          Set wshNetwork = CreateObject("WScript.Network")
          Set objSysInfo = CreateObject( "ADSystemInfo" )
          
          strMachineObjectOU = "ou=newou,dc=domain,dc=com"
          strComputerDN = objSysInfo.ComputerName
          
          nComma = InStr(strComputerDN,",")
          strCurrentOU = Mid(strComputerDN,nComma+1)
          strComputerName = Left(strComputerDN,nComma - 1)
           
          ' Just make sure the new OU is different than old OU else no value to move it
          If UCase(strCurrentOU) <> UCase(strMachineObjectOU) Then
              Set objNewOU = GetObject("LDAP://" & strMachineObjectOU)
              Set objMoveComputer = objNewOU.MoveHere("LDAP://" & strComputerDN, strComputerName)
          End If
          
          Set wshNetwork = Nothing
          Set objSysInfo = Nothing
          

          The FOG server will need to detect the change in OU and inform the FOG client to move itself.

          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!

          1 Reply Last reply Reply Quote 2
          • G
            Greg Plamondon Testers @Wayne Workman
            last edited by Jul 21, 2016, 5:48 PM

            @Wayne-Workman said in FOG Change Domain OU:

            @Greg-Plamondon said in FOG Change Domain OU:

            We have admins here that do not have the permissions to AD to remove or move a pc to another OU.

            Fog would need credentials that have permission to do it - either way.

            Doesn’t fog have the credentials already?
            0_1469123229964_fogad.PNG

            G 1 Reply Last reply Jul 21, 2016, 5:57 PM Reply Quote 0
            • G
              george1421 Moderator @Greg Plamondon
              last edited by Jul 21, 2016, 5:57 PM

              @Greg-Plamondon Yes those are the required credentials.

              It sounds like FOG has all of the bits required (on the surface) to do this. I would recommend that you create a feature request post with your needs and then reference this thread.

              (this is an outside view of the code) But, there will need to be some coding changes on the FOG server and the FOG client to achieve this request.

              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!

              T 1 Reply Last reply Jul 21, 2016, 5:58 PM Reply Quote 0
              • T
                Tom Elliott @george1421
                last edited by Jul 21, 2016, 5:58 PM

                @george1421 This is a feature request.

                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

                G 1 Reply Last reply Jul 21, 2016, 6:12 PM Reply Quote 1
                • G
                  george1421 Moderator @Tom Elliott
                  last edited by Jul 21, 2016, 6:12 PM

                  @Tom-Elliott said in FOG Change Domain OU:

                  @george1421 This is a feature request.

                  Why yes it is… I looked at the URL and not the bread crumbs. Obviously I don’t know where the heck I’m at today.

                  mea culpa

                  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!

                  1 Reply Last reply Reply Quote 0
                  • T
                    Tom Elliott
                    last edited by Jul 21, 2016, 6:13 PM

                    All okay.

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

                    147

                    Online

                    12.1k

                    Users

                    17.3k

                    Topics

                    155.4k

                    Posts
                    Copyright © 2012-2024 FOG Project