Better OU Management
-
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. -
@Polii123 Maybe a text field
-
@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.
-
@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.
-
@ch3i What would be super nice is if FOG could put a computer object into an existing Security Group…
-
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.
-
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.
-
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.
-
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.
-
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')); }