11---
2- # defaults file for ansible-role-ldaptoolbox-openldap
2+ # ###############################################################################
3+ # Defaults variables for OpenLDAP role
4+ # ###############################################################################
35
4- # Common configuration
5- # --------------------
66
7- # APT configuration
7+ # apt package repository
88ldaptoolbox_openldap_apt_key_url : " https://ltb-project.org/documentation/_static/RPM-GPG-KEY-LTB-project"
99ldaptoolbox_openldap_apt_key_id : " 3FC3FD92ABA3975D2BEB95A70AC51F926D45BFC5"
1010ldaptoolbox_openldap_apt_repo_filename : " ltb-project-openldap"
@@ -17,7 +17,7 @@ ldaptoolbox_openldap_packages_base: openldap-ltb, openldap-ltb-contrib-overlays,
1717ldaptoolbox_openldap_packages_dependencies : libcrack2, curl
1818ldaptoolbox_openldap_packages_state : present
1919
20- # Configuration
20+ # Filesystem
2121ldaptoolbox_openldap_configuration_backup_dir : /var/backups/openldap
2222ldaptoolbox_openldap_configuration_timestamp_cmd : ' date +%Y%m%d%H%M%S'
2323ldaptoolbox_openldap_configuration_timestamp : ' 00000000000000'
@@ -27,8 +27,32 @@ ldaptoolbox_openldap_configuration_group: ldap
2727ldaptoolbox_openldap_configuration_mode : 0600
2828ldaptoolbox_openldap_sslgroup : ssl-cert
2929
30+ # OpenLDAP LTB CLI command path
3031ldaptoolbox_openldap_slapd_cli_cmd : /usr/local/openldap/sbin/slapd-cli
3132
33+
34+
35+ # OpenLDAP configuration
36+ # ###############################################################################
37+
38+ # Suffix
39+ ldaptoolbox_openldap_suffix : " {{ ldaptoolbox_openldap_suffix }}"
40+
41+ # Custom schemas
42+ ldaptoolbox_openldap_custom_schema_srcdir : " "
43+ ldaptoolbox_openldap_custom_schema_list : []
44+ ldaptoolbox_openldap_schema_dir : /usr/local/openldap/etc/openldap/schema
45+
46+ # Certificates
47+ ldaptoolbox_openldap_olcTLSCACertificateFile : /etc/ssl/certs/ca-certificates.crt
48+ ldaptoolbox_openldap_olcTLSCertificateFile : /etc/ssl/certs/ssl-cert-snakeoil.pem
49+ ldaptoolbox_openldap_olcTLSCertificateKeyFile : /etc/ssl/private/ssl-cert-snakeoil.key
50+ ldaptoolbox_openldap_olcTLSProtocolMin : 3.3
51+
52+ # Log level
53+ ldaptoolbox_openldap_olcLogLevel : stats
54+
55+ # Enabled modules
3256ldaptoolbox_openldap_module_list :
3357 - argon2.la
3458 - pw-pbkdf2.la
@@ -39,11 +63,100 @@ ldaptoolbox_openldap_module_list:
3963 - unique.la
4064 - refint.la
4165
42- ldaptoolbox_openldap_custom_schema_srcdir : " "
43- ldaptoolbox_openldap_custom_schema_list : []
44- ldaptoolbox_openldap_schema_dir : /usr/local/openldap/etc/openldap/schema
4566
46- ldaptoolbox_openldap_suffix : " dc=my-domain,dc=com"
67+ # #################
68+ # Database options
69+ # #################
70+
71+ # config database
72+ ldaptoolbox_openldap_config_olcRootDN : cn=admin,cn=config
73+ ldaptoolbox_openldap_config_olcRootPW_hash : " {{ ldaptoolbox_openldap_config_olcRootPW_hash_vault }}"
74+
75+ # main database
76+ ldaptoolbox_openldap_database_olcRootDN : " cn=admin,{{ ldaptoolbox_openldap_suffix }}"
77+ ldaptoolbox_openldap_database_olcRootPW_hash : " {{ ldaptoolbox_openldap_database_olcRootPW_hash_vault }}"
78+ ldaptoolbox_openldap_database_olcDbMaxSize : " 4294967296"
4779
80+ # monitor database
81+ ldaptoolbox_openldap_monitor_olcRootDN : " cn=monitor"
82+ ldaptoolbox_openldap_monitor_olcRootPW_hash : " {{ ldaptoolbox_openldap_monitor_olcRootPW_hash_vault }}"
83+
84+
85+
86+ # #########################
87+ # General OpenLDAP options
88+ # #########################
89+
90+ ldaptoolbox_openldap_olcSaslHost : 127.0.0.1
91+ ldaptoolbox_openldap_olcSortVals : member
4892ldaptoolbox_olcPasswordHash : " {ARGON2}"
4993
94+ # Access rights
95+ ldaptoolbox_openldap_access_list :
96+ - to * by dn.exact=gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth manage by * break
97+ - to dn.base="" by * read
98+ - to dn.base="cn=Subschema" by * read
99+ - to * by self write by users read by anonymous auth
100+
101+ # Limits
102+ ldaptoolbox_openldap_database_olcLimits :
103+ - dn.base="uid=syncrepl,ou=accounts,ou=infrastructure,{{ ldaptoolbox_openldap_suffix }}" size=unlimited time=unlimited
104+
105+ # Indexes definition
106+ ldaptoolbox_openldap_database_olcDbIndexes :
107+ - " objectClass eq"
108+ - " entryUUID eq"
109+ - " entryCSN eq"
110+ - " cn pres,eq,sub"
111+ - " uid pres,eq,sub"
112+
113+ # #######################
114+ # Replication directives
115+ # #######################
116+
117+ ldaptoolbox_openldap_olcServerID : 1
118+ ldaptoolbox_openldap_syncrepl :
119+ - rid : " 001"
120+ provider : " ldap://localhost:389/"
121+ tlscert : " {{ ldaptoolbox_openldap_olcTLSCertificateFile }}"
122+ tlskey : " {{ ldaptoolbox_openldap_olcTLSCertificateKeyFile }}"
123+ tlscacert : " {{ ldaptoolbox_openldap_olcTLSCACertificateFile }}"
124+ tlsreqcert : " demand"
125+ binddn : " uid=syncrepl,ou=accounts,ou=infrastructure,{{ ldaptoolbox_openldap_suffix }}"
126+ password : " {{ ldaptoolbox_openldap_syncrepl_password_vault }}"
127+ searchbase : " {{ ldaptoolbox_openldap_suffix }}"
128+ scope : " sub"
129+ type : " refreshAndPersist"
130+ retry : " 5 5 300 +"
131+ - rid : " 002"
132+ provider : " ldap://localhost:389/"
133+ tlscert : " {{ ldaptoolbox_openldap_olcTLSCertificateFile }}"
134+ tlskey : " {{ ldaptoolbox_openldap_olcTLSCertificateKeyFile }}"
135+ tlscacert : " {{ ldaptoolbox_openldap_olcTLSCACertificateFile }}"
136+ tlsreqcert : " demand"
137+ binddn : " uid=syncrepl,ou=accounts,ou=infrastructure,{{ ldaptoolbox_openldap_suffix }}"
138+ password : " {{ ldaptoolbox_openldap_syncrepl_password_vault }}"
139+ searchbase : " {{ ldaptoolbox_openldap_suffix }}"
140+ scope : " sub"
141+ type : " refreshAndPersist"
142+ retry : " 5 5 300 +"
143+ ldaptoolbox_openldap_overlay_syncprov_olcSpCheckpoint : " 100 10"
144+ ldaptoolbox_openldap_overlay_syncprov_olcSpSessionlog : " 100"
145+
146+ # #######################
147+ # Overlays configuration
148+ # #######################
149+
150+ # Password policy
151+ ldaptoolbox_openldap_overlay_ppolicy_olcPPolicyDefault : " cn=default,ou=ppolicies,{{ ldaptoolbox_openldap_suffix }}"
152+ ldaptoolbox_openldap_overlay_ppolicy_olcPPolicyHashCleartext : " TRUE"
153+ ldaptoolbox_openldap_overlay_ppolicy_olcPPolicyUseLockout : " TRUE"
154+
155+ # Referential integrity
156+ ldaptoolbox_openldap_overlay_refint_olcRefintAttribute : " member"
157+ ldaptoolbox_openldap_overlay_refint_olcRefintNothing : " cn=nothing,{{ ldaptoolbox_openldap_suffix }}"
158+
159+ # Dynamic groups (dynlist)
160+ ldaptoolbox_openldap_overlay_dynlist_olcDlAttrSet : " groupOfURLs memberURL member+memberOf@groupOfNames*"
161+
162+
0 commit comments