| | |
| | | import javax.net.ssl.SSLContext; |
| | | import javax.net.ssl.SSLEngine; |
| | | |
| | | import org.forgerock.opendj.ldap.AddressMask; |
| | | import org.opends.messages.Message; |
| | | import org.opends.server.admin.server.ConfigurationChangeListener; |
| | | import org.opends.server.admin.std.server.ConnectionHandlerCfg; |
| | |
| | | // Check to see if the client is on the denied list. |
| | | // If so, then reject it immediately. |
| | | if ((!deniedClients.isEmpty()) |
| | | && AddressMask.maskListContains(clientAddr, deniedClients)) |
| | | && AddressMask.matchesAny(deniedClients, clientAddr)) |
| | | { |
| | | clientConnection.disconnect(DisconnectReason.CONNECTION_REJECTED, |
| | | currentConfig.isSendRejectionNotice(), ERR_CONNHANDLER_DENIED_CLIENT |
| | |
| | | // there is whether the client is on that list. If |
| | | // not, then reject the connection. |
| | | if ((!allowedClients.isEmpty()) |
| | | && (!AddressMask.maskListContains(clientAddr, allowedClients))) |
| | | && (!AddressMask.matchesAny(allowedClients, clientAddr))) |
| | | { |
| | | clientConnection.disconnect(DisconnectReason.CONNECTION_REJECTED, |
| | | currentConfig.isSendRejectionNotice(), |