Skip to content

LDAP outpost ingores "DOCKER_MAP_PORTS: false" #11931

Description

@BAAAASS

Describe the bug
When I setup my LDAP Outpost container manually - as per the documenation and opt to use an external network. According to the docker documentation, when a external network is selected, then port mapping is disabled. I assign a static IP and try to connect to this IP on the original port 389, but it fails, connecting on 3389 does work.

To Reproduce
Create Outpost using this docker compose:
networks:
eth_lan:
external: true
auth_priv:
name: auth_priv
driver: bridge
ipam:
config:
- subnet: 172.19.1.0/24
Auth-LDAP:
container_name: Auth-LDAP
hostname: ldap.mypersonal.fqdn
image: ghcr.io/goauthentik/ldap:latest
restart: unless-stopped
networks:
auth_priv:
eth_lan:
ipv4_address: 192.168.40.8
environment:
DOCKER_MAP_PORTS: false
AUTHENTIK_HOST: https://auth.mypersonal.fqdn/
AUTHENTIK_INSECURE: false
AUTHENTIK_TOKEN: abcdefghijklmonpqrstuvwxyz1234567890

My primary certificate has the ldap.mypersonal.fqdn as a Subject Alternative Name on the same auth.mypersonal.fqdn certificate.
In the Outpost configuration, I have also configured the same flag: "DOCKER_MAP_PORTS: false"
The "eth_lan" is configured as an external network as an ipvlan

image

image

Expected behavior
Because of the flag that I specified in combination with the external network, I expec LDAP to listen on the default ports 389 and 636 instead of what it is currently doing and incorrectly listening on 3389 and 6636.

Version and Deployment (please complete the following information):
2024.10.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstatus/staleThis issue has not been updated recently

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions