ldap:openldap_server_configuration
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
ldap:openldap_server_configuration [2016/11/11 14:48] – peter | ldap:openldap_server_configuration [2019/11/30 13:43] (current) – removed peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== LDAP - OpenLDAP Server Configuration ====== | ||
- | |||
- | OpenLDAP server configuration | ||
- | |||
- | The configuration file: slapd.conf | ||
- | |||
- | **NOTE**: | ||
- | |||
- | <file bash slapd.conf> | ||
- | # Includes. | ||
- | include | ||
- | include | ||
- | include | ||
- | include | ||
- | include | ||
- | include | ||
- | include | ||
- | include | ||
- | |||
- | modulepath | ||
- | |||
- | pidfile | ||
- | argsfile | ||
- | sizelimit 1000 | ||
- | loglevel none | ||
- | # stats | ||
- | |||
- | moduleload smbk5pwd.so | ||
- | |||
- | localSSF 256 | ||
- | # Sample security restrictions | ||
- | # | ||
- | # | ||
- | # | ||
- | #security ssf=1 update_ssf=112 simple_bind=64 | ||
- | #security ssf=0 update_ssf=112 simple_bind=0 | ||
- | security ssf=1 update_ssf=64 simple_bind=64 | ||
- | #security ssf=0 | ||
- | #security simple_bind=64 | ||
- | |||
- | TLSCACertificateFile | ||
- | TLSCertificateFile | ||
- | TLSCertificateKeyFile | ||
- | TLSDHParamFile / | ||
- | TLSVerifyClient never | ||
- | TLSCRLCheck none | ||
- | |||
- | ######## MAIN DATABASE DEFINITION ######### | ||
- | database | ||
- | directory / | ||
- | suffix | ||
- | rootdn | ||
- | checkpoint | ||
- | lastmod on | ||
- | |||
- | overlay | ||
- | |||
- | # Indices to maintain | ||
- | index | ||
- | index | ||
- | index | ||
- | index | ||
- | index | ||
- | # Kerberos indexes | ||
- | index | ||
- | # Samba indexes | ||
- | index sambaSID | ||
- | index sambaPrimaryGroupSID | ||
- | index sambaDomainName, | ||
- | |||
- | # | ||
- | |||
- | # Sasl configuration | ||
- | sasl-host | ||
- | sasl-realm | ||
- | sasl-secprops none | ||
- | |||
- | # Mapping of SASL authentication identities to LDAP entries | ||
- | sasl-regexp | ||
- | uid=(.+), | ||
- | ldap:/// | ||
- | # Kerberos authenticated users | ||
- | sasl-regexp | ||
- | uid=(.+), | ||
- | ldap:/// | ||
- | # Kerberos | ||
- | sasl-regexp | ||
- | gidNumber=0\\\+uidNumber=0, | ||
- | " | ||
- | # uidNumber=0\\\+gidNumber=0, | ||
- | |||
- | # Access controll lists | ||
- | # | ||
- | #nssproxy - user for nss and pam(not root) | ||
- | #samba - samba server | ||
- | #remoteroot - user for changing passwords and creating users | ||
- | #kerberos - user for kerberos server | ||
- | #dovecot - dovecot auth daemon (DIGEST-MD5 requires cleartext password | ||
- | #jabber - jabber server (see above) | ||
- | #saslauthd - saslauthd auth server (see above), currently unussed - not working yet | ||
- | |||
- | # posixAccount/ | ||
- | access to attrs=uidNumber, | ||
- | by dn=" | ||
- | by dn=" | ||
- | by dn=" | ||
- | by users read | ||
- | |||
- | # This is needed so sasl-regexp/ | ||
- | access to attrs=krb5PrincipalName, | ||
- | by dn=" | ||
- | by dn=" | ||
- | by dn=" | ||
- | by anonymous auth | ||
- | by users read | ||
- | |||
- | # Kerberos (HEIMDAL) attributes may only be accessible to kerberos and samba (smbldap-tools) | ||
- | access to attrs=krb5KeyVersionNumber, | ||
- | by dn=" | ||
- | by dn=" | ||
- | by dn=" | ||
- | by * none | ||
- | | ||
- | # Kerberos (MIT) attributes may only be accessible to kerberos and samba (smbldap-tools) | ||
- | #access to attrs=krbLoginFailedCount, | ||
- | # by dn=" | ||
- | # by dn=" | ||
- | # by dn=" | ||
- | # by * none | ||
- | |||
- | |||
- | # We will be using userPassword to provide simple BIND access and updating all passwords by smbk5pwd | ||
- | access to attrs=userPassword | ||
- | by anonymous auth | ||
- | by dn=" | ||
- | by dn=" | ||
- | by dn=" | ||
- | by dn=" | ||
- | by dn=" | ||
- | by self =w | ||
- | by * none | ||
- | |||
- | # Samba password hashes and other options | ||
- | access to attrs=sambaLMPassword, | ||
- | by dn=" | ||
- | by dn=" | ||
- | by dn=" | ||
- | by * none | ||
- | |||
- | # Kerberos only entries | ||
- | access to dn.subtree=" | ||
- | by dn=" | ||
- | |||
- | # Domain member computers | ||
- | access to dn.subtree=" | ||
- | by dn=" | ||
- | by dn=" | ||
- | by dn=" | ||
- | |||
- | # Samba domain parameters | ||
- | access to dn=" | ||
- | by dn=" | ||
- | by dn=" | ||
- | |||
- | access to dn.subtree=" | ||
- | by dn=" | ||
- | by dn=" | ||
- | by users read | ||
- | | ||
- | access to dn.subtree=" | ||
- | by dn=" | ||
- | by users read | ||
- | |||
- | # Anything else we may have forgotten is writable by admin, and viewable by authenticated users | ||
- | # anonymous auth for SASL authz search... | ||
- | access to dn.subtree=" | ||
- | by anonymous auth | ||
- | by users read | ||
- | # by dn=" | ||
- | # by dn=" | ||
- | </ | ||
- | |||
- | Saslauthd configuration (remember friends leave pwcheck_method: | ||
- | |||
- | <file bash saslauthd.conf> | ||
- | ldap_servers: | ||
- | ldap_bind_dn: | ||
- | ldap_password: | ||
- | ldap_search_base: | ||
- | ldap_mech: SIMPLE | ||
- | ldap_auth_method: | ||
- | </ | ||
- | |||
- | Configure LDAP client tools (ldapsearch, | ||
- | |||
- | <file bash ldap.conf> | ||
- | BASE dc=example, | ||
- | URI ldapi:// | ||
- | TLS_CACERTDIR / | ||
- | TLS_REQCERT never | ||
- | </ | ||
- | |||
- | |||
ldap/openldap_server_configuration.1478875710.txt.gz · Last modified: 2020/07/15 09:30 (external edit)