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

    Better OU Management

    Scheduled Pinned Locked Moved Solved
    Feature Request
    5
    10
    3.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.
    • Polii123P
      Polii123
      last edited by

      Hi

      It would be really nice if the management of the OUs in the Fog Settings would be a little more practical. At the moment i need to copy paste the field in to Notepad and copy it back after editing. Don’t know if this is even possible.
      Not a really important feature, but one that would make Fog easier to use.

      ch3iC Wayne WorkmanW 2 Replies Last reply Reply Quote 0
      • ch3iC
        ch3i Moderator @Polii123
        last edited by

        @Polii123 Maybe a text field 😉

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

          @Polii123 Maybe this will help, there is a way to set the default OU that a computer shows up in when it gets bound to a windows domain…

          http://pc-addicts.com/server-2012-change-default-ou/

          With that set, I don’t worry about setting the OU in FOG and don’t care, really. I can very easily take a minute or two out of my day to check my default OU, which I have named as “DEFAULT”, and just throwing computers from there to the proper OU, because our computer names are based on room numbers and locations and types, so are our OUs.

          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/

          ch3iC 1 Reply Last reply Reply Quote 0
          • ch3iC
            ch3i Moderator @Wayne Workman
            last edited by

            @Wayne-Workman said:

            @Polii123 Maybe this will help, there is a way to set the default OU that a computer shows up in when it gets bound to a windows domain…

            http://pc-addicts.com/server-2012-change-default-ou/

            With that set, I don’t worry about setting the OU in FOG and don’t care, really. I can very easily take a minute or two out of my day to check my default OU, which I have named as “DEFAULT”, and just throwing computers from there to the proper OU, because our computer names are based on room numbers and locations and types, so are our OUs.

            You can set multiple OUs in FOG_AD_DEFAULT_OU.

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

              @ch3i What would be super nice is if FOG could put a computer object into an existing Security Group…

              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/

              1 Reply Last reply Reply Quote 0
              • Polii123P
                Polii123
                last edited by

                Default OU doesn’t really help here. I just don’t like the way you have to edit the OUs in the Settings. As ch3i mentioned, a textbox instead of a field with one line would be a massive improvement.

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

                  SVN 3734 released to make the AD OU field in FOG Settings a text area.

                  Sorry I didn’t think it all the way through before.

                  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 2
                  • Polii123P
                    Polii123
                    last edited by

                    Great! Can i now hit enter after the pipe? By the way, it would make more sence if the name would be something diffrent then Default OU. Active Directory OUs for example.

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

                      It’s possible, but not simple at this point. If you’re familiar with PHP code, and may be able to help, let me know. I’m more focussed on getting things as Stable and speedy as possibly lately, if you cant tell.

                      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
                      • Lee RowlettL
                        Lee Rowlett Developer
                        last edited by

                        you could also set variables at registration stage in autoregister in the sense of if you know which OU a machine should go in by it’s naming convention (or by location if using location plugin) you could set it there and it gets set during registration then you never need to think about it and if it doesn’t match criteria revert back to defaultOU field… this potentially could be bundled into a simple plugin to hand OU … the limit really is endless (and i’m sure this code could be cleaned up a lot (Tom’d) and it’s quick and dirty but just so it’s simpler to follow…
                        for example:

                        		if($_REQUEST['doad'] == '1') {
                        		//Room/Location 1 Example Handler
                        			$r1chk = strpos($realhost, 'R1-');
                        			if ($r1chk !== false) {
                        				$r1 = "1";
                        		}
                        		//Room/Location 2 Example Handler
                        			$r2chk = strpos($realhost, 'R2-');
                        			if ($r2chk !== false) {
                        				$r2 = "1";
                        		}
                        		//Room/Location 3 Example Handler
                        			$r3chk = strpos($realhost, 'R3-');
                        			if ($r3chk !== false) {
                        				$r3 = "1";
                        		}
                        		//Room/Location 4 Example Handler etc...etc...
                        			$r4chk = strpos($realhost, 'R4-');
                        			if ($r4chk !== false) {
                        				$r4 = "1";
                        		}
                        
                        		if ($reallocid == "10" && $r1 != "1" && $r2 != "1" && $r3 != "1" && $r4 != "1") {
                        			$OUs = "OU=Location10,OU=Workstations,OU=Domain,DC=com";
                        		} else if if ($reallocid == "15" && $r1 != "1" && $r2 != "1" && $r3 != "1" && $r4 != "1")  {
                        			$OUs = "OU=Location15,OU=Workstations,OU=Domain,DC=com";
                        		} else if ($r1 == "1") {
                        			$OUs = "OU=Room1,OU=Workstations,OU=Domain,DC=com";
                        		} else if ($r2 == "1") {
                        			$OUs = "OU=Room2,OU=Workstations,OU=Domain,DC=com";
                        		} else if ($r3 == "1") {
                        			$OUs = "OU=Room3,OU=Workstations,OU=Domain,DC=com";
                        		} else if ($r4 == "1") {
                        			$OUs = "OU=Room4,OU=Workstations,OU=Domain,DC=com";
                        		} else {
                        			$OUs = explode('|',$FOGCore->getSetting('FOG_AD_DEFAULT_OU'));
                        		}
                        
                        1 Reply Last reply Reply Quote 1
                        • 1 / 1
                        • First post
                          Last post

                        208

                        Online

                        12.0k

                        Users

                        17.3k

                        Topics

                        155.2k

                        Posts
                        Copyright © 2012-2024 FOG Project