From 840596b2831005bb451788555b5500c74ab19858 Mon Sep 17 00:00:00 2001 From: Pierre Rousseau Date: Fri, 14 Feb 2020 15:02:48 +0100 Subject: [PATCH 1/2] [Doc] Add windows installation instructions. --- doc/source/installation.rst | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/doc/source/installation.rst b/doc/source/installation.rst index 4e80ed2..a976eac 100644 --- a/doc/source/installation.rst +++ b/doc/source/installation.rst @@ -59,6 +59,26 @@ You may want to fine tune the installation using: - a `systemd service definition file `_; - any system service monitoring daemon. +Windows +------- + +You need to manually install python-ldap, and pywin32 (which provides win32pdh). The easiest way to install python-ldap is from `Christoph Gohlke `_'s prebuilt binaries. + +Download **python_ldap‑3.2.0‑cp27‑cp27m‑win_amd64.whl** from https://www.lfd.uci.edu/~gohlke/pythonlibs/ +:: + cd + pip install python_ldap-3.2.0-cp27-cp27m-win_amd64.whl + pip install pywin32 + +Then install coalition's dependencies with pip +:: + git clone https://github.com/MercenariesEngineering/coalition.git + cd coalition + pip install -r requirements.txt + cp _coalition.ini coalition.ini + +Edit the section [server] in the file coalition.ini according to your needs. + coalition.ini configuration file -------------------------------- This configuration file contains two sections: **[server]** that will be used in server mode, and **[worker]** that will be used while running in worker mode. From e284bc555c95409e3ab022f1fe3a0b46826b281c Mon Sep 17 00:00:00 2001 From: Pierre Rousseau Date: Fri, 14 Feb 2020 15:16:06 +0100 Subject: [PATCH 2/2] [Windows] Fix windows import of DBSQLite. --- server.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server.py b/server.py index 87f35db..80c9cf1 100644 --- a/server.py +++ b/server.py @@ -14,6 +14,8 @@ from email.mime.text import MIMEText from textwrap import dedent, fill +import pymysql +pymysql.install_as_MySQLdb() from db_sqlite import DBSQLite from db_mysql import DBMySQL from db_sql import LdapError