mirror of
https://github.com/kakwa/ldapcherry
synced 2025-07-04 20:37:48 +02:00
1.9 KiB
1.9 KiB
Install
Using pip
Install the dependencies from the operating system's repos, and then install ldapcherry using `pip`:
# RHEL/CentOS
$ sudo yum install epel-release && sudo yum install python-pip python-devel gcc openldap-devel
# Debian/Ubuntu
$ sudo apt install python-dev python-pip libldap2-dev libsasl2-dev libssl-dev
$ pip install ldapcherry
From the sources
Install the dependencies from the operating system's repos:
# RHEL/CentOS
$ sudo yum install epel-release && sudo yum install python36-pip python36-devel python36-PyYAML gcc openldap-devel
# Debian/Ubuntu
$ sudo apt install python-dev python-pip libldap2-dev libsasl2-dev libssl-dev
Download the latest release from GitHub.
$ tar -xf ldapcherry*.tar.gz
$ cd ldapcherry*
$ python setup.py install
Alternatively, you can install from git:
$ git clone https://github.com/kakwa/ldapcherry
$ cd ldapcherry
$ python setup.py install
Installed files
ldapCherry install directories are:
- /etc/ldapcherry/ (configuration)
- dist-package or site-packages of your distribution (LdapCherry modules)
- /usr/share/ldapcherry/ (static content (css, js, images...) and templates)
These directories can be changed by exporting the following variables before launching the install command:
# optional, default sys.prefix + 'share' (/usr/share/ on most Linux)
$ export DATAROOTDIR=/usr/local/share/
# optional, default /etc/
$ export SYSCONFDIR=/usr/local/etc/
Note
if --root is passed, the install prefix is honored for these directories
Warning
If you change these directories, templates.dir and tools.staticdir.dir in ldapcherry.ini need to be modified accordingly.