mirror of
				https://github.com/Telecominfraproject/wlan-cloud-opensync-controller.git
				synced 2025-10-31 02:27:49 +00:00 
			
		
		
		
	WIFI-1529: CP: Open+Radius Captive Portal Auth doesn't work
This commit is contained in:
		| @@ -1011,11 +1011,12 @@ public class OpensyncExternalIntegrationCloud implements OpensyncExternalIntegra | |||||||
|                 ret.setHotspotConfig(hotspotConfig); |                 ret.setHotspotConfig(hotspotConfig); | ||||||
|             } |             } | ||||||
|  |  | ||||||
|             ret.setRadiusProfiles(new ArrayList<>(radiusSet)); |  | ||||||
|             ret.setCaptiveProfiles(profileServiceInterface.get(captiveProfileIds)); |             ret.setCaptiveProfiles(profileServiceInterface.get(captiveProfileIds)); | ||||||
|             for (Profile captivePortal : ret.getCaptiveProfiles()) { |             for (Profile captivePortal : ret.getCaptiveProfiles()) { | ||||||
|                 radiusSet.addAll(profileContainer.getChildrenOfType(captivePortal.getId(), ProfileType.radius)); |                 radiusSet.addAll(profileContainer.getChildrenOfType(captivePortal.getId(), ProfileType.radius)); | ||||||
|             } |             } | ||||||
|  |             ret.setRadiusProfiles(new ArrayList<>(radiusSet)); | ||||||
|  |  | ||||||
|             ret.setBonjourGatewayProfiles(profileServiceInterface.get(bonjourGatewayProfileIds)); |             ret.setBonjourGatewayProfiles(profileServiceInterface.get(bonjourGatewayProfileIds)); | ||||||
|  |  | ||||||
|             List<Client> blockedClients = clientServiceInterface.getBlockedClients(customerId); |             List<Client> blockedClients = clientServiceInterface.getBlockedClients(customerId); | ||||||
| @@ -1023,7 +1024,9 @@ public class OpensyncExternalIntegrationCloud implements OpensyncExternalIntegra | |||||||
|             if ((blockedClients != null) && !blockedClients.isEmpty()) { |             if ((blockedClients != null) && !blockedClients.isEmpty()) { | ||||||
|                 blockedClients.forEach(client -> blockList.add(client.getMacAddress())); |                 blockedClients.forEach(client -> blockList.add(client.getMacAddress())); | ||||||
|             } |             } | ||||||
|  |              | ||||||
|             ret.setBlockedClients(blockList); |             ret.setBlockedClients(blockList); | ||||||
|  |             ret.setRadiusProfiles(new ArrayList<>(radiusSet)); | ||||||
|  |  | ||||||
|             LOG.debug("ApConfig {}", ret); |             LOG.debug("ApConfig {}", ret); | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Mike Hansen
					Mike Hansen