There's an open PR with a few build issues to build a Galaxy-side wheel for python-ldap here: once that's resolved it should be automatically installed as a conditional dependency the usual Galaxy way.

Until then, yeah, a workaround is to activate the virtualenv and pip install it.  As you found out, to do that you'll need a few system packages -- I had to install both libldap2-dev and libsasl2-dev on an ubuntu box here to get it to build.  Good luck!


On Fri, Jul 22, 2016 at 7:07 AM Hans-Rudolf Hotz <> wrote:
Dear all

I am looking into authentication through LDAP using the auth_conf file
(we are currently using Apache to handle this). And it looks like, I am
stuck at a very early step:

I have started with a fresh checkout of release 16.04
(git clone -b master

some modifications in galaxy.ini (host, port) and:

auth_config_file = config/auth_conf.xml

I start galaxy, and I try to login. In the log file I get:

galaxy.webapps.galaxy.controllers.user DEBUG 2016-07-22 12:41:50,741 ./config/auth_conf.xml
galaxy.auth.providers.ldap_ad DEBUG 2016-07-22 12:41:50,741 LDAP
authenticate: email is
galaxy.auth.providers.ldap_ad DEBUG 2016-07-22 12:41:50,741 LDAP
authenticate: ....

This is what I far so good

but further down, I get:

galaxy.auth.providers.ldap_ad DEBUG 2016-07-22 12:41:50,742 LDAP
authenticate: could not load ldap module

According to our sysadmin, "python-ldap" is installed on the machine
(running Red Hat 7.2). But I assume, it has to be within the galaxy
created virtual env, hasn't-it?

Hence I have tried the following

cd <galaxy-root>
. .venv/bin/activate
pip install python-ldap

Is this the right way to do it?

Doing this, I have been running into the following error:

Modules/errors.h:8:18: fatal error: lber.h: No such file or directory
#include "lber.h"

So I guess I have to tell my sysadmin to install "openldap-devel in
order to have 'lber.h' on the system?

Or do I have to do something else?

Thank you very much for your help


Hans-Rudolf Hotz, PhD
Bioinformatics Support

Friedrich Miescher Institute for Biomedical Research
Maulbeerstrasse 66
4058 Basel/Switzerland
Please keep all replies on the list by using "reply all"
in your mail client.  To manage your subscriptions to this
and other Galaxy lists, please use the interface at:

To search Galaxy mailing lists use the unified search at: