OpenMDM Project

OpenMDM Project is an Open-Source Mobile Device Management project, initially developed to support iOS devices, but built in order to be easily extended with multiple device types.
Language : Python 3.4.2 and >
Authentication : LDAP3
Storage : MongoDB

Version

0.0.1

Tech

OpenMDM uses open source projects to work properly:

Requirements

Also, OpenMDM require a LDAP service for accounts management.

Note, a bug exist in current pymongo version, stick to pymongo==2.8.1 or use master version from official repository until publication.

At this time, admin rights are attributed to people in the admin group in LDAP.

Installation

Prepare Debian 8

sudo apt-get install libldap2-dev
sudo apt-get install libsasl2-dev
sudo apt-get install python3.4
sudo apt-get install mongodb
sudo apt-get install mysql-server
sudo apt-get install libmysqlclient-dev

For all systems

Create a MySQL database and user

CREATE DATABASE mdmdb;
GRANT ALL PRIVILEGES ON mdmdb.* TO 'mdmuser'@'localhost' IDENTIFIED BY 'MDMPassword123';
cd /usr/local
virtualenv -p python3.4 OpenMDM_VEnv
cd OpenMDM_VEnv
source ./bin/activate
pip3.4 install mysqlclient
pip3.4 install django-admin-bootstrapped
pip3.4 install git+https://github.com/rbarrois/python-ldap.git@py3
pip3.4 install django-auth-ldap
pip3.4 install pymongo==2.8.1
pip3.4 install mongoengine
git clone https://github.com/betezed/MobileDeviceManagement.git OpenMDM
cd OpenMDM

Now your system is ready, you must customize the common/local/settings.py values to fit your deployment.

sudo ./configure.sh
python manage.py runserver 0.0.0.0:8000

OpenMDM is now listening on port 8000.

Development

Want to contribute? Great, feel free !