Verifying that TLS is used when contacting LDAP server
Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Verifying that TLS is used when contacting LDAP server
Hi.
I've set up our LDAP server and clients to use TLS. But how can I verify that the client in fact is using TLS when contacting the LDAP server?
I know that the LDAP server speaks "plain" LDAP on port 389, while speaking LDAPS on port 636. To check if the LDAP client talked on port 389 I blocked this port on the server, which caused the connection to fail. This may indicate that the client talk to this port, but I'm not sure if this is normal behavior even when it's supposed to use TLS.
With an ssl / tls connection port 389 will never be used.
That's what I thought also, but then there's "Start TLS" which can initate TLS on "insecure" ports. Can it be that the client issues a "Start TLS" on 389 instead of using port 636?
so if it is over 389 you can use tcpdump / wireshark to see the data and watch for the tls session negotiation. should also be present in the ldap logs though.
so if it is over 389 you can use tcpdump / wireshark to see the data and watch for the tls session negotiation. should also be present in the ldap logs though.
I've analyzed the LDAP access log, and it looks like the client connects to port 389 using Start TLS. It would be nice to confirm this by dumping the network traffic, though. I guess wireshark can be used for such, but I would like to use any native Red Hat tools if any. Do you know of some such tools?
not to pull apart IP traffic to that extent, no, there's nothing, and really not supposed to be... tcpdump may show you enough data, you should be able to read unencrypted data, so if you dump the raw data and it's readable...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.