| 1 |
Installation on Suse Linux |
| 2 |
========================== |
| 3 |
|
| 4 |
|
| 5 |
.. attention:: |
| 6 |
|
| 7 |
LL::NG requires at least SLES 12 SP1 or |
| 8 |
equivalent |
| 9 |
|
| 10 |
Organization |
| 11 |
------------ |
| 12 |
|
| 13 |
LemonLDAP::NG provides packages for SLES: |
| 14 |
|
| 15 |
- lemonldap-ng: metapackage, contains no file but dependencies on other |
| 16 |
packages |
| 17 |
- lemonldap-ng-doc: contains HTML documentation and project docs |
| 18 |
(README, etc.) |
| 19 |
- lemonldap-ng-conf: contains default configuration (DNS domain: |
| 20 |
example.com) |
| 21 |
- lemonldap-ng-test: contains sample CGI test page |
| 22 |
- lemonldap-ng-handler: contains Apache Handler implementation (agent) |
| 23 |
- lemonldap-ng-manager: contains administration interface and session |
| 24 |
explorer |
| 25 |
- lemonldap-ng-portal: contains authentication portal and menu |
| 26 |
- lemonldap-ng-fastcgi-server: FastCGI server needed to use Nginx |
| 27 |
- perl-Lemonldap-NG-Common: CPAN - Shared modules |
| 28 |
- perl-Lemonldap-NG-Handler: CPAN - Handler modules |
| 29 |
- perl-Lemonldap-NG-Manager: CPAN - Manager modules |
| 30 |
- perl-Lemonldap-NG-Portal: CPAN - Portal modules |
| 31 |
|
| 32 |
Get the packages |
| 33 |
---------------- |
| 34 |
|
| 35 |
Repositories |
| 36 |
~~~~~~~~~~~~ |
| 37 |
|
| 38 |
This manual only refers to SLES 12 SP1. Installation may work on other |
| 39 |
platforms, with no guarantee. |
| 40 |
|
| 41 |
Different repositories are necessary for LemonLDAP::NG dependencies: |
| 42 |
|
| 43 |
- Suse official repositories |
| 44 |
- 2 repositories on `openSUSE Build |
| 45 |
Service <https://build.opensuse.org/>`__ |
| 46 |
- Additional packages available on repository.linagora.org or |
| 47 |
lemonldap-ng.org |
| 48 |
- Suse SDK repository is advised for building packages (yast2 -> |
| 49 |
Software -> Software Repositories -> Add --> Extensions and modules |
| 50 |
from Registration Server) |
| 51 |
|
| 52 |
First, make sure the exploitation system is up to date: |
| 53 |
|
| 54 |
:: |
| 55 |
|
| 56 |
zypper update |
| 57 |
|
| 58 |
You can add the openSUSE Build Service repositories with the following |
| 59 |
commands: |
| 60 |
|
| 61 |
:: |
| 62 |
|
| 63 |
zypper addrepo http://download.opensuse.org/distribution/leap/42.1/repo/oss/suse/ leap42 |
| 64 |
zypper addrepo http://download.opensuse.org/repositories/devel:languages:perl/SLE_12/devel:languages:perl.repo |
| 65 |
zypper refresh |
| 66 |
|
| 67 |
Accept both signing keys each time. |
| 68 |
|
| 69 |
You can add the additional dependency repository \*and\* the |
| 70 |
LemonLDAP::NG repository with either commands: |
| 71 |
|
| 72 |
:: |
| 73 |
|
| 74 |
zypper addrepo http://lemonldap-ng.org/sles12 lemonldap-sles12-repository |
| 75 |
zypper refresh |
| 76 |
|
| 77 |
or |
| 78 |
|
| 79 |
:: |
| 80 |
|
| 81 |
zypper addrepo http://repository.linagora.org/lemonldap-sles12-repository lemonldap-sles12-repository |
| 82 |
zypper refresh |
| 83 |
|
| 84 |
|
| 85 |
.. tip:: |
| 86 |
|
| 87 |
Only packages on SLES 12 SP1 are tested for now. |
| 88 |
|
| 89 |
Manual download |
| 90 |
~~~~~~~~~~~~~~~ |
| 91 |
|
| 92 |
RPMs are available on the `Download page <https://lemonldap-ng.org/download.html>`__. |
| 93 |
|
| 94 |
Package GPG signature |
| 95 |
--------------------- |
| 96 |
|
| 97 |
Install the `RPM signing key <https://lemonldap-ng.org/_media/rpm-gpg-key-ow2>`__ to trust RPMs: |
| 98 |
|
| 99 |
:: |
| 100 |
|
| 101 |
wget https://lemonldap-ng.org/_media/rpm-gpg-key-ow2 |
| 102 |
rpm --import rpm-gpg-key-ow2 |
| 103 |
|
| 104 |
Install packages |
| 105 |
---------------- |
| 106 |
|
| 107 |
With ZYPPER |
| 108 |
~~~~~~~~~~~ |
| 109 |
|
| 110 |
If the packages are stored in a repository: |
| 111 |
|
| 112 |
.. code-block:: shell |
| 113 |
|
| 114 |
zypper install lemonldap-ng |
| 115 |
|
| 116 |
.. code-block:: shell |
| 117 |
|
| 118 |
59 new packages to install. |
| 119 |
Total download size: 13.5 MiB. Already cached : 0 B. After operation, 30.7 MiB of supplementary disk space will be used. |
| 120 |
Continue ? [y/n/? print all options] (y): |
| 121 |
|
| 122 |
You can also use zypper on local RPMs file: |
| 123 |
|
| 124 |
:: |
| 125 |
|
| 126 |
zypper install lemonldap-ng-* perl-Lemonldap-NG-* |
| 127 |
|
| 128 |
First configuration steps |
| 129 |
------------------------- |
| 130 |
|
| 131 |
Enable Apache extensions |
| 132 |
~~~~~~~~~~~~~~~~~~~~~~~~ |
| 133 |
|
| 134 |
These extensions are activated by default on Apache at LemonLDAP |
| 135 |
install: |
| 136 |
|
| 137 |
:: |
| 138 |
|
| 139 |
a2enmod perl |
| 140 |
a2enmod headers |
| 141 |
a2enmod mod_fcgid |
| 142 |
a2enmod ssl |
| 143 |
a2enmod rewrite |
| 144 |
a2enmod proxy |
| 145 |
a2enmod proxy_http |
| 146 |
|
| 147 |
If you decide to use SSL, you should also activate the appopriate flag: |
| 148 |
|
| 149 |
:: |
| 150 |
|
| 151 |
sed -i 's/^APACHE_SERVER_FLAGS=.*/APACHE_SERVER_FLAGS="SSL"/' /etc/sysconfig/apache2 |
| 152 |
|
| 153 |
Change default DNS domain |
| 154 |
~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 155 |
|
| 156 |
By default, DNS domain is ``example.com``. You can change it quick with |
| 157 |
a sed command. For example, we change it to ``ow2.org``: |
| 158 |
|
| 159 |
.. code-block:: shell |
| 160 |
|
| 161 |
sed -i 's/example\.com/ow2.org/g' /etc/lemonldap-ng/{*.conf,*.ini,for_etc_hosts} /var/lib/lemonldap-ng/conf/lmConf-1 |
| 162 |
|
| 163 |
Check Apache configuration and restart: |
| 164 |
|
| 165 |
.. code-block:: shell |
| 166 |
|
| 167 |
apachectl configtest |
| 168 |
apachectl restart |
| 169 |
|
| 170 |
DNS |
| 171 |
~~~ |
| 172 |
|
| 173 |
Configure your DNS server to resolve names with your server IP: |
| 174 |
|
| 175 |
- auth.<your domain>: main portal, must be public |
| 176 |
- manager.<your domain>: manager, only for adminsitrators |
| 177 |
- test1.<your domain>, test2.<your domain>: sample applications |
| 178 |
|
| 179 |
Follow the :ref:`next steps<start-configuration>` |
| 180 |
|
| 181 |
File location |
| 182 |
------------- |
| 183 |
|
| 184 |
- Configuration is in /etc/lemonldap-ng |
| 185 |
- LemonLDAP::NG configuration (edited by the Manager) is in |
| 186 |
/var/lib/lemonldap-ng/conf/ |
| 187 |
- All Perl modules are in the VENDOR perl directory |
| 188 |
- All Perl scripts/pages are in /var/lib/lemonldap-ng/ |
| 189 |
- All static content (examples, CSS, images, etc.) is in |
| 190 |
/usr/share/lemonldap-ng/ |
| 191 |
|
| 192 |
Build your packages |
| 193 |
------------------- |
| 194 |
|
| 195 |
If you need it, you can rebuild RPMs: |
| 196 |
|
| 197 |
- Install rpm-build package |
| 198 |
- Get the lemonldap source package from repository: |
| 199 |
|
| 200 |
:: |
| 201 |
|
| 202 |
zypper source-install lemonldap-ng |
| 203 |
cd /usr/src/packages/ |
| 204 |
ls SPECS/ SOURCES/ |
| 205 |
|
| 206 |
- Install all build dependencies (see BuildRequires in |
| 207 |
lemonldap-ng.spec) |
| 208 |
- Build: |
| 209 |
|
| 210 |
:: |
| 211 |
|
| 212 |
rpmbuild -ba SPECS/lemonldap-ng.spec |