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

    FOG Change Domain OU

    Scheduled Pinned Locked Moved
    Feature Request
    4
    9
    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.
    • Greg PlamondonG
      Greg Plamondon Testers
      last edited by Tom Elliott

      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.

      Wayne WorkmanW 1 Reply Last reply Reply Quote 0
      • Wayne WorkmanW
        Wayne Workman @Greg Plamondon
        last edited by

        @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/

        Tom ElliottT Greg PlamondonG 2 Replies Last reply Reply Quote 0
        • Tom ElliottT
          Tom Elliott @Wayne Workman
          last edited by

          @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

          george1421G 1 Reply Last reply Reply Quote 0
          • george1421G
            george1421 Moderator @Tom Elliott
            last edited by george1421

            @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
            • Greg PlamondonG
              Greg Plamondon Testers @Wayne Workman
              last edited by

              @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

              george1421G 1 Reply Last reply Reply Quote 0
              • george1421G
                george1421 Moderator @Greg Plamondon
                last edited by

                @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!

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

                  @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

                  george1421G 1 Reply Last reply Reply Quote 1
                  • george1421G
                    george1421 Moderator @Tom Elliott
                    last edited by

                    @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
                    • Tom ElliottT
                      Tom Elliott
                      last edited by

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

                      214

                      Online

                      12.0k

                      Users

                      17.3k

                      Topics

                      155.2k

                      Posts
                      Copyright © 2012-2024 FOG Project