Move ldap setup from freedombox-setup to plinth.

This commit is contained in:
James Valleroy committed 2016-05-21 16:06:18 -04:00
1 parent 77f08675a4
commit f01575e2ea
2 files changed
+140

No files matched your search

+9
View File
@@ -24,6 +24,7 @@ import subprocess
from plinth import cfg
from plinth import action_utils
from plinth import actions
version = 1
@@ -40,6 +41,14 @@ def init():
menu.add_urlname(title, 'glyphicon-user', 'users:index', 15)
def setup(helper, old_version=None):
"""Install and configure the module."""
helper.call('pre', actions.superuser_run, 'users', ['pre-install'])
helper.install(['ldapscripts', 'ldap-utils', 'libnss-ldapd',
'libpam-ldapd', 'nslcd', 'slapd'])
helper.call('post', actions.superuser_run, 'users', ['setup'])
def diagnose():
"""Run diagnostics and return the results."""
results = []