Debian Codegraph @

doc/sources/admin/selinux.rst

raw
1 SELinux
2 =======
3
4 To make LemonLDAP::NG work with SELinux, you may need to set up some
5 options.
6
7 SELinux policy package
8 ----------------------
9
10 If you are using a RPM distribution and Apache as the web server, you need to
11 install the ``lemonldap-ng-selinux`` package to configure SELinux context correctly ::
12
13 yum install lemonldap-ng-selinux
14
15 .. note::
16 On CentOS 8 and Fedora, this is done automatically
17
18 This package will not configure SELinux booleans, please read the next sections to see which booleans you need to enable manually
19
20 Disk cache (sessions an configuration)
21 --------------------------------------
22
23 You need to set the correct context on the cache directory
24
25 .. deprecated:: 2.0.10
26 this is now done by the ``lemonldap-ng-selinux`` package
27
28 ::
29
30 semanage fcontext --add -t httpd_cache_t -f a '/var/cache/lemonldap-ng(/.*)?'
31 restorecon -R /var/cache/lemonldap-ng/
32
33 LDAP
34 ----
35
36 ::
37
38 setsebool -P httpd_can_connect_ldap 1
39
40 Databases
41 ---------
42
43 ::
44
45 setsebool -P httpd_can_network_connect_db 1
46
47 Memcache
48 --------
49
50 ::
51
52 setsebool -P httpd_can_network_memcache 1
53
54 Proxy HTTP
55 ----------
56
57 ::
58
59 setsebool -P httpd_can_network_relay 1