Skip to content

Instantly share code, notes, and snippets.

@fiftin
Last active March 29, 2022 11:42
Show Gist options
  • Save fiftin/a697b2a88722ebd4ef1293bd5d7bbc88 to your computer and use it in GitHub Desktop.
Save fiftin/a697b2a88722ebd4ef1293bd5d7bbc88 to your computer and use it in GitHub Desktop.

LDAP client configuration (Ansible Semaphore config.json):

{
  "ldap_enable": true,
  "ldap_needtls": false,
  "ldap_binddn": "cn=admin,dc=example,dc=org",
  "ldap_bindpassword": "adminpassword",
  "ldap_server": "localhost:1389",
  "ldap_searchdn": "ou=users,dc=example,dc=org",
  "ldap_searchfilter": "(&(objectClass=inetOrgPerson)(uid=%s))",
  "ldap_mappings": {
    "dn": "",
    "mail": "uid",
    "uid": "uid",
    "cn": "cn"
  }
}

Docker file for LDAP server (docker-compose.yml):

version: '2'

services:
  openldap:
    image: docker.io/bitnami/openldap:2.6
    ports:
      - '1389:1389'
      - '1636:1636'
    environment:
      - LDAP_ADMIN_USERNAME=admin
      - LDAP_ADMIN_PASSWORD=adminpassword
      - LDAP_USERS=user01,user02
      - LDAP_PASSWORDS=password1,password2
      - BITNAMI_DEBUG=true
      - LDAP_LOG_LEVEL=9
    volumes:
      - './cert2:/opt/bitnami/openldap/certs'
      - 'openldap_data:/bitnami/openldap'
volumes:
  openldap_data:
    driver: local
@pao-pirka
Copy link

Hello, thank you for the information!

I configured my config.json accordingly. Sadly the problem still persists. Now I don't get any error printouts in to the semaphore console while semaphore is running.

Any suggestions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment