LDAP server image with test data
Integration tests for authentication support require an LDAP server to authenticate/authorize users and possibly also map LDAP users to local (POSIX) users. An LDAP server image with pre-configured users should be provided in this repository.
I've looked at some option, and the best seems to be the rroemhild/test-openldap
image/repo.
The image configures the OpenLDAP server and bootstraps with some data.
This data is insufficient for our purposes as it does not contain the uidNumber
and gidNumber
attributes for mapping LDAP objects to POSIX users with deterministic IDs.
Further missing attributes may emerge when testing with sssd
.
The bootstrap data can be replaced by building our own image based on the upstream image and replacing the content of /opt/openldap/bootstrap/data/
.
A similar bootstrapping approach may be possible with other LDAP server images, for example osixia/openldap
, where a third-party tutorial is available.