![]() |
Customization (2.x)KeePass 2.x features various options for network administrators to customize the program's appearance and behavior. |
Most options below are configured by directly editing the
KeePass.config.xml
configuration file. If you're planning to
deploy a customized KeePass version, you should fully understand the
KeePass configuration system,
especially how to enforce some settings and leave others up to users.
Note that KeePass features a rich plugin framework. If there's no item in the XML file to configure what you're thinking about, you might want to write a plugin.
You can specify several properties that master passwords must have in order to be accepted (length, estimated quality, ...). See Specifying Minimum Master Password Properties.
The state (enabled, disabled, visible, hidden) of several user interface
(UI) elements can be specified using the UIFlags
value
of the UI
node in the configuration file.
This can be a bitwise combination of one or more of
the following flags:
Flag (Hex) | Flag (Dec) | Description |
---|---|---|
0x0 | 0 | Don't force any states (default). |
0x1 | 1 | Disable 'Tools' → 'Options' menu item. |
0x2 | 2 | Disable 'Tools' → 'Plugins' menu item. |
0x4 | 4 | Disable 'Tools' → 'Triggers' menu item. |
0x8 | 8 | Disable controls to specify after how many days the master key should/must be changed. |
0x10 | 16 | Hide password quality progress bars and information labels. |
0x20 | 32 | Disable 'Help' → 'Check for Updates' menu item. |
0x40 | 64 | Disable 'Tools' → 'Database Tools' → 'XML Replace' menu item. |
0x80 | 128 | Disable 'File' → 'Database Settings' menu item. |
0x10000 | 65536 | Hide built-in profiles in the password generator context menu of the entry editing dialog. |
0x20000 | 131072 | Show UI elements related to last access times. Note: Databases are not marked as modified when a last access time changes. Thus, when only last access times are changed and the user closes the database (without saving manually first and without a save forced e.g. by a trigger or plugin), the changes to the last access times are lost. |
0x40000 | 262144 | Do not display information dialogs when creating a new database. |
0x80000 | 524288 | Do not display auto-type obfuscation compatibility information dialogs. |
The value of UIFlags
must be specified in decimal notation.
For example, if you want to disable the 'Options' and 'Check for Updates'
menu items, you'd specify 33 as value for the UIFlags
node
(0x1 + 0x20 = 1 + 32 = 33).
Window
nodes that
specify disallowed auto-type target windows (the value of each node must
be a target window filter).
For example, the following configuration disallows auto-typing into WordPad and LibreOffice Writer:
<AutoTypeAbortOnWindows> <Window>* - WordPad</Window> <Window>* - LibreOffice Writer</Window> </AutoTypeAbortOnWindows>
true
, KeePass protects its windows
against certain screen capture operations (on Windows 7 and higher;
for details, see the
SetWindowDisplayAffinity
function).true
, KeePass protects its process
with a DACL.true
, the KeePass icon in the
system tray is displayed only if the main window has been minimized
to the tray.