mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2025-12-10 07:48:33 +01:00
feat: slapd group & systemd
This commit is contained in:
2
roles/usermanagement/templates/ldap.conf
Normal file
2
roles/usermanagement/templates/ldap.conf
Normal file
@@ -0,0 +1,2 @@
|
||||
BASE {{ ldap_bind_dn }}
|
||||
URI {{ ldap_connection_url }}
|
||||
29
roles/usermanagement/templates/slapd-custom.service
Normal file
29
roles/usermanagement/templates/slapd-custom.service
Normal file
@@ -0,0 +1,29 @@
|
||||
[Unit]
|
||||
Description=Slapd Custom Service
|
||||
|
||||
[Service]
|
||||
|
||||
Type=forking
|
||||
ExecStart=/usr/sbin/slapd -f /etc/ldap/slapd.conf -h "ldapi:/// ldap:///"
|
||||
|
||||
User=openldap
|
||||
Group=openldap
|
||||
|
||||
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
|
||||
AmbientCapabilities=CAP_NET_BIND_SERVICE
|
||||
|
||||
Restart=on-failure
|
||||
|
||||
PrivateTmp=yes
|
||||
ProtectSystem=full
|
||||
ProtectHome=yes
|
||||
ProtectKernelModules=yes
|
||||
ProtectKernelTunables=yes
|
||||
ProtectControlGroups=yes
|
||||
NoNewPrivileges=yes
|
||||
MountFlags=private
|
||||
SystemCallArchitectures=native
|
||||
PrivateDevices=yes
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -1,8 +1,8 @@
|
||||
modulepath /usr/lib/ldap/
|
||||
moduleload back_bdb.la
|
||||
|
||||
pidfile /var/run/slapd.pid
|
||||
argsfile /var/run/slapd.args
|
||||
pidfile /var/lib/ldap/slapd.pid
|
||||
argsfile /var/lib/ldap/slapd.args
|
||||
|
||||
include /etc/ldap/schema/core.schema
|
||||
include /etc/ldap/schema/cosine.schema
|
||||
@@ -14,14 +14,15 @@ suffix "{{ ldap_suffix }}"
|
||||
rootdn "{{ ldap_bind_dn }}"
|
||||
rootpw {SSHA}HISTORY_PURGED_SECRET
|
||||
|
||||
TLSCACertificateFile /etc/ssl/certs/ca-certificates.crt
|
||||
TLSCertificateFile /etc/letsencrypt/live/ldap.atlantishq.de/cert.pem
|
||||
TLSCertificateKeyFile /etc/letsencrypt/live/ldap.atlantishq.de/privkey.pem
|
||||
#TLSCACertificateFile /etc/ssl/certs/ca-certificates.crt
|
||||
#TLSCertificateFile /etc/letsencrypt/live/ldap.atlantishq.de/cert.pem
|
||||
#TLSCertificateKeyFile /etc/letsencrypt/live/ldap.atlantishq.de/privkey.pem
|
||||
TLSVerifyClient try
|
||||
|
||||
|
||||
logfile /var/log/slapd.log
|
||||
loglevel -1
|
||||
#loglevel -1
|
||||
loglevel none
|
||||
|
||||
directory /var/lib/ldap/
|
||||
cachesize 2000
|
||||
|
||||
Reference in New Issue
Block a user