Can't add AD OU in 1.1.2
-
Fresh install of Fog v 1.1.2. After I create a host, I go into the Active Directory section to define how it should join the domain. “Organizational Unit” now appears to be a drop-down menu instead of an editable text field. Putting in the domain admin credentials doesn’t populate the drop-down, and I can’t enter anything in it. Is there somewhere else I should be entering the OU info?[ATTACH=full]1086[/ATTACH]
[url=“/_imported_xf_attachments/1/1086_AD SS.png?:”]AD SS.png[/url]
-
The editable text field is over in Fog Configuration > Fog Settings > Active Directory Defaults. You can put the default OU there and it’ll be selectable in the dropdown.
-
This field has been changed to make life easier, just documentation hasn’t been built for it yet and for that I’m sorry.
The basic way this field works.
You can add a listing of OU’s so you can select per host/per group.
You use the delimiter of the | (pipe) character to build the selectable fields
Example:
[code]OU=MYDOMAINBLAHBLABH|OU=MYDOMAIN2BLANBLABH[/code]With it set as such, your “dropdown” becomes:
OU=MYDOMAINBLAHBLABH
OU=MYDOMAIN2BLANBLABHTo select which OU you want defaulted you end the domain you want as default with a ; (semicolon) character so:
Example:
[code]OU=MYDOMAINBLAHBLABH;|OU=MYDOMAIN2BLANBLABH[/code]Would build a menu item as above, but automatically select OU=MYDOMAINBLAHBLABH
If you wanted “blank” ou as default you can just do:
[code];|OU=MYDOMAINBLAHBLABH|OU=MYDOMAIN2BLANBLABH[/code] -
No need to apologize. Thanks so much for all of your work.
-
While this is much friendlier for those adverse to typing, I’ve got a couple hundred OUs to pipe into that one line now. Would it be possible to at least make the settings edit-able on a host and group level?
-
In SVN I’ve fixed it so if the OU field is blank or only has one entry, the host and group settings adou are text fields.
-
OK. What file is that in so that I can just pull that?
-
-
Thanks, that made my day a lot easier.
-
Tom, seems that the fancy new features on the new group page are really slowing things down for me. Could you make a new version of the “orig” file with the AD settings fixed the same way?
-
SVN 1855 is before I added the “select” box, but that said, how is it slowing things down?
The files I’ve provided for you mean, if you only have one or no elements in the FOG_AD_DEFAULT_OU the fields on the groups and host become text boxes. If you want to go back to svn 1855 that’s fine.
[url]https://sourceforge.net/p/freeghost/code/1855/tree/trunk/packages/web/lib/pages/HostManagementPage.class.php[/url]
[url]https://sourceforge.net/p/freeghost/code/1855/tree/trunk/packages/web/lib/pages/GroupManagementPage.class.php[/url] -
Thanks, that’ll work well enough for now.
With the newest version of GroupManagementPage.class.php, clicking on a group from search results takes several minutes to load, as do most changes to the group once it finally loads. During these times, apache is pegging a CPU core or two.