Debian Codegraph @

doc/sources/admin/installrpm.rst

raw
1 Installation on Red Hat/CentOS
2 ==============================
3
4
5 .. attention::
6
7 LemonLDAP::NG requires at least Red Hat/CentOS 8
8
9 List of packages
10 ----------------
11
12 LemonLDAP::NG provides packages for RHEL (and derivatives) 8/9/10:
13
14 - ``lemonldap-ng``: metapackage, contains no file but dependencies on other
15 packages
16 - ``lemonldap-ng-doc``: HTML documentation and project docs
17 (README, etc.)
18 - ``lemonldap-ng-test``: sample CGI test page
19 - ``lemonldap-ng-common``: configuration and common files
20 - ``lemonldap-ng-handler``: Handler common libraries
21 - ``lemonldap-ng-manager``: Manager files
22 - ``lemonldap-ng-portal``: Portal files
23 - ``lemonldap-ng-fastcgi-server``: FastCGI server needed to use Nginx
24 - ``lemonldap-ng-uwsgi-app``: Uwsgi application
25 - ``lemonldap-ng-selinux``: SELinux policy
26 - ``perl-Lemonldap-NG-SSOaaS-Apache-Client``: SSOaaS client module
27
28
29 Prerequisites
30 -------------
31
32 LemonLDAP::NG has dependencies which are not in base RHEL repositories.
33
34 You need to enable `EPEL repositories <https://docs.fedoraproject.org/en-US/epel/#Quickstart>`__ before installing.
35
36 On most community distributions, this is done with the following command ::
37
38 dnf install epel-release
39
40 If you are using the official RHEL build, refer to the above documentation.
41
42 In any case, after enabling EPEL, also enable the optional "CodeReady Builder" repository ::
43
44 crb enable
45
46 Install from official Fedora packages
47 -------------------------------------
48
49 .. code-block:: shell
50
51 dnf install lemonldap-ng
52
53 # If you use SELinux
54 dnf install lemonldap-ng lemonldap-ng-selinux
55
56
57 .. _installrpm-yum-repository:
58
59 (alternative) Install from our YUM repository
60 ----------------------------------------------
61
62 You can add this YUM repository to get recent packages:
63
64 ::
65
66 vi /etc/yum.repos.d/lemonldap-ng.repo
67
68 ::
69
70 [lemonldap-ng]
71 name=LemonLDAP::NG packages
72 baseurl=https://lemonldap-ng.org/redhat/stable/$releasever/noarch
73 enabled=1
74 gpgcheck=1
75 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-OW2
76
77
78 .. tip::
79
80 Replace ``stable`` by ``2.0`` to avoid upgrade to next major
81 version
82
83 Install the `GPG Security key <https://lemonldap-ng.org/security/GPG-KEY-LLNG-SECURITY.asc>`__ on your LemonLDAP::NG server:
84
85 ::
86
87 curl https://lemonldap-ng.org/security/GPG-KEY-LLNG-SECURITY.asc > /etc/pki/rpm-gpg/RPM-GPG-KEY-OW2
88
89 Then, install the packages
90
91
92 .. code-block:: shell
93
94 dnf install lemonldap-ng
95
96 # If you use SELinux
97 dnf install lemonldap-ng lemonldap-ng-selinux
98
99 (alternative) Manual download
100 -----------------------------
101
102 RPMs are available on the `Download page <https://lemonldap-ng.org/download.html>`__.
103
104 .. code-block:: shell
105
106 dnf install lemonldap-ng-* perl-Lemonldap-NG-*
107
108
109 First configuration steps
110 -------------------------
111
112 Change default DNS domain
113 ~~~~~~~~~~~~~~~~~~~~~~~~~
114
115 By default, DNS domain is ``example.com``. You can change it quick with
116 a sed command. For example, we change it to ``ow2.org``:
117
118 .. code-block:: shell
119
120 sed -i 's/example\.com/ow2.org/g' /etc/lemonldap-ng/* /var/lib/lemonldap-ng/conf/lmConf-1.json /etc/nginx/conf.d/* /etc/httpd/conf.d/*
121
122 Upgrade
123 ~~~~~~~
124
125 If you upgraded LemonLDAP::NG, check all :doc:`upgrade notes<upgrade>`.
126
127 DNS
128 ~~~
129
130 Configure your DNS server to resolve names with your server IP:
131
132 - ``auth.<your domain>``: main portal, must be public
133 - ``manager.<your domain>``: manager, only for adminsitrators
134 - ``test1.<your domain>``, ``test2.<your domain>``: sample applications
135
136 Follow the :ref:`next steps<start-configuration>`
137
138 File location
139 -------------
140
141 - Configuration is in ``/etc/lemonldap-ng``
142 - LemonLDAP::NG configuration (edited by the Manager) is in
143 ``/var/lib/lemonldap-ng/conf/``
144 - All Perl modules are in the ``/usr/share/perl5/vendor_perl`` directory
145 - All Perl scripts/pages are in ``/var/lib/lemonldap-ng/``
146 - All static content (examples, CSS, images, etc.) is in
147 ``/usr/share/lemonldap-ng/``
148 - Administration scripts are in ``/usr/libexec/lemonldap-ng/bin``
149