These are chat archives for allegro/ralph

13th
Sep 2018
Marek Bleschke
@MarekBleschke
Sep 13 2018 06:21
Hi @Dopsterinho, are you using deb, docker or installation from source?
Dopsterinho
@Dopsterinho
Sep 13 2018 07:49
Hy Marek,
Thanx for the quick reply! I uswd the documentation from the Ralph website i guess it is from source. Docker is for aure not, deb(debian?) also not.
I used Ubuntu. Besides this there is the code for the AUTHENTICTION_BACKEND, which i dont know where to insert, and the import ldap with the attributes, which i dont know where to insert. But i am relying on the
...People here to get help ;-)
Marek Bleschke
@MarekBleschke
Sep 13 2018 08:57
If you installed it from source (pulled form github) then configuration files are in ralph/src/ralph/settings (https://github.com/allegro/ralph/tree/ng/src/ralph/settings). In this directory you should have few configuration files: base.py, prod.py, test.py and dev.py. You probably would want to add this settings into dev.py or prod.py depending on your environment (development or production)
Dopsterinho
@Dopsterinho
Sep 13 2018 09:14
Thank you Marek,
You mean adding the AUTHENTICATION_BACKENDS, and the LDAP Mappings
(import ldap
from django_auth_ldap.config import LDAPSearch, GroupOfNamesType
AUTH_LDAP_SERVER_URI = "ldap://activedirectory.domain:389"....)
in the same Cofig7Settings File ?
Dopsterinho
@Dopsterinho
Sep 13 2018 09:25
The only install Folder which I can find is in /opt/Ralph/Ralph-Core/
Marek Bleschke
@MarekBleschke
Sep 13 2018 09:37
Yes, currently adding it to settings file is the only way to add LDAP config.
Dopsterinho
@Dopsterinho
Sep 13 2018 09:41
the files that you mentioned, I have found here:
/opt/Ralph/Ralph-Core/lib/python3.4/site-packages/Ralph/Settings
is this the correct Folder ?

another Thing which is confusing, is:
System check identified no issues (0 silenced).
September 13, 2018 - 11:31:27
Django version 1.8.18, using settings 'ralph.settings.prod'
Starting development server at http://0.0.0.0:8000/

using settings 'ralph.settings.prod'
but
Starting development server at

is it PROD Version, or Development ? :-)

Marek Bleschke
@MarekBleschke
Sep 13 2018 09:54
Looks like you have installed it from debian package. In this case unfortunately there is no easy way of setting LDAP auth.
As for question about prod / dev. Django version 1.8.18, using settings 'ralph.settings.prod' - this means that it is using production settings of application.
Starting development server at http://0.0.0.0:8000/ - this means that it runs on Django (https://www.djangoproject.com/) development server. It's ok for development work (very low traffic). If yo would like to setup behind web server there is example config for nginx + gunicorn setup in https://github.com/allegro/ralph/tree/ng/contrib (ralph.conf.nginx + gunicorn.py.ini)
Dopsterinho
@Dopsterinho
Sep 13 2018 09:59
Ok, so: https://github.com/allegro/ralph/tree/ng/contrib (ralph.conf.nginx + gunicorn.py.ini) Install would be the PROD Version, and configuring LDAP would be easier ? :-)
Marek Bleschke
@MarekBleschke
Sep 13 2018 10:05
I'm afraid no. Configuring nginx doesn't concern LDAP settings. This is more related to debian package for which currently there is no easy way to setup LDAP auth.
Dopsterinho
@Dopsterinho
Sep 13 2018 10:09
hmmm…one more Question before i decide what to do: Which Installation do you recommend, so that LDAP Authentication is possible. Pull it from GitHub ?
Dopsterinho
@Dopsterinho
Sep 13 2018 10:36
I am trying to install from source - cloned Ralph - what next ?
Marek Bleschke
@MarekBleschke
Sep 13 2018 10:48
For hint how to install from source you can check https://github.com/allegro/ralph/blob/ng/Dockerfile how it's done step by step for docker image.
Dopsterinho
@Dopsterinho
Sep 13 2018 15:19
it was better with the documentation with Debian package. Is there a documentation how we can make LDAP Authentication work with this Kind of Installation ?
Thank you in Advance !
✪ vi4m Marcin Kliks
@vi4m
Sep 13 2018 19:30
I think I will just add ldap to the deb package ...
Have to generate new deb release though