Module: Gitlab

Defined in:
lib/gitlab/qa/component/ldap.rb,
lib/gitlab/qa.rb,
lib/gitlab/qa/release.rb,
lib/gitlab/qa/version.rb,
lib/gitlab/qa/runtime/env.rb,
lib/gitlab/qa/docker/engine.rb,
lib/gitlab/qa/docker/command.rb,
lib/gitlab/qa/docker/volumes.rb,
lib/gitlab/qa/component/specs.rb,
lib/gitlab/qa/docker/shellout.rb,
lib/gitlab/qa/component/gitlab.rb,
lib/gitlab/qa/scenario/actable.rb,
lib/gitlab/qa/component/staging.rb,
lib/gitlab/qa/scenario/template.rb,
lib/gitlab/qa/component/internet_tunnel.rb,
lib/gitlab/qa/scenario/test/instance/any.rb,
lib/gitlab/qa/scenario/test/omnibus/image.rb,
lib/gitlab/qa/scenario/test/instance/image.rb,
lib/gitlab/qa/scenario/test/omnibus/update.rb,
lib/gitlab/qa/scenario/test/sanity/version.rb,
lib/gitlab/qa/scenario/test/integration/geo.rb,
lib/gitlab/qa/scenario/test/omnibus/upgrade.rb,
lib/gitlab/qa/scenario/test/instance/staging.rb,
lib/gitlab/qa/scenario/test/integration/ldap.rb,
lib/gitlab/qa/scenario/test/integration/kubernetes.rb,
lib/gitlab/qa/scenario/test/integration/mattermost.rb

Overview

This component sets up the docker-openldap (github.com/osixia/docker-openldap) image with the proper configuration for GitLab users to login.

By default, the docker-openldap image configures the Docker image with a default admin user in the example.org domain. This user does not have a uid attribute that GitLab needs to authenticate, so we seed the LDAP server with a “tanuki” user via a LDIF file in the fixtures/ldap directory.

The docker-openldap container has a startup script (github.com/osixia/docker-openldap/blob/v1.1.11/image/service/slapd/startup.sh#L74-L78) that looks for custom LDIF files in the BOOTSTRAP_LDIF directory. Note that the LDIF files must have a “changetype” option specified for the script to work.

Defined Under Namespace

Modules: QA