I may make a similar methodology as I do for giving the OU dropdowns a shot.
For those of you just tuning in, FOG, since 1.2.0 at least, has a pretty sweet option.
From FOG Configuration->FOG Settings->Active Directory Defaults you update your AD information which get’s pulled on a host when you click the checkbox or say yes during registration. This is pretty well known about. However, With the release of 1.2.0 (Maybe earlier even?) we added the ability to make the OU a dropdown box. Mostly this is for ease as having to type an OU is pretty confusing, especially if you have to do so on a per-host setup.
The way the OU currently can operate:
- Text
– This is simple text as FOG is already Known About
- Select Box (Drop Down Selector)
– This is how you can associate multiple OU’s for selection to other hosts.
We all know the original Text field, and this is still the case on the FOG Configuration Page. To make a dropdown:
- Go to where FOG_AD_DEFAULT_OU is set.
- Make a list of your OU’s you want to allow association with.
- Create the Associations in the FOG_AD_DEFAULT_OU field.
- Choose either host or group and set the desired OU based on the Drop down.
To create the dropdown, the OU field accepts two delimeters.
First delimeter is the | (Pipe) symbol. This is how you separate each OU. For example
test|test2||test3|test4
The above example would give a drop down that looks like:

The second delimeter is the ; (Semicolon) symbol. This is how you distinguish the default selected item. If I make the ou field set to:
test|test2|;|test3|test4
THe above example would give a dropdown that looks like:

It’s important to note that the ; and | goes after the field. You can place blank spots, and you, technically, can place multiple semicolons. However, the multiple semicolons may confuse things down the road.
A similar approach to this field could be adapted to domain, user, password fields as well.