Preflight Checklist
Version
2.31.0
Storage Type
Kubernetes
Installation Type
Official container image
Expected Behavior
I want to use a distroless-based Dex build with an upstream LDAP IDP with address ending in .local.
More specifically, I want to run Dex and OpenLDAP on a single Kubernetes cluster for testing purposes, and I want to use a .svc.cluster.local address for OpenLDAP.
Actual Behavior
When I try to login to Dex, I see an error: LDAP Result Code 200 "Network Error": dial tcp: lookup ldap.openldap.svc.cluster.local: device or resource busy

Steps To Reproduce
- Get a Kubernetes cluster
- Build a distroless Dex container image (e.g.,
docker build --build-arg BASEIMAGE=gcr.io/distroless/static:latest -t dex .)
- Deploy OpenLDAP to Kubernetes
- Deploy distroless Dex to Kubernetes (ensuring to use
.local LDAP host)
- Login to Dex
- See error above
Additional Information
Configuration
No response
Logs
No response
Preflight Checklist
Version
2.31.0
Storage Type
Kubernetes
Installation Type
Official container image
Expected Behavior
I want to use a distroless-based Dex build with an upstream LDAP IDP with address ending in
.local.More specifically, I want to run Dex and OpenLDAP on a single Kubernetes cluster for testing purposes, and I want to use a
.svc.cluster.localaddress for OpenLDAP.Actual Behavior
When I try to login to Dex, I see an error:
LDAP Result Code 200 "Network Error": dial tcp: lookup ldap.openldap.svc.cluster.local: device or resource busySteps To Reproduce
docker build --build-arg BASEIMAGE=gcr.io/distroless/static:latest -t dex .).localLDAP host)Additional Information
.localDNS names when CGO is enabled: https://github.com/golang/go/blob/a6f6932b3ee87d9607ce246228e23f9a08dacc31/src/net/conf.go#L190-L193getaddrinfo(3)which actually callsdlopen)-tags netgoGODEBUG=netdns=go/etc/resolv.confand/etc/nsswitch.conf(per https://pkg.go.dev/net#hdr-Name_Resolution)Configuration
No response
Logs
No response