mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-28 08:03:36 +00:00
users: Keep safety check to start slapd during setup
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
parent
b19a9f972c
commit
e558cdc1e4
@ -67,6 +67,10 @@ def configure_slapd():
|
||||
|
||||
def configure_ldap_structure():
|
||||
"""Configure LDAP basic structure."""
|
||||
was_running = action_utils.service_is_running('slapd')
|
||||
if not was_running:
|
||||
action_utils.service_start('slapd')
|
||||
|
||||
setup_admin()
|
||||
create_organizational_unit('users')
|
||||
create_organizational_unit('groups')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user