forked from ViViDboarder/vaultwarden_ldap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvaultwarden_ldap.service
48 lines (40 loc) · 1.07 KB
/
vaultwarden_ldap.service
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
[Unit]
Description=An LDAP connector for Bitwarden Server (Rust Edition)
Documentation=https://github.com/ViViDboarder/vaultwarden_ldap
After=vaultwarden.service
[Service]
ExecStart=/usr/bin/vaultwarden_ldap
WorkingDirectory=/var/lib/vaultwarden
User=vaultwarden
Group=vaultwarden
# Allow vaultwarden to bind ports in the range of 0-1024 and restrict it to
# that capability
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
AmbientCapabilities=CAP_NET_BIND_SERVICE
NoNewPrivileges=yes
LimitNOFILE=1048576
LimitNPROC=64
UMask=0077
ProtectSystem=strict
ProtectHome=yes
PrivateTmp=yes
PrivateDevices=yes
ProtectHostname=yes
ProtectClock=yes
ProtectKernelTunables=yes
ProtectKernelModules=yes
ProtectKernelLogs=yes
ProtectControlGroups=yes
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
RestrictNamespaces=yes
LockPersonality=yes
MemoryDenyWriteExecute=yes
RestrictRealtime=yes
RestrictSUIDSGID=yes
RemoveIPC=yes
SystemCallFilter=@system-service
SystemCallFilter=~@privileged @resources
SystemCallArchitectures=native
EnvironmentFile=/etc/vaultwarden_ldap.env
[Install]
WantedBy=multi-user.target