Synopsis
Options
Path to configuration file.Default:
~/.config/loom-ldapbrowser/config.tomlExample:LDAP server hostname or IP address.When specified, loom creates a temporary connection profile and connects immediately. This overrides the first profile in the config file.Example:
LDAP server port.Default:
389Only used when --host is specified.Example:Bind distinguished name (DN).The DN to authenticate as when connecting. Only used when
--host is specified.Example:Base DN for browsing and searching.The root of the directory tree displayed in the browser. Only used when
--host is specified.Example:Vault master password.Provides the vault master password via command-line argument, avoiding the interactive prompt. Only used when
vault_enabled = true in the config.Example:Path to vault file.Default:
~/.config/loom-ldapbrowser/vault.datExample:Print help information and exit.Example:
Print version information and exit.Example:
Connection Override Behavior
When you specify--host (with optional -p, -D, -b), loom:
- Creates a temporary connection profile with these parameters
- Sets
tls_mode = "auto"(tries LDAPS, StartTLS, then plaintext) - Sets
credential_method = "prompt"(prompts for password) - Inserts this profile as the first connection in the config
- Automatically connects on startup
Example: Quick Ad-Hoc Connection
Environment Variables
These environment variables work alongside command-line options:Bind password for
credential_method = "prompt".When set, loom uses this password instead of prompting interactively.Example:Vault master password.When set, loom uses this password to unlock the vault instead of prompting.Example:
Usage Examples
Connect to a Server with CLI Arguments
Connect to LDAPS Port
Connect with Password from Environment
Use Custom Config File
Launch with Saved Profiles
~/.config/loom-ldapbrowser/config.toml and:
- Connects to the first profile automatically (if configured)
- Shows the profiles layout if no profiles exist
- Prompts for vault password if
vault_enabled = true
Open Vault with Command-Line Password
Use Alternate Vault File
Check Version
Show Help
Combining with Saved Profiles
Command-line arguments override the first connection profile inconfig.toml. Other profiles remain available in the profiles layout (F1).
Example
Config file:- Loom connects to
ldap-dev.example.com(from CLI) - “Production” and “Staging” profiles are available in
F1profiles layout - CLI connection appears as first tab
Exit Codes
| Code | Meaning |
|---|---|
0 | Success (normal exit) |
1 | General error (connection failed, config invalid, etc.) |
130 | Interrupted by Ctrl+C |
Shell Integration
Bash Alias
ldap launches loom with your common connection parameters.
ZSH Completion
Loom uses clap for argument parsing. Generate shell completions:Shell completion generation is a planned feature. Currently not available in release builds.
Systemd Service
You can run loom as a background service for monitoring or automation (non-interactive mode is planned).Debugging
Verbose Logging
Loom logs to./logs/loom-ldapbrowser.log by default. Set the log level in config:
Trace LDAP Operations
Security Considerations
- Command-line arguments are visible in process listings (
ps aux) - Avoid passing passwords via
--vault-password; use environment variables or interactive prompts - Shell history may record commands with passwords; use
HISTCONTROL=ignorespaceand prefix commands with a space - Use config files for production deployments instead of CLI arguments