mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
Move ldap setup from freedombox-setup to plinth.
This commit is contained in:
2 files changed
+140
No files matched your search
@@ -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 = []
|
||||
|
||||
Reference in new issue
Block a user