In Websphere 6.x LDAP query using LdapContext is the transmission of credentials encrypted?

In Websphere when you do an LDAP query using LdapContext are the transmission of credentials encrypted?

LdapContext ctx = new InitialLdapContext (env, null);

Lets say I make an LdapContext for a web app to do some custom LDAP calls.

How do I know if my call is secure / encrypted?

Asked by: Robert891 | Posted: 23-01-2022

Answer 1

In order to secure/encrypt your LDAP calls you need to issue the "Start TLS" operation.

Otherwise I think transport is plain text.

For more:

Obviously the Java API is based on LDAP itself. So you could learn more about how the protocol itself handles it...i.e.:

Answered by: Hailey487 | Posted: 24-02-2022

Answer 2

Use ethereal or wireshark and snoop your LDAP connection to check if it is encrypted. If its encrypted then great, if not then try Michael Sharek's suggestion.

If you find there is absolutely no way to setup encryption with code, then you can use stunnel. With stunnel you would make a unsecured connection to a port on the localhost, stunnel is listening on that port, encrypts everything with SSL and then sends the info to the LDAP server. Is very useful when using 3rd party apps that have no notion of network security.

Answered by: Kimberly983 | Posted: 24-02-2022

Similar questions

Voice transmission over LAN using java?

I'm building a java application which works in a LAN environment, every computer on that LAN have this application installed on it, at some point i need this application to transfer voice simultaneously to all computer over the LAN (voice broadcasting) according to the following mechanism: Only one computer of the LAN can send voice using a microphone(the administrator) All computers receive that voi...

java - Android, Eclipse, and SVN - How does source folder naming affect transmission?

Hey. Been running into a rash of problems trying to make projects version controlled. Here is a picture of my eclipse set up on my main dev pc. Everything works fine here. I decide to check out a copy onto my laptop and here is what I get:

android - How do Java TCP/IP sockets report transmission success or failure to the application?

I am having a problem with Java TCP/IP sockets: my Java application will continue endlessly to send data to a server even if the server gets switched off (without a proper TCP/IP disconnect) in the meantime. I am using the following code to send the data: PrintWriter out = PrintWriter(socket.getOutputStream(), true); out.write("text"); if (out.checkError()) { System.err.println("Error sending st...

java - Transmission of values between a inner class and outer class

I am struggling a long time now with the following problem: I do not understand why the method setStatus () does not work. The method setButton () check whether the individual elements in a field "status" to "true" if all this have to activate a button. Unfortunately staus field values ​​do not change. I'd like to add, that textBox.setTitle() and textBox.addStyleName work well. Here is my code:

java - How can I simulate erroneous bit transmission through a wire?

So I have the following homework, but I don't understand exactly what the process is. Has anyone seen this question before or actually understands what the logic should be? I don't want code, I know how to program, but I don't exactly know what to do here. Consider a wire across which data is transmitted bit-by-bit. Occasionally, a bit or a group of consecutive bits is transmitted incorrectly. If ...

java - Separate ASCII from binary in a socket transmission

I have to decode a socket transmission which contains pieces of a file: data %filekey% [3:%piece3% 5:%piece5% 7:%piece7% 8:%piece8% 9:%piece9%] %pieceN% contains the N-th binary piece of the file Pieces' lengths are known %filekey% is known Indexes are known (but maybe not in the right order) Everything but the pieces is A...

java - Measure message transmission speed

I am making a network application and I would like to display the time messages take to travel from sender to receiver. What ways you believe are fit to implement this feature ? What I have thought is storing the current time on message and comparing with time on receiver end. Although on java doc it says the current Time given might be different depending on OS. How should I get the...

java - Transmission of files through Socket or HTTP, between Android devices and desktops

I have custom socket client server data (file or text) transmission code. Now when I transfer binary files, some bytes convert onto out of range characters. So I send them in hex string. That works. But for another problem this is not the solution. This has a performance problems as well. I took help from Java code To convert byte to Hexadecimal....

java - Slow Arduino serial transmission

I'm testing my Arduino UNO's serial transmission speed. For my requirements I have to transfer 3KB/s from the host PC to the Arduino. I've written a very simple program which replies back the result of Serial.available() and then tested it in the Arduino IDE's Serial monitor. I've started sending characters until I reached the maximum which is 63 bytes. I was quite surprised of that because I read somewhere th...

java - Jersey server - Trapping connection failure during response transmission

We've a RESTful java application developed w/ Jersey, deployed in a weblogic 11g on a CentOS 5.7 box and available for mobile clients (Android) connections. Sometimes, due to the mobile network, the response (200OK w/ payload) sent by the server doesn't reach the client that needs to handle a timeout exception; the server seems not...

Still can't find your answer? Check out these amazing Java communities for help...

Java Reddit Community | Java Help Reddit Community | Java Community | Java Discord | Java Programmers (Facebook) | Java developers (Facebook)