Closed drbogar closed 2 years ago
I solved it! 🎉
In the meantime, I found out that DNS resolution does not work only in containers where I have specified the ip address of the docker host as DNS server in the docker-compose file. If I specify the ip address 8.8.8.8, the apt-get update
command works fine.
This is because the DNS server communicates via UDP. When Passcore sends the DNS request, the source ip address of the response starts with 172... . This causes Passcore to not accept the DNS response because it came from an unexpected IP address. This can be solved by adding the host ip address to the ports in the pihole docker-compose file:
ports:
- "<docker-host-ip-address>:53:53/tcp"
- "<docker-host-ip-address>:53:53/udp"
PassCore Server
Describe the bug The PassCore backend cannot connect to AD LDAP. I think it is because DNS resolution is not working inside the container. The
apt-get update
command also returns with an error:The above command works fine from other containers, so the problem is not with the DNS server.
To Reproduce Steps to reproduce the behavior:
docker-compose up
command and leave open the consoleExpected behavior Passcore can resolve domain names and can connect to Active Directory LDAP. The user can change its password using passcore.
Screenshots I don't know what screenshot would help solve the problem.
Desktop:
Smartphone: We have not tested the website from smartphones.
Additional context Feel free to ask if I missed anything.