Skip to content

Commit

Permalink
Add bind password and service user for LDAP provider
Browse files Browse the repository at this point in the history
  • Loading branch information
stephdl committed Mar 7, 2024
1 parent 6ef9027 commit afc46a3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions imageroot/actions/configure-module/50start_provisioning
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ if provision_type == 'join-domain':
endpoints.append(f"ldap://{provider['host']}:{provider['port']}")
podman_cmd.append("join-domain")
podman_cmd.append(','.join(endpoints))
# Set the bind password for the provider
if domains[domain]["bind_password"]:
agent.set_env('LDAP_SVCPASS', domains[domain]["bind_password"])
agent.set_env('LDAP_SVCUSER', 'ldapservice')

elif provision_type == 'new-domain':
podman_cmd.append("new-domain")
Expand Down

0 comments on commit afc46a3

Please sign in to comment.