Debian Codegraph @

doc/sources/admin/installdeb.rst

raw
1 Installation on Debian/Ubuntu with packages
2 ===========================================
3
4 Organization
5 ------------
6
7 LemonLDAP::NG provides these packages:
8
9 - lemonldap-ng: metapackage, contains no file but dependencies on other
10 packages
11 - lemonldap-ng-doc: contains HTML documentation and project docs
12 (README, etc.)
13 - lemonldap-ng-fastcgi-server: LL::NG FastCGI server (for Nginx)
14 - lemonldap-ng-handler: Handler files
15 - liblemonldap-ng-common-perl: configuration and common files
16 - liblemonldap-ng-handler-perl: Handler common libraries
17 - liblemonldap-ng-manager-perl: Manager files
18 - liblemonldap-ng-portal-perl: Portal files
19 - liblemonldap-ng-ssoaas-apache-client-perl: SSOaaS client module
20
21 Get the packages
22 ----------------
23
24 .. _installdeb-llng-repository:
25
26 LL::NG repository
27 ~~~~~~~~~~~~~~~~~
28
29
30 You can add this repository to have recent packages.
31
32 .. Important::
33 The GPG key for debian has been updated on September 2025. Take care to use the new one by following the instructions below.
34
35 First, make sure your system can install packages from HTTPS
36 repositories:
37
38 ::
39
40 apt install apt-transport-https curl gnupg
41
42 You will need to trust the `DEB signing key <https://lemonldap-ng.org/lemonldap-debian-packages-pub.gpg>`__ :
43
44 ::
45
46 curl https://lemonldap-ng.org/lemonldap-debian-packages-pub.gpg | gpg --dearmor > /usr/share/keyrings/lemonldap-debian-packages-pub.gpg
47
48 Then, add the official LL::NG repository
49
50 ::
51
52 vi /etc/apt/sources.list.d/lemonldap-ng.list
53
54 ::
55
56 # LemonLDAP::NG repository
57 deb [arch=amd64 signed-by=/usr/share/keyrings/lemonldap-debian-packages-pub.gpg] https://lemonldap-ng.org/deb 2.0 main
58
59
60 .. tip::
61
62 - Use the ``stable`` repository to get packages from current major
63 version
64 - Use the ``oldstable`` repository to get packages from previous major
65 version
66 - Use the ``testing`` repository to get packages from next major
67 version
68 - Use the ``2.0`` repository to stay on this major version and avoid
69 upgrade to next major version
70
71
72 Finally update your APT cache:
73
74 ::
75
76 apt update
77
78 .. _installdeb-official-repository:
79
80 Official Debian repository
81 ~~~~~~~~~~~~~~~~~~~~~~~~~~
82
83 If you run Debian stable, testing or unstable, the packages are directly
84 available:
85
86 ::
87
88 apt install lemonldap-ng
89
90
91 .. tip::
92
93 Packages from `Debian
94 repository <http://packages.debian.org/search?keywords=lemonldap-ng>`__
95 may not be up to date but are **security-maintained** by `Debian
96 Security Team <https://security-team.debian.org/>`__ for "stable"
97 release and `LTS team <https://www.debian.org/lts/>`__ for "oldstable"
98 release. Then if you don't need some new features or aren't concerned by
99 a bug fixed earlier, **this is a good choice**. You can also use `Debian
100 backports <https://backports.debian.org/>`__ or "testing"/"unstable"
101 packages, team maintained.
102 `Here is the list of Debian versions <https://lemonldap-ng.org/documentation/#packaged_versions>`__.
103
104
105 .. danger::
106
107 LLNG Ubuntu packages are not in the "universe" but in the
108 "multiverse". This means they are not security-maintained. If you use
109 them, you should follow our security advisories on
110 [email protected].
111
112 Manual download
113 ~~~~~~~~~~~~~~~
114
115 Packages are available on the `Download page <https://lemonldap-ng.org/download.html>`__.
116
117 Install packages
118 ----------------
119
120 With apt
121 ~~~~~~~~
122
123 .. attention::
124
125 By default packages will require Nginx. If you want to
126 use Apache2, install it first with mod_perl:
127
128 ::
129
130 apt install apache2 libapache2-mod-perl2 libapache2-mod-fcgid
131
132 ::
133
134 apt install lemonldap-ng
135
136 With dpkg
137 ~~~~~~~~~
138
139 Before installing the packages, install :doc:`dependencies<prereq>`.
140
141 Then:
142
143 ::
144
145 dpkg -i liblemonldap-ng-* lemonldap-ng*
146
147 First configuration steps
148 -------------------------
149
150 Change default DNS domain
151 ~~~~~~~~~~~~~~~~~~~~~~~~~
152
153 By default, DNS domain is ``example.com``. You can change it quick with
154 a sed command. For example, we change it to ``ow2.org``:
155
156 .. code-block:: shell
157
158 sed -i 's/example\.com/ow2.org/g' /etc/lemonldap-ng/* /var/lib/lemonldap-ng/conf/lmConf-1.json
159
160 Upgrade
161 ~~~~~~~
162
163 If you upgraded LL::NG, check all :doc:`upgrade notes<upgrade>`.
164
165 DNS
166 ~~~
167
168 Configure your DNS server to resolve names with your server IP:
169
170 - auth.<your domain>: main portal, must be public
171 - manager.<your domain>: manager, only for adminsitrators
172 - test1.<your domain>, test2.<your domain>: sample applications
173
174 Follow the :ref:`next steps<start-configuration>`
175
176 File location
177 -------------
178
179 - Configuration is in /etc/lemonldap-ng
180 - LemonLDAP::NG configuration (edited by the Manager) is in
181 /var/lib/lemonldap-ng/conf/
182 - All Perl modules are in the VENDOR perl directory (/usr/share/perl5/)
183 - All Perl scripts/pages are in /var/lib/lemonldap-ng/
184 - All lemonldap-ng tools are in /usr/share/lemonldap-ng/bin/
185 - All static content (examples, CSS, images, etc.) is in
186 /usr/share/lemonldap-ng/
187 - Apache configuration files are in /etc/lemonldap-ng and linked in
188 /etc/apache2/sites-available and /etc/nginx/sites-available