You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Hosts / Active Directory OU Browser Selection #1879
Hi,
I would like to suggest an improvement to the Host Management / Active Directory section to make domain and Organizational Unit (OU) selection easier.
Currently, users have to manually enter the Domain Name and the full LDAP path of the Organizational Unit.
It would be very useful to have a selectable OU browser, accessible through a button or clickable field next to the Organizational Unit field.
The idea would be to:
-Configure one or multiple Active Directory domains in the FOG settings.
-Configure a dedicated read-only Active Directory service account for each domain (or an account with access to multiple domains).
-Automatically retrieve the list of available Organizational Units OU and their sub-OUs from Active Directory, optionally starting from a specific base OU (e.g., OU=xxx).
-Display these OUs in a searchable list or hierarchical tree, similar to a small Active Directory browser.
-Allow users to select an OU, automatically filling in both the Domain Name and Organizational Unit fields with the correct values.
Ideally, this OU browser would not require any additional permissions beyond read-only access to Active Directory.
Design agreed for this request. It replaces the ou plugin with a new plugin, working name Directory Groups (directorygroups).
Plugin (directorygroups)
Keeps a list of domains. Each domain has its own server URI, read-only bind account, password, base DN and CA certificate.
Browses the OUs of each domain, from a configurable base OU, as a searchable tree.
Selecting an OU fills both the host's Domain Name and Organizational Unit fields.
Groups hosts by OU. This replaces the ou plugin's hand-entered OU list. Existing ou rows and host links are migrated on install.
Scope is OUs only. Security-group membership is not part of this request.
Core
Without the plugin, nothing changes. Placement uses the single FOG_DIRECTORY_* connection.
Two small hooks are added:
Placement fires an event before it connects, so the plugin can supply the connection for the host's domain.
The FOG Settings page fires an event that lets a plugin hide settings it replaces. When the plugin is installed, the FOG_DIRECTORY_* fields are hidden and the plugin's domain list is shown. When it is uninstalled, they come back.
On install, the plugin copies the current FOG_DIRECTORY_* connection in as its first domain.
Placement moves the computer account with an LDAP Modify DN. That needs Delete Computer objects on the OUs a host can leave and Create Computer objects on the OUs it can go to.
With a read-only account, browsing works and you can save an OU on the host. Placement then fails, the computer account stays where it is, and the Directory Membership report shows the error per host.
A read-only account is enough only when FOG_DIRECTORY_PLACEMENT_ENABLED is off.
Activity
mastacontrola commentedon Oct 16, 2026
Design agreed for this request. It replaces the
ouplugin with a new plugin, working name Directory Groups (directorygroups).Plugin (
directorygroups)ouplugin's hand-entered OU list. Existingourows and host links are migrated on install.Core
FOG_DIRECTORY_*connection.FOG_DIRECTORY_*fields are hidden and the plugin's domain list is shown. When it is uninstalled, they come back.FOG_DIRECTORY_*connection in as its first domain.List a domain's OUs, and declare the Directory Groups tables' keys
mastacontrola commentedon Oct 16, 2026
Shipped on working-1.6 and rc-1.6.0.
The
ouplugin stays installed after an upgrade. Install Directory Groups first, so it copies theoudata, then uninstallou.mastacontrola commentedon Oct 16, 2026
Correction to the design above: the bind account is not read-only when placement is on.
FOG_DIRECTORY_PLACEMENT_ENABLEDis off.Documented in FOGProject/fog-docs#200.
Fire ASSOCIATION_UPDATED, and declare directoryOUs.doGroupID
Pin fog-plugins v1.6.26
mastacontrola commentedon Oct 16, 2026
Follow-up shipped: each directory group is now a core group.
Shipped in:
A join account per domain is tracked in #1887.
Release candidate 1.6.0-RC-13