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. 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