public JRadiusLogEntry newSessionLogEntry(JRadiusEvent event, JRadiusSession session, String packetId) { return new RadiusLogEntry(session, packetId); }
public String toString() { return "RadiusLogEntry: { type = " + type + ", packetId = " + packetId + " }: " + getMessage(); }
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 addMessage(String message) { StringBuffer sb = new StringBuffer(); if (this.message != null) sb.append(this.message).append(", "); sb.append(message); setMessage(sb.toString()); }
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 addMessage(String message) { StringBuffer sb = new StringBuffer(); if (this.message != null) sb.append(this.message).append(", "); sb.append(message); setMessage(sb.toString()); }
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 addMessage(String message) { StringBuffer sb = new StringBuffer(); if (this.message != null) sb.append(this.message).append(", "); sb.append(message); setMessage(sb.toString()); }
public JRadiusLogEntry newSessionLogEntry(JRadiusEvent event, JRadiusSession session, String packetId) { return new RadiusLogEntry(session, packetId); }
public String toString() { return "RadiusLogEntry: { type = " + type + ", packetId = " + packetId + " }: " + getMessage(); }
public JRadiusLogEntry newSessionLogEntry(JRadiusEvent event, JRadiusSession session, String packetId) { return new RadiusLogEntry(session, packetId); }
public String toString() { return "RadiusLogEntry: { type = " + type + ", packetId = " + packetId + " }: " + getMessage(); }