- Technology stack
- Architecture of the Solution
- Installing and Configuring MULTIDIRECTORY
- Configuring Kerberos in the MULTIDIRECTORY Web Interface
- Configuring DNS in the MULTIDIRECTORY Web Interface
- DHCP Configuration
- Domain Trust Configuration
- Group Policy
- Connecting MULTIFACTOR Self-Service Portal to MULTIDIRECTORY
- User, Group, and Resource Management
- Connecting to MULTIFACTOR
- Access Policies
- LDAP Schema
- LDAP Logging Configuration
- Password Policies
- Role and Permission Configuration
- LDAP Authentication in Ansible AWX
- LDAP Authentication in ArgoCD
- LDAP Authentication in GitLab
- LDAP Authentication in GitFlic
- LDAP Authentication in Jenkins
- LDAP Authentication in Harbor
- LDAP Authentication in Nexus
- LDAP Authentication in PostgreSQL
- LDAP Authentication in Rancher
- LDAP Authentication in Proxmox VE
- LDAP Authentication in SpaceVM
- LDAP Authentication in Tantor
- LDAP Authentication in Shturval
- LDAP Authentication in zVirt
- LDAP Authentication in GLPI
Vault LDAP Authentication Setup Guide
This article describes how to configure LDAP authentication in Vault with MULTIDIRECTORY as the identity provider.
Setup Requirements
- A running MULTIDIRECTORY instance.
- A pre-installed Vault environment.
Preparation
- Create a dedicated service account in MULTIDIRECTORY with read-only permissions to the directory. This account will be used by Vault to bind and search for users during authentication.
Configuring Vault to Work with MULTIDIRECTORY
To set up LDAP authentication, follow these steps in the Vault environment:
After installation, log in to the Vault container
docker exec -it dev-vault sh # dev-vault container name
Authenticate using the root token.
vault login root
Enable the LDAP auth method.
vault login -method=ldap username=user_ldap
Configure LDAP
vault write auth/ldap/config \
url="ldap://192.168.1.2:389" \
userattr="sAMAccountName" \
userdn="CN=users,DC=md,DC=loc" \
groupdn="CN=groups,DC=md,DC=loc" \
groupattr="cn" \
binddn="CN=admin,CN=users,DC=md,DC=loc" \
bindpass="Password" \
starttls=false
Configure Vault Policies for MULTIDIRECTORY Security Groups
Create a policy for “Domain Admins (full access)”.
vault policy write domain-admins - <<EOF
# Full access to all secrets
path "secret/data/*" {
capabilities = ["create", "read", "update", "delete", "list"]
}
# Manage secret engines
path "secret/metadata/*" {
capabilities = ["list", "delete"]
}
# View and manage policies
path "sys/policies/acl" {
capabilities = ["list"]
}
path "sys/policies/acl/*" {
capabilities = ["read", "create", "update", "delete", "list"]
}
# Manage authentication
path "sys/auth" {
capabilities = ["read", "list"]
}
path "sys/auth/*" {
capabilities = ["create", "read", "update", "delete"]
}
# View system information
path "sys/health" {
capabilities = ["read"]
}
path "sys/capabilities-self" {
capabilities = ["update"]
}
EOF
Create a policy for “Domain Users (limited access)”.
vault policy write domain-users - <<EOF
# Access only to own secrets and shared ones
path "secret/data/{{identity.entity.name}}/*" {
capabilities = ["create", "read", "update", "delete", "list"]
}
path "secret/data/shared/*" {
capabilities = ["read", "list"]
}
# Manage own tokens
path "auth/token/lookup-self" {
capabilities = ["read"]
}
path "auth/token/renew-self" {
capabilities = ["update"]
}
path "auth/token/revoke-self" {
capabilities = ["update"]
}
# View own entity information
path "identity/entity/id/{{identity.entity.id}}" {
capabilities = ["read"]
}
path "identity/entity/name/{{identity.entity.name}}" {
capabilities = ["read"]
}
EOF