# Connect with command line options
moribito --host ldap.example.com --port 389 --base-dn "dc=example,dc=com"
# Use SSL/TLS
moribito --host ldap.example.com --ssl --base-dn "dc=example,dc=com"
# With authentication
moribito --host ldap.example.com --bind-user "cn=admin,dc=example,dc=com" --bind-password "password" --base-dn "dc=example,dc=com"
# Enable auto-update checking
moribito --check-updates
# Combine options
moribito --host ldap.example.com --ssl --check-updates --base-dn "dc=example,dc=com"
Create a YAML configuration file to avoid typing connection details repeatedly:
# ~/.moribito.yaml or ./config.yaml
ldap:
host: ldap.example.com
port: 389
base_dn: dc=example,dc=com
use_ssl: false
use_tls: true
bind_user: cn=admin,dc=example,dc=com
bind_pass: password
pagination:
page_size: 100
You can create a configuration file in several ways:
Automatic Creation: Use the --create-config flag to create a default configuration file:
moribito --create-config
UI Configuration: Configure settings through the start screen interface. All changes made in the UI are automatically saved to the config file.
Manual Creation: Create a YAML file manually at one of these locations:
~/.config/moribito/config.yaml or ~/.moribito.yaml%APPDATA%\moribito\config.yaml or %USERPROFILE%\.moribito.yaml./config.yamlNote: Configuration changes made through the UI (Start View) are automatically saved to the config file and persist across application restarts.
For environments with multiple LDAP servers, you can save multiple connection profiles:
ldap:
# Default connection settings (used when no saved connections exist)
host: ldap.example.com
port: 389
base_dn: dc=example,dc=com
use_ssl: false
use_tls: true
bind_user: cn=admin,dc=example,dc=com
bind_pass: password
# Multiple saved connections
selected_connection: 0 # Index of currently active connection (-1 for default)
saved_connections:
- name: "Production"
host: ldap.prod.example.com
port: 636
base_dn: dc=prod,dc=example,dc=com
use_ssl: true
use_tls: false
bind_user: cn=admin,dc=prod,dc=example,dc=com
bind_pass: prod-password
- name: "Development"
host: ldap.dev.example.com
port: 389
base_dn: dc=dev,dc=example,dc=com
use_ssl: false
use_tls: true
bind_user: cn=admin,dc=dev,dc=example,dc=com
bind_pass: "" # Will prompt for password
pagination:
page_size: 50
retry:
enabled: true
max_attempts: 3
Then simply run:
moribito -config ~/.moribito.yaml
When using multiple saved connections:
In the Start View: Navigate to the “Saved Connections” section to:
Connection Selection: The selected_connection field determines which saved connection is active:
-1 or omitted: Use default connection settings0, 1, 2, etc.: Use the corresponding saved connection by indexBackward Compatibility: Old configuration files without saved connections continue to work exactly as before.
Note: The Query View uses automatic pagination to efficiently handle large result sets. When you scroll near the end of loaded results, the next page is automatically fetched from the LDAP server.
The Ctrl+F key combination formats complex LDAP queries with proper indentation for better readability:
# Before formatting:
(&(objectClass=person)(|(cn=john*)(sn=smith*))(department=engineering))
# After formatting (Ctrl+F):
(&
(objectClass=person)
(|
(cn=john*)
(sn=smith*)
)
(department=engineering)
)