Hi,
I'm trying to configure LDAP using the sacli script provided by the OpenVPN AS. Here is what I'm attempting
sacli -k auth.ldap.0.server.0.host -v $hostname ConfigPut"
sacli -k auth.ldap.0.bind_dn -v $ad_bind_user ConfigPut"
sacli -k auth.ldap.0.bind_pw -v $ad_bind_password ConfigPut"
sacli -k auth.ldap.0.users_base_dn -v $user_base_dn ConfigPut"
sacli -k auth.module.type -v ldap ConfigPut"
sacli start
My hope is to combine these commands as a script, which I can run along with the rpm installation to create an OpenVPN Access Server deployment that is ready for authentication via LDAP out of the box.
The problem I'm encountering is that despite the commands above running successfully (and appearing in the LDAP configuration window), I cannot authenticate using LDAP credentials until I click the 'Save Settings' button at the bottom of the LDAP configuration page (see screenshot). This happens even if I run sacli start at the end of my script).
Is this the expected behavior, or is there a way for me to get these settings to save programatically using a utility or api of come kind?