Saturday, November 9, 2019

OpenLDAP using ipv6 link-local address "Can't contact LDAP Server (-1)"



I'm trying to use IPV6 to connect to my LDAP server. Everything works if I use ipv4 but I'm not ipv6 link-local address. I used the following command on my server using its own ipv6 address. Any clue what I'm doing wrong? I can use ping6 to ping the server from client and client from server.



ldapsearch -D "user" -H "ldap://[fe80:20c:29ff:fefd:deea] -W returns Can't contact LDAP Server (-1)




Thanks


Answer



Your IPv6 address is incomplete. You forgot the scope ID, which appears as a % followed by the relevant interface ID.


No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...