Certain environment variables might affect the Directory Server in unexpected ways. This is particularly true for environment variables that are used by the underlying operating system to control how it uses non-default libraries.
For this reason, the Directory Server explicitly overrides the values of key environment variables like <PATH>, <LD_LIBRARY_PATH>, and <LD_PRELOAD> to ensure that environment settings used to start the server do not inadvertently impact its behavior.
If you need to edit any of these environment variables, set the values of those variables by manually editing the <set_environment_vars> function of the lib/_script-util.sh script.
You must stop (bin/stop-server) and re-start (bin/start-server) the server for the change to take effect.