|
1 | 1 | /*
|
2 |
| - Copyright 2016, 2019, 2020 Nationale-Nederlanden |
| 2 | + Copyright 2016, 2019-2020 Nationale-Nederlanden, 2022 WeAreFrank! |
3 | 3 |
|
4 | 4 | Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | you may not use this file except in compliance with the License.
|
|
27 | 27 |
|
28 | 28 | import org.apache.commons.lang3.StringUtils;
|
29 | 29 |
|
30 |
| -import nl.nn.adapterframework.core.PipeLineSession; |
31 | 30 | import nl.nn.adapterframework.core.ParameterException;
|
| 31 | +import nl.nn.adapterframework.core.PipeLineSession; |
32 | 32 | import nl.nn.adapterframework.core.PipeRunException;
|
33 | 33 | import nl.nn.adapterframework.core.PipeRunResult;
|
34 | 34 | import nl.nn.adapterframework.doc.IbisDoc;
|
35 | 35 | import nl.nn.adapterframework.parameters.ParameterValueList;
|
36 | 36 | import nl.nn.adapterframework.stream.Message;
|
37 |
| -import nl.nn.adapterframework.webcontrol.DummySSLSocketFactory; |
38 | 37 |
|
39 | 38 | /**
|
40 | 39 | * Pipe that checks if a specified dn exists as 'member' in another specified dn
|
@@ -108,8 +107,7 @@ private boolean findMember(String host, int port, String dnSearchIn, boolean use
|
108 | 107 | ctx = new InitialDirContext(env);
|
109 | 108 | } catch (CommunicationException e) {
|
110 | 109 | log.info("Cannot create constructor for DirContext ["+ e.getMessage() + "], will try again with dummy SocketFactory",e);
|
111 |
| - env.put("java.naming.ldap.factory.socket", DummySSLSocketFactory.class.getName()); |
112 |
| - ctx = new InitialLdapContext(env, null); |
| 110 | + ctx = new InitialLdapContext(env, null); //Try again without connection request controls. |
113 | 111 | }
|
114 | 112 | Attribute attrs = ctx.getAttributes("").get("member");
|
115 | 113 | if (attrs != null) {
|
|
0 commit comments