mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +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:
1 file changed
+4
@@ -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')
|
||||
|
||||
Reference in new issue
Block a user