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

Chris asked:

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

My answer:


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


View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.