Credential Methods Overview
Choose the method that best fits your security requirements:| Method | Description | Best For |
|---|---|---|
| Prompt | Interactive password entry | Ad-hoc connections, development |
| Command | Execute shell command for password | Integration with password managers |
| Keychain | OS-native credential storage | Convenience with system security |
| Vault | Loom’s encrypted vault | Portable encrypted storage |
The credential method is configured per connection profile. Different profiles can use different methods.
Prompt Method
The simplest method - Loom asks for the password when needed.Configuration
Behavior
- Startup Connection
- In-TUI Connection
If connecting on startup, you’ll see a terminal password prompt:Type the password (hidden) and press
Enter.Environment Variable
Skip the prompt by settingLOOM_PASSWORD:
Command Method
Execute a shell command to retrieve the password. Works with any password manager or script.Configuration
How It Works
- Loom executes
password_commandviash -c - Reads the password from stdout
- Trims trailing newlines
- Uses the password for LDAP bind
The command must print only the password to stdout. Prompts, warnings, or extra output will cause authentication to fail.
Password Manager Examples
- pass (password-store)
- 1Password CLI
- Bitwarden CLI
- GPG Encrypted File
- macOS Keychain CLI
- Custom Script
pass - the standard Unix password manager:Retrieves the password from
~/.password-store/ldap/production.gpg.Keychain Method
Uses your operating system’s native credential storage.Configuration
Platform Support
- macOS
- Linux
- Windows
Keychain AccessPasswords are stored in macOS Keychain with:
- Service:
loom - Account: Connection profile name (e.g.,
Production)
- Open Keychain Access app
- Search for
loom - Double-click the entry to view/edit
Storing Passwords
On first connection with keychain method:- Loom prompts for the password
- After successful authentication, asks: “Save password to keychain?”
- If you confirm, the password is stored
- Future connections retrieve it automatically
Vault Method
Loom’s built-in encrypted vault for portable, secure storage.Configuration
Enable vault in general settings:Vault Setup
Store Credentials
When connecting to a profile with
credential_method = "vault":- Loom prompts for the bind password
- After successful bind, asks: “Store in vault?”
- Password is encrypted and stored
Vault Location
- Linux/macOS:
~/.config/loom-ldapbrowser/vault.dat - Windows:
%APPDATA%\loom-ldapbrowser\vault.dat
The vault file is encrypted with AES-256. Backup this file to preserve your stored credentials.
Command-Line Options
Anonymous Bind
Connect without authentication by leavingbind_dn empty:
Anonymous access is often restricted. You may only see public entries or have limited search capabilities.
Security Best Practices
Choose the right method
Choose the right method
Production servers:
- ✅ Use “keychain” or “vault” for persistent storage
- ✅ Use “command” with a password manager
- ❌ Avoid “prompt” with
LOOM_PASSWORDenv var
- ✅ Use “prompt” for temporary access
- ✅ Use “command” if you have a password manager setup
Protect master passwords
Protect master passwords
Vault master password:
- Choose a strong, unique password
- Store in your personal password manager
- Never share or commit to version control
- There is no recovery mechanism
- Use your password manager’s security features
- Enable MFA/2FA if available
- Keep the password manager locked when not in use
Don't commit credentials
Don't commit credentials
When sharing ❌ Don’t:
config.toml:✅ Do:Use read-only accounts when possible
Use read-only accounts when possible
For browsing/auditing:Limits damage if credentials are compromised.
Rotate credentials regularly
Rotate credentials regularly
Periodically update LDAP bind passwords:
- Change the password on the LDAP server
- Update stored credentials:
- Keychain: Delete entry, reconnect to store new password
- Vault: Reconnect, Loom will prompt and update
- Command: Update the password in your password manager
Troubleshooting
Keychain access denied
Keychain access denied
macOS:
- Open Keychain Access
- Search for
loom - Click “Access Control” tab
- Add
loom-ldapbrowserto allowed applications
- Ensure a Secret Service provider is running:
- Install if missing:
- Run Loom with administrator privileges once to grant access
- Check Windows Defender isn’t blocking credential access
Password command fails
Password command fails
If command method returns an error:
-
Test the command manually:
Ensure it prints only the password
-
Check command output:
- No prompts or interactive input
- No extra text or formatting
- Command exits with status 0
-
Check PATH:
The command must be in Loom’s PATH. Use full paths if needed:
Vault password forgotten
Vault password forgotten
Unfortunately, there is no password recovery for the vault.Options:
- Delete
vault.datand start fresh (loses all stored passwords) - Restore from backup if available
- Switch affected profiles to a different credential method
Bind fails with stored credentials
Bind fails with stored credentials
If authentication fails despite stored credentials:
-
Verify password is correct:
- Delete stored credential
- Reconnect with prompt method
- Re-store if successful
-
Check bind DN format:
- OpenLDAP:
cn=admin,dc=example,dc=com - Active Directory:
[email protected]orDOMAIN\admin
- OpenLDAP:
-
Check server logs:
- Look for bind failures
- Verify account isn’t locked
Method Comparison
| Feature | Prompt | Command | Keychain | Vault |
|---|---|---|---|---|
| Security | Medium | High* | High | High |
| Convenience | Low | High | High | High |
| Portability | High | Medium | Low | Medium |
| Setup Complexity | None | Medium | Low | Low |
| Cross-platform | Yes | Yes | Yes** | Yes |
| Backup/Sync | N/A | External | System | Manual |
** Requires platform-specific credential store
Next Steps
Connection Profiles
Configure profiles with credential methods
Connecting
Connect to LDAP servers
Configuration
Complete configuration reference
TLS Modes
TLS connection modes and security