Skip to content
Snippets Groups Projects
Verified Commit f494f56d authored by Fredrik Roubert's avatar Fredrik Roubert
Browse files

ITS#4501 Replace call to deprecated LDAPConnection.bind() method.

JLDAP Sep_ndk_2003 deprecated LDAPConnection.bind(int, String, String)
in favour of LDAPConnection.bind(int, String, byte[]).
parent 339120d5
No related branches found
No related tags found
1 merge request!6ITS#4501 Update code base to Java8.
......@@ -22,6 +22,9 @@ import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.*;
import org.eclipse.swt.events.*;
import java.nio.charset.StandardCharsets;
/**
* @author Marc Boorshtein
*
......@@ -153,7 +156,7 @@ class DoRebind extends SelectionAdapter {
*/
public void widgetSelected(SelectionEvent e) {
try {
rebind.con.getConnection().bind(3,rebind.user.getText(),rebind.pass.getText());
rebind.con.getConnection().bind(3,rebind.user.getText(),rebind.pass.getText().getBytes(StandardCharsets.UTF_8));
rebind.conInfo.user = rebind.user.getText();
rebind.conInfo.pass = rebind.pass.getText();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment