Hi John and all,

I realise this is too late for Ubuntu 25.04 but I thought I'd add some
relevant updates.

I have adopted wtmpdb in Debian and version 0.72.0-1 includes my
importer for utmp format logs. While it does some unnecessary work
behind the scenes (since it involves creating a temporary wtmpdb format
database), a command like this might work as a new radlast
implementation. Let me know what you think! (Substitute '/var/log/wtmp'
with the relevant radlast log path.)

Hope this helps someone,

-Andy


#!/bin/sh
# Copyright 2025, Andrew Bower <and...@bower.uk>
# SPDX-License-Identifier: MIT
# Import utmp format log file to wtmpdb, run last and remove intermediate file

db=$(mktemp)
trap 'rm -f "$db"' EXIT

[ -r "${UTMP:=/var/log/wtmp}" ] || {
  echo "$0: could not read input: $UTMP" >&2
  return 1
}

wtmpdb import -f "$db" "$UTMP" && last -f "$db" "$@"

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2096611

Title:
  Remove unrunnable radlast command from freeradius 3.2.7

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/freeradius/+bug/2096611/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to