The 'uldap' implementation in the Kelvin API [1] uses the environment variables LDAP_MASTER, LDAP_MASTER_PORT, LDAP_HOSTDN etc for connecting to an LDAP server. It does not use the settings found in the local UCR database, if available. Add fallback code to use UCR values in case the environment variables are not available. This will simplify testing the Kelvin API and Kelvin API clients, because manipulating the UCR database before starting the Kelvin App Docker container is simpler than setting the appropriate environment variables. [1] univention-directory-manager-modules-slim/univention/admin/uldap_docker.py
Added code to be tested in a branch dtroeder/feature_kelvin_uldap_docker_fallback_to_ucr: [dtroeder/feature_kelvin_uldap_docker_fallback_to_ucr fb93a4b8e] Bug #51154: add fallback to UCR if environment variables are not available
The code change has been merged into feature/kelvin: [6e37f5160] Bug #51154: add fallback to UCR if environment variables are not available It allowes code to use getMachineConnection() and getAdminConnection() with both connection settings from the environment as well as from UCR.
Are LDAP_MASTER_PORT and LDAP_SERVER_PORT *always* identical? You removed the distinction of these ports between master and not master system.
(In reply to Ole Schwiegert from comment #3) > Are LDAP_MASTER_PORT and LDAP_SERVER_PORT *always* identical? You removed > the distinction of these ports between master and not master system. No - that was an oversight. Fixed: [feature/kelvin d7a183ee0] Bug #51154: fix ldap port
Changelog entries for the updates since the last release were added: [feature/kelvin 67c713d02] Bug #51154: add changelog entry
Code Review: OK Changelog entry: OK Test: OK
Version 2.0.0 has been released.