问题
i have an ldap server on my local and remote. I could telnet to my local ldap url, but i have trouble telnet to my remote.
telnet www.ilovebears.com 389
and i get an empty screen with a blinking cursor.
is this because of some socket configuration or that the port isn't available?
回答1:
telnet www.ilovebears.com 389 and i get an empty screen with a blinking cursor
That's exactly what you should get. LDAP doesn't speak Telnet. All you can accomplish with a Telnet client is to establish that the server can be connected to.
If you want to exercise the server as an LDAP server you have to use an LDAP client.
回答2:
Your directory server was definitely listening on port 389 at www.ilovebears.com; however, it is no longer.
Do you really need/want to have your server listening on an open port on the Internet?
回答3:
Maybe a little bit late, but here you may find a very basic implementation of a java based LDAP client, very useful for debugging.
Hint : you may use ldaps://x.x.x.x:y for the LDAP over SSL as well...
来源:https://stackoverflow.com/questions/28242740/how-to-test-my-ldap-server-url-using-telnet