These are chat archives for allegro/ralph

25th
Aug 2017
Mateusz Kurek
@mkurek
Aug 25 2017 04:49
@ziompaul sudo apt-get install libsasl2-dev libldap2-dev libssl-dev
Paweł
@ziompaul
Aug 25 2017 07:58

Thanks,

yesterday I have succesfully installed requirements

befor that I have installed python-ldap, but with apt-get install

pip install throw error:


Collecting python-ldap
  Using cached python-ldap-2.4.41.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-qhf9cy3j/python-ldap/setup.py", line 53
        print name + ': ' + cfg.get('_ldap', name)
                 ^
    SyntaxError: invalid syntax

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-qhf9cy3j/python-ldap/

I don't know if it will be any difference. It seems it is everything good,
But now I have Autencitation error:

ldap.INVALID_CREDENTIALS: {'desc': 'Invalid credentials', 'info': '80090308: LdapErr: DSID-0C09042F, comment: AcceptSecurityContext error, data 52e, v2580'}
Credencials should be proper
Mateusz Kurek
@mkurek
Aug 25 2017 08:00
install pyldap instead of python-ldap (python-ldap is for python2, pyldap for py3)
Paweł
@ziompaul
Aug 25 2017 08:01
should I uninstall python-ldap first?
Mateusz Kurek
@mkurek
Aug 25 2017 08:01
yes
Paweł
@ziompaul
Aug 25 2017 08:02
should I reinstall requirements.txt after installing pyldap?
Mateusz Kurek
@mkurek
Aug 25 2017 08:03
no
but check if you have django-auth-ldap installed
Paweł
@ziompaul
Aug 25 2017 08:05
root@skierlp01:~# pip install pyldap
Requirement already satisfied: pyldap in /opt/ralph/ralph-core/lib/python3.4/site-packages
Requirement already satisfied: setuptools in /opt/ralph/ralph-core/lib/python3.4/site-packages (from pyldap)
Requirement already satisfied: django-auth-ldap==1.2.7 in /opt/ralph/ralph-core/lib/python3.4/site-packages (from -r ..                                                                                        /opt/ralph/requirements/prod_ldap.txt (line 2))