LDAP User Directory
Explanation
Defines how to connect to LDAP server and retrieve user information used in User Data section
Note that the password to bind to LDAP server is stored unencrypted in client system's registry; you should use a restricted search account (only able to perform LDAP searches).
User unique attribute must correspond to the logged on user's Windows user name without domain.
This setting only takes effect in Collabora Office Classic and LibreOffice.
Registry
HKEY_LOCAL_MACHINE\Software\Policies\LibreOffice\org.openoffice.LDAP\UserDirectoryHKEY_CURRENT_USER\Software\Policies\LibreOffice\org.openoffice.LDAP\UserDirectory- Value name
- not defined in the ADMX
Enable / disable values: not defined in the ADMX (see the options below).
PowerShell
PowerShell commands that write to the registry what the policy would write. Values in angle brackets (<…>) must be replaced.
Writing directly to the registry bypasses Group Policy: if a GPO manages this value, it will be rewritten at the next gpupdate; otherwise the value stays in place (the "tattooing" effect). Prefer a GPO or, locally, LGPO.exe. Run PowerShell as administrator for HKLM. Some policies need a restart or gpupdate /force.
Computer (HKLM)
Enable
# Enable: Collabora-Office/LDAPConfigBackendSettings
$k = 'HKLM:\Software\Policies\LibreOffice\org.openoffice.LDAP\UserDirectory\ServerDefinition\Server'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Server
Set-ItemProperty -Path $k -Name 'Value' -Value '<value>' -Type String
$k = 'HKLM:\Software\Policies\LibreOffice\org.openoffice.LDAP\UserDirectory\ServerDefinition\Port'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Port
Set-ItemProperty -Path $k -Name 'Value' -Value '389' -Type String
$k = 'HKLM:\Software\Policies\LibreOffice\org.openoffice.LDAP\UserDirectory\SearchUser'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Username to bind
Set-ItemProperty -Path $k -Name 'Value' -Value '<value>' -Type String
$k = 'HKLM:\Software\Policies\LibreOffice\org.openoffice.LDAP\UserDirectory\SearchPassword'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Password to bind
Set-ItemProperty -Path $k -Name 'Value' -Value '<value>' -Type String
$k = 'HKLM:\Software\Policies\LibreOffice\org.openoffice.LDAP\UserDirectory\ServerDefinition\BaseDN'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# Base DN for search
Set-ItemProperty -Path $k -Name 'Value' -Value '<value>' -Type String
$k = 'HKLM:\Software\Policies\LibreOffice\org.openoffice.LDAP\UserDirectory\UserObjectClass'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# User object class
Set-ItemProperty -Path $k -Name 'Value' -Value '<value>' -Type String
$k = 'HKLM:\Software\Policies\LibreOffice\org.openoffice.LDAP\UserDirectory\UserUniqueAttribute'
if (-not (Test-Path -Path $k)) { New-Item -Path $k -Force | Out-Null }
# User unique attribute
Set-ItemProperty -Path $k -Name 'Value' -Value '<value>' -Type StringDisable
# Disable: Collabora-Office/LDAPConfigBackendSettings
# No value is written in the "Disabled" state (nothing defined in the ADMX)Revert to "Not configured"
# Revert to "Not configured": Collabora-Office/LDAPConfigBackendSettings
$k = 'HKLM:\Software\Policies\LibreOffice\org.openoffice.LDAP\UserDirectory\ServerDefinition\Server'
Remove-ItemProperty -Path $k -Name 'Value' -ErrorAction SilentlyContinue
$k = 'HKLM:\Software\Policies\LibreOffice\org.openoffice.LDAP\UserDirectory\ServerDefinition\Port'
Remove-ItemProperty -Path $k -Name 'Value' -ErrorAction SilentlyContinue
$k = 'HKLM:\Software\Policies\LibreOffice\org.openoffice.LDAP\UserDirectory\SearchUser'
Remove-ItemProperty -Path $k -Name 'Value' -ErrorAction SilentlyContinue
$k = 'HKLM:\Software\Policies\LibreOffice\org.openoffice.LDAP\UserDirectory\SearchPassword'
Remove-ItemProperty -Path $k -Name 'Value' -ErrorAction SilentlyContinue
$k = 'HKLM:\Software\Policies\LibreOffice\org.openoffice.LDAP\UserDirectory\ServerDefinition\BaseDN'
Remove-ItemProperty -Path $k -Name 'Value' -ErrorAction SilentlyContinue
$k = 'HKLM:\Software\Policies\LibreOffice\org.openoffice.LDAP\UserDirectory\UserObjectClass'
Remove-ItemProperty -Path $k -Name 'Value' -ErrorAction SilentlyContinue
$k = 'HKLM:\Software\Policies\LibreOffice\org.openoffice.LDAP\UserDirectory\UserUniqueAttribute'
Remove-ItemProperty -Path $k -Name 'Value' -ErrorAction SilentlyContinueUser (HKCU)
Enable
Disable
Revert to "Not configured"
Options (7)
| Label | Control | Registry value | REG type | Constraints / details |
|---|---|---|---|---|
| Server:LDAPUDServerDefinition_Server | Text boxtext | Valuein Software\Policies\LibreOffice\org.openoffice.LDAP\UserDirectory\ServerDefinition\Server | REG_SZ | Default (UI): example.com |
| Port:LDAPUDServerDefinition_Port | Numeric boxdecimal | Valuein Software\Policies\LibreOffice\org.openoffice.LDAP\UserDirectory\ServerDefinition\Port | REG_SZ | Default (UI): 389 |
| Username to bind:LDAPUDSearchUser | Text boxtext | Valuein Software\Policies\LibreOffice\org.openoffice.LDAP\UserDirectory\SearchUser | REG_SZ | Default (UI): example\bindLdap |
| Password to bind:LDAPUDSearchPassword | Text boxtext | Valuein Software\Policies\LibreOffice\org.openoffice.LDAP\UserDirectory\SearchPassword | REG_SZ | |
| Base DN for search:LDAPUDServerDefinition_BaseDN | Text boxtext | Valuein Software\Policies\LibreOffice\org.openoffice.LDAP\UserDirectory\ServerDefinition\BaseDN | REG_SZ | Default (UI): cn=Users,dc=example,dc=com |
| User object class:LDAPUDUserObjectClass | Text boxtext | Valuein Software\Policies\LibreOffice\org.openoffice.LDAP\UserDirectory\UserObjectClass | REG_SZ | Default (UI): user |
| User unique attribute:LDAPUDUserUniqueAttribute | Text boxtext | Valuein Software\Policies\LibreOffice\org.openoffice.LDAP\UserDirectory\UserUniqueAttribute | REG_SZ | Default (UI): sAMAccountName |
Application
Collabora Office / LibreOffice (Collabora) — November 2026 templates
Official templates downloaded on November 12, 2026.