LemonLDAP::NG needs all its components to be served on the same DNS domain.
If you can edit your `/etc/hosts` file or have access to a DNS server, check :ref:`quickstart_own_domain`, if you have no way to modify your DNS configuration, check :ref:`quickstart_nipio`.
.._quickstart_own_domain:
Using your own domain
~~~~~~~~~~~~~~~~~~~~~
The defaut SSO domain is ``example.com``. You can keep it for your tests
or change it, for example for ``mydomain.com``:
::
sed -i 's/example\.com/mydomain.com/g' /etc/lemonldap-ng/* /var/lib/lemonldap-ng/conf/lmConf-1.json
sed -i 's/example\.com/mydomain.com/g' /etc/nginx/conf.d/*
sed -i 's/example\.com/mydomain.com/g' /etc/httpd/conf.d/*
sed -i 's/example\.com/mydomain.com/g' /etc/apache2/sites-available/*
If you cannot edit /etc/hosts or your DNS zone, don't give up yet, you can use services such as http://nip.io, http://xip.io, https://sslip.io/, or others.
For example, if your server IP is 192.168.12.13, you can use 192-168-12-13.nip.io as your SSO domain:
nip.io, xip.io or any DNS wildcard services mentionned in this section are not affiliated with the LemonLDAP::NG project in any way. These services will receive DNS requests that will allow them to know your test server's IP address. If this is an issue for you, do not use these services.
Run
---
Since LemonLDAP::NG 1.2, the
:doc:`demonstration backend<authdemo>` is
configured by default.
Starting services
~~~~~~~~~~~~~~~~~
Debian / Ubuntu
'''''''''''''''
Enable the Nginx virtualhosts and restart the web server and LemonLDAP::NG server to apply the configuration changes ::
Demonstration backend has hard coded user accounts:
cd /etc/nginx/sites-enabled
ln -s ../sites-available/*nginx* .
systemctl restart lemonldap-ng-fastcgi-server
systemctl restart nginx
CentOS / RHEL
'''''''''''''
Enable and start httpd ::
systemctl enable httpd
systemctl start httpd
Open SSO session
~~~~~~~~~~~~~~~~
Go on http://auth.mydomain.com and log with one of the demonstration
account.
====== ======== =============
Login Password Role
@ -93,12 +140,6 @@ msmith msmith user
dwho dwho administrator
====== ======== =============
Open SSO session
~~~~~~~~~~~~~~~~
Go on http://auth.mydomain.com and log with one of the demonstration