public void init(JRadiusRequest request, JRadiusSession session) throws RadiusException { RadiusPacket req = request.getRequestPacket(); setType(request); // The client IP should never be changing if (getClientIPAddress() == null) { InetAddress clientAddress = (InetAddress) req.getAttributeValue(Attr_ClientIPAddress.TYPE); if (clientAddress != null) setClientIPAddress(clientAddress.getHostAddress()); } // We want the original NAS-Identifier, not any rewrite // Grab the value at the first call to InitHandler if (getNasIdentifier() == null) { String nasId = (String) req.getAttributeValue(Attr_NASIdentifier.TYPE); setNasIdentifier(nasId); } if (getUserName() == null) setUserName(session.getUsername()); if (getRealm() == null) setRealm(session.getRealm()); // The inbound request should be got at the preacct or authorize // at the first position in the chain if (getInboundRequest() == null) setInboundRequest(req.toString(false, true)); }
public void init(JRadiusRequest request, JRadiusSession session) throws RadiusException { RadiusPacket req = request.getRequestPacket(); setType(request); // The client IP should never be changing if (getClientIPAddress() == null) { InetAddress clientAddress = (InetAddress) req.getAttributeValue(Attr_ClientIPAddress.TYPE); if (clientAddress != null) setClientIPAddress(clientAddress.getHostAddress()); } // We want the original NAS-Identifier, not any rewrite // Grab the value at the first call to InitHandler if (getNasIdentifier() == null) { String nasId = (String) req.getAttributeValue(Attr_NASIdentifier.TYPE); setNasIdentifier(nasId); } if (getUserName() == null) setUserName(session.getUsername()); if (getRealm() == null) setRealm(session.getRealm()); // The inbound request should be got at the preacct or authorize // at the first position in the chain if (getInboundRequest() == null) setInboundRequest(req.toString(false, true)); }
public void init(JRadiusRequest request, JRadiusSession session) throws RadiusException { RadiusPacket req = request.getRequestPacket(); setType(request); // The client IP should never be changing if (getClientIPAddress() == null) { InetAddress clientAddress = (InetAddress) req.getAttributeValue(Attr_ClientIPAddress.TYPE); if (clientAddress != null) setClientIPAddress(clientAddress.getHostAddress()); } // We want the original NAS-Identifier, not any rewrite // Grab the value at the first call to InitHandler if (getNasIdentifier() == null) { String nasId = (String) req.getAttributeValue(Attr_NASIdentifier.TYPE); setNasIdentifier(nasId); } if (getUserName() == null) setUserName(session.getUsername()); if (getRealm() == null) setRealm(session.getRealm()); // The inbound request should be got at the preacct or authorize // at the first position in the chain if (getInboundRequest() == null) setInboundRequest(req.toString(false, true)); }