| 1 |
dn: olcDatabase={1}mdb,cn=config |
| 2 |
changeType: modify |
| 3 |
replace: olcRootPW |
| 4 |
olcRootPW: {SSHA}wWpIvu+DAeRzfM5ldoypmEJLZg7GP5Hv |
| 5 |
- |
| 6 |
replace: olcSuffix |
| 7 |
olcSuffix: dc=bonsai,dc=test |
| 8 |
- |
| 9 |
replace: olcRootDN |
| 10 |
olcRootDN: cn=admin,dc=bonsai,dc=test |
| 11 |
|
| 12 |
dn: cn=config |
| 13 |
changeType: modify |
| 14 |
#The FQDN of the Kerberos KDC. |
| 15 |
replace: olcSaslHost |
| 16 |
olcSaslHost: bonsai.test |
| 17 |
- |
| 18 |
# The Kerberos realm name |
| 19 |
replace: olcSaslRealm |
| 20 |
olcSaslRealm: BONSAI.test |
| 21 |
- |
| 22 |
# Set logging |
| 23 |
add: olcLogLevel |
| 24 |
olcLogLevel: packets |
| 25 |
olcLogLevel: conns |
| 26 |
olcLogLevel: stats |
| 27 |
olcLogLevel: filter |
| 28 |
- |
| 29 |
replace: olcLogFile |
| 30 |
olcLogFile: /var/log/slapd.log |
| 31 |
- |
| 32 |
#by default, the DN of an authorized Kerberos client takes the form |
| 33 |
#uid=<Kerberos principal name>,cn=<Kerberos Realm>,cn=GSSAPI,cn=auth |
| 34 |
add: olcAuthzRegexp |
| 35 |
olcAuthzRegexp: {0}"^uid=admin,.*,cn=auth" "cn=admin,dc=bonsai,dc=test" |
| 36 |
olcAuthzRegexp: {1}"^uid=admin,cn=bonsai.test,cn=GSSAPI,cn=auth" "cn=admin, |
| 37 |
dc=bonsai,dc=test" |
| 38 |
olcAuthzRegexp: {2}"uid=([^/]*),cn=bonsai.test,cn=GSSAPI,cn=auth" "cn=$1, |
| 39 |
ou=nerdherd,dc=bonsai,dc=test" |
| 40 |
olcAuthzRegexp: {3}"uid=host/([^/]*).bonsai.test,cn=bonsai.test, |
| 41 |
cn=gssapi,cn=auth" "cn=$1,ou=hosts,dc=bonsai,dc=test" |
| 42 |
#administrative user map, assumes existence of cn=admin,cn=config |
| 43 |
olcAuthzRegexp: {4}"uid=ldap/admin,cn=bonsai.test,cn=gssapi,cn=auth" |
| 44 |
"cn=admin,cn=config" |
| 45 |
olcAuthzRegexp: {5}"^uid=([^,]+).*,cn=[^,]*,cn=auth$" "ldap:///dc=bonsai, |
| 46 |
dc=test??sub?(cn=$1)" |
| 47 |
olcAuthzRegexp: CN=user,OU=test,O=bonsai cn=admin,dc=bonsai,dc=test |
| 48 |
- |
| 49 |
add: olcAuthzPolicy |
| 50 |
olcAuthzPolicy: to |
| 51 |
- |
| 52 |
add: olcTLSCACertificateFile |
| 53 |
olcTLSCACertificateFile: /etc/ldap/certs/cacert.pem |
| 54 |
- |
| 55 |
add: olcTLSCertificateFile |
| 56 |
olcTLSCertificateFile: /etc/ldap/certs/server.pem |
| 57 |
- |
| 58 |
add: olcTLSCertificateKeyFile |
| 59 |
olcTLSCertificateKeyFile: /etc/ldap/certs/server.key |
| 60 |
- |
| 61 |
add: olcTLSVerifyClient |
| 62 |
olcTLSVerifyClient: allow |
| 63 |
- |
| 64 |
add: olcTLSProtocolMin |
| 65 |
olcTLSProtocolMin: 3.1 |
| 66 |
- |
| 67 |
replace: olcSizeLimit |
| 68 |
olcSizeLimit: 1024 |
| 69 |
|
| 70 |
dn: olcDatabase={-1}frontend,cn=config |
| 71 |
changetype: modify |
| 72 |
replace: olcSizeLimit |
| 73 |
olcSizeLimit: 1024 |