|
| 1 | +dn: cn=config |
| 2 | +objectClass: olcGlobal |
| 3 | +cn: config |
| 4 | +olcConfigFile: slapd.conf |
| 5 | +olcConfigDir: slapd.d |
| 6 | +olcArgsFile: /usr/local/openldap/var/run/slapd.args |
| 7 | +olcAttributeOptions: lang- |
| 8 | +olcAuthzPolicy: none |
| 9 | +olcConcurrency: 0 |
| 10 | +olcConnMaxPending: 100 |
| 11 | +olcConnMaxPendingAuth: 1000 |
| 12 | +olcGentleHUP: FALSE |
| 13 | +olcIdleTimeout: 0 |
| 14 | +olcIndexSubstrIfMaxLen: 4 |
| 15 | +olcIndexSubstrIfMinLen: 2 |
| 16 | +olcIndexSubstrAnyLen: 4 |
| 17 | +olcIndexSubstrAnyStep: 2 |
| 18 | +olcIndexIntLen: 4 |
| 19 | +olcListenerThreads: 1 |
| 20 | +olcLocalSSF: 71 |
| 21 | +olcPidFile: /usr/local/openldap/var/run/slapd.pid |
| 22 | +olcReadOnly: FALSE |
| 23 | +olcSaslHost: {{ ldaptoolbox_openldap_olcSaslHost }} |
| 24 | +olcSaslSecProps: none |
| 25 | +olcServerID: 1 |
| 26 | +olcSockbufMaxIncoming: 262143 |
| 27 | +olcSockbufMaxIncomingAuth: 16777215 |
| 28 | +olcThreads: 16 |
| 29 | +olcTLSCACertificateFile: {{ ldaptoolbox_openldap_olcTLSCACertificateFile }} |
| 30 | +olcTLSCertificateFile: {{ ldaptoolbox_openldap_olcTLSCertificateFile }} |
| 31 | +olcTLSCertificateKeyFile: {{ ldaptoolbox_openldap_olcTLSCertificateKeyFile }} |
| 32 | +olcTLSCRLCheck: none |
| 33 | +olcTLSVerifyClient: allow |
| 34 | +olcTLSProtocolMin: {{ ldaptoolbox_openldap_olcTLSProtocolMin }} |
| 35 | +olcToolThreads: 1 |
| 36 | +olcWriteTimeout: 0 |
| 37 | +olcLogLevel: {{ ldaptoolbox_openldap_olcLogLevel }} |
| 38 | + |
| 39 | +dn: cn=module{0},cn=config |
| 40 | +objectClass: olcModuleList |
| 41 | +cn: module{0} |
| 42 | +olcModulePath: /usr/local/openldap/lib64/:/usr/local/openldap/libexec/openldap/ |
| 43 | +{% for module in ldaptoolbox_openldap_module_list %} |
| 44 | +olcModuleLoad: {{ module }} |
| 45 | +{% endfor %} |
| 46 | + |
| 47 | +dn: cn=schema,cn=config |
| 48 | +objectClass: olcSchemaConfig |
| 49 | +cn: schema |
| 50 | + |
| 51 | +include: file:///usr/local/openldap/etc/openldap/schema/core.ldif |
| 52 | + |
| 53 | +include: file:///usr/local/openldap/etc/openldap/schema/cosine.ldif |
| 54 | + |
| 55 | +include: file:///usr/local/openldap/etc/openldap/schema/nis.ldif |
| 56 | + |
| 57 | +include: file:///usr/local/openldap/etc/openldap/schema/inetorgperson.ldif |
| 58 | + |
| 59 | +include: file:///usr/local/openldap/etc/openldap/schema/dyngroup.ldif |
| 60 | + |
| 61 | +{% for schema in ldaptoolbox_openldap_custom_schema_list %} |
| 62 | +include: file://{{ ldaptoolbox_openldap_schema_dir }}/{{ schema }} |
| 63 | +{% endfor %} |
| 64 | + |
| 65 | +dn: olcDatabase={-1}frontend,cn=config |
| 66 | +objectClass: olcDatabaseConfig |
| 67 | +objectClass: olcFrontendConfig |
| 68 | +olcDatabase: {-1}frontend |
| 69 | +{% for rule in ldaptoolbox_openldap_access_list %} |
| 70 | +olcAccess: {{ rule }} |
| 71 | +{% endfor %} |
| 72 | +olcAddContentAcl: FALSE |
| 73 | +olcLastMod: TRUE |
| 74 | +olcMaxDerefDepth: 0 |
| 75 | +olcReadOnly: FALSE |
| 76 | +olcSchemaDN: cn=Subschema |
| 77 | +olcSecurity: ssf=128 |
| 78 | +olcSizeLimit: 500 |
| 79 | +olcSyncUseSubentry: FALSE |
| 80 | +olcMonitoring: FALSE |
| 81 | +olcPasswordHash: {{ ldaptoolbox_olcPasswordHash }} |
| 82 | +olcSortVals: {{ ldaptoolbox_openldap_olcSortVals }} |
| 83 | + |
| 84 | +dn: olcDatabase={0}config,cn=config |
| 85 | +objectClass: olcDatabaseConfig |
| 86 | +olcDatabase: {0}config |
| 87 | +olcAccess: {0}to * by * none |
| 88 | +olcAddContentAcl: TRUE |
| 89 | +olcLastMod: TRUE |
| 90 | +olcMaxDerefDepth: 15 |
| 91 | +olcReadOnly: FALSE |
| 92 | +olcRootDN: {{ ldaptoolbox_openldap_config_olcRootDN }} |
| 93 | +olcRootPW: {{ ldaptoolbox_openldap_config_olcRootPW_hash }} |
| 94 | +olcSyncUseSubentry: FALSE |
| 95 | +olcMonitoring: FALSE |
| 96 | + |
| 97 | +dn: olcDatabase={1}mdb,cn=config |
| 98 | +objectClass: olcDatabaseConfig |
| 99 | +objectClass: olcMdbConfig |
| 100 | +olcDatabase: {1}mdb |
| 101 | +olcDbDirectory: /usr/local/openldap/var/openldap-data |
| 102 | +olcSuffix: {{ ldaptoolbox_openldap_suffix }} |
| 103 | +olcLastMod: TRUE |
| 104 | +{% for limit in ldaptoolbox_openldap_database_olcLimits %} |
| 105 | +olcLimits: {{ limit }} |
| 106 | +{% endfor %} |
| 107 | +olcMaxDerefDepth: 15 |
| 108 | +olcReadOnly: FALSE |
| 109 | +olcRootDN: {{ ldaptoolbox_openldap_database_olcRootDN }} |
| 110 | +olcRootPW: {{ ldaptoolbox_openldap_database_olcRootPW_hash }} |
| 111 | +olcSyncUseSubentry: FALSE |
| 112 | +olcLastBind: TRUE |
| 113 | +{% for syncrepl in ldaptoolbox_openldap_syncrepl %} |
| 114 | +olcSyncrepl: rid={{ syncrepl.rid }} provider={{ syncrepl.provider }} bindmethod=simple timeout=0 network-timeout=0 binddn="{{ syncrepl.binddn }}" credentials="{{ syncrepl.password }}" keepalive=0:0:0 starttls=no {% if syncrepl.tlscert %}tls_cert="{{ syncrepl.tlscert }}" tls_key={{ syncrepl.tlskey }}" tls_cacert="{{ syncrepl.tlscacert }}" tls_reqcert="{{ syncrepl.tlsreqcert }}"{% endif %} filter="(objectclass=*)" searchbase="{{ syncrepl.searchbase }}" scope="{{ syncrepl.scope }}" schemachecking=on type="{{ syncrepl.type }}" retry="{{ syncrepl.retry }}" |
| 115 | +{% endfor %} |
| 116 | +{% if ldaptoolbox_openldap_syncrepl|length > 0 %} |
| 117 | +olcMultiProvider: TRUE |
| 118 | +{% endif %} |
| 119 | +olcMonitoring: TRUE |
| 120 | +{% for index in ldaptoolbox_openldap_database_olcDbIndexes %} |
| 121 | +olcDbIndex: {{ index }} |
| 122 | +{% endfor %} |
| 123 | +olcDbMaxSize: {{ ldaptoolbox_openldap_database_olcDbMaxSize }} |
| 124 | + |
| 125 | +dn: olcOverlay={0}syncprov,olcDatabase={1}mdb,cn=config |
| 126 | +objectClass: olcOverlayConfig |
| 127 | +objectClass: olcSyncProvConfig |
| 128 | +olcOverlay: {0}syncprov |
| 129 | +olcSpCheckpoint: {{ ldaptoolbox_openldap_overlay_syncprov_olcSpCheckpoint }} |
| 130 | +olcSpSessionlog: {{ ldaptoolbox_openldap_overlay_syncprov_olcSpSessionlog }} |
| 131 | + |
| 132 | +dn: olcOverlay={1}ppolicy,olcDatabase={1}mdb,cn=config |
| 133 | +objectClass: olcOverlayConfig |
| 134 | +objectClass: olcPPolicyConfig |
| 135 | +olcOverlay: {1}ppolicy |
| 136 | +olcPPolicyDefault: {{ ldaptoolbox_openldap_overlay_ppolicy_olcPPolicyDefault }} |
| 137 | +olcPPolicyHashCleartext: {{ ldaptoolbox_openldap_overlay_ppolicy_olcPPolicyHashCleartext }} |
| 138 | +olcPPolicyUseLockout: {{ ldaptoolbox_openldap_overlay_ppolicy_olcPPolicyUseLockout }} |
| 139 | + |
| 140 | +dn: olcOverlay={2}refint,olcDatabase={1}mdb,cn=config |
| 141 | +objectClass: olcOverlayConfig |
| 142 | +objectClass: olcRefintConfig |
| 143 | +olcOverlay: {2}refint |
| 144 | +olcRefintAttribute: {{ ldaptoolbox_openldap_overlay_refint_olcRefintAttribute }} |
| 145 | +olcRefintNothing: {{ ldaptoolbox_openldap_overlay_refint_olcRefintNothing }} |
| 146 | + |
| 147 | +dn: olcOverlay={3}dynlist,olcDatabase={1}mdb,cn=config |
| 148 | +objectClass: olcOverlayConfig |
| 149 | +objectClass: olcDynamicList |
| 150 | +olcOverlay: {3}dynlist |
| 151 | +olcDlAttrSet: {{ ldaptoolbox_openldap_overlay_dynlist_olcDlAttrSet }} |
| 152 | + |
| 153 | +dn: olcDatabase={2}monitor,cn=config |
| 154 | +objectClass: olcDatabaseConfig |
| 155 | +olcDatabase: {2}monitor |
| 156 | +olcRootDN: {{ ldaptoolbox_openldap_monitor_olcRootDN }} |
| 157 | +olcRootPW: {{ ldaptoolbox_openldap_monitor_olcRootPW }} |
| 158 | +olcAddContentAcl: FALSE |
| 159 | +olcLastMod: TRUE |
| 160 | +olcMaxDerefDepth: 15 |
| 161 | +olcReadOnly: FALSE |
| 162 | +olcSyncUseSubentry: FALSE |
| 163 | +olcMonitoring: FALSE |
| 164 | + |
0 commit comments