Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I watch LDAP traffic on port 389?

I use Charles Web Debugging Proxy to watch traffic on ports 80 / 443 for HTTP and HTTPS requests. With Mac OS X, what program can I use to watch traffic on port 389 / 636 for ldap:// and ldaps://? I'm interested in seeing the actual requests / responses, partially to see how secure they are and what the differences are, and partially just because I'm curious as to what the requests look like.

like image 835
cwd Avatar asked Jan 19 '23 08:01

cwd


2 Answers

As noted, Wireshark or tcpdump. You will not be able to judge the security of the requests and responses, because you must view the unsecured connection traffic. If it were encrypted, you would not be available to view the traffic unencrypted. SSL or StartTLS (as an extended operation) should be used to secure LDAP traffic. For more information about the LDAP message envelope, see RFC4511.

like image 124
Terry Gardner Avatar answered Jan 26 '23 22:01

Terry Gardner


You can use Mac OS X's built in tcpdump command, I believe you want a call similar to sudo tcpdump -i en0 port 389,636, though there are other flags on the man page to print out the actual request data (try man tcpdump)

like image 26
Tim Avatar answered Jan 26 '23 20:01

Tim