Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ This role sets up 389ds in multi-master mode.
| `auth_ldap_permissions` | (see defaults/main.yml) | ACIs to set on the directory |
| `auth_kerberos_admin_privs` | `[]` | Kerberos principals to grant administrative permissions to (see defaults/main.yml for format) |
| `auth_ldap_store_pam` | `True` | Whether to actually store the generated 389ds PAM config. Useful if you want to customize it using another role |
|`auth_kerberos_curves` | `edwards25519` | Curves to use for kerberos SPAKE |
| `auth_kerberos_curves` | `edwards25519` | Curves to use for kerberos SPAKE |
| `auth_ldap_use_external_domain` | `False` | Use separate domain for mutual replication connections |
| `auth_ldap_external_domain` | `None` | The domain to use if the setting before is `True` |


Users can be created by putting them into `auth_ldap_users` as a dict with the following format:
```
Expand Down
5 changes: 5 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ auth_ldap_domain_suffix: None
# If you have subdomains with hosts, you might want to add them here
auth_ldap_domain_subdomains: []

# If your LDAP servers are not mutually reachable via their FQDN, set this for
# replication
auth_ldap_use_external_domain: False
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add these to the list in the README?

auth_ldap_external_domain: None

# LDAP admin credentials (you need to change these)
auth_ldap_admin_pwd: None
auth_ldap_sync_pwd: None
Expand Down
4 changes: 4 additions & 0 deletions templates/haproxy-dropin.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ frontend {{ item }}-ldap-front
backend {{ item }}-ldap-back
mode tcp
option ldap-check
{% if auth_ldap_use_external_domain %}
server remote {{ hostvars[item]['auth_ldap_external_domain'] }}:60389 ssl crt /etc/dirsrv/client.pem ca-file /etc/dirsrv/ca.pem verify required check check-ssl
{% else %}
server remote {{ item }}:60389 ssl crt /etc/dirsrv/client.pem ca-file /etc/dirsrv/ca.pem verify required check check-ssl
{% endif %}

{% endif %}
{% endfor %}
Expand Down