| | |
| | | private ConnectionWrapper createConnection(AuthenticationData auth) throws NamingException |
| | | { |
| | | String ldapUrl = auth.getLdapUrl(); |
| | | DN dn = DN.valueOf(auth.getDn()); |
| | | DN dn = auth.getDn(); |
| | | String pwd = auth.getPwd(); |
| | | |
| | | if (auth.useSecureConnection()) |
| | |
| | | { |
| | | AuthenticationData auth = new AuthenticationData(); |
| | | auth.setHostPort(new HostPort("".equals(host) ? null : host, port != null ? port : 0)); |
| | | auth.setDn(dn.toString()); |
| | | auth.setDn(dn); |
| | | auth.setPwd(pwd); |
| | | auth.setUseSecureConnection(true); |
| | | |
| | |
| | | } |
| | | server.setAdsProperties(adsProperties); |
| | | } |
| | | return getRemoteConnection(server, DN.valueOf(auth.getDn()), auth.getPwd(), getConnectTimeout(), |
| | | getPreferredConnections()); |
| | | return getRemoteConnection(server, auth.getDn(), auth.getPwd(), getConnectTimeout(), getPreferredConnections()); |
| | | } |
| | | |
| | | /** |