CHECKRAD(5)

πŸ’– CHECKRAD(5) β€” the file formats manual page, bestie edition πŸ’–

okay so like. this is the manual page for checkrad, from the File Formats Manual section (section 5, if you're keeping score). buckle up πŸŽ€


✨ NAME ✨

checkrad β€” literally just: See if a user is (still) logged in on a certain port. that's it. that's the whole vibe check. πŸ•΅οΈβ™€οΈ


🌸 SYNOPSIS 🌸

checkrad [-d] nas-type nas-ip nas-port login session-id

πŸ¦‹ DESCRIPTION πŸ¦‹

so Checkrad is the little bestie that the radius server calls when it suspects a double login πŸ‘€ β€” it goes and checks whether the server's idea of a user being logged in on a certain port/NAS is actually correct.

and it reports back with a number, which is honestly giving exit-code energy:

  • 0 = no duplicate πŸ™…β™€οΈ
  • 1 = duplicate 😱
  • >1 = error πŸ’€

πŸ’… OPTIONS πŸ’…

  • -d β€” turns on printing of debugging information. it's giving "let me see everything" πŸ”
  • nas-type β€” the type of port/NAS you're dealing with. can be any one of these, and yes bestie, I'm listing every single one because we do not skip:
    • ascend
    • bay
    • cisco
    • cisco_l2tp
    • computone
    • cvx
    • digitro
    • dot1x
    • livingston
    • max40xx
    • mikrotik
    • mikrotik_snmp
    • multitech
    • netserver
    • other
    • pathras
    • patton
    • portslave
    • pr3000
    • pr4000
    • redback
    • tc
    • usrhiper
    • versanet
⚠️ and here's the plot twist: the "other" type makes checkrad skip any check and always return 1. no cap. it just says "yeah sure, duplicate" and leaves. iconic behaviour honestly but be careful with it πŸ™ˆ
  • nas-ip β€” the IP address of the NAS you want to check. give it the address, it goes and looks πŸ‘‘
  • nas-port β€” the NAS port to check. heads up though: this may be ignored by some nas-type 🫠
  • login β€” the login name to check. yes, the actual username bestie 🌈
  • session-id β€” the session to check. and ngl this one is actually ignored by all nas-type πŸ’€ so it's just... there. sitting pretty. being decorative. we love a placeholder that serves cunt and nothing else πŸ’…

πŸ”₯ SEE ALSO πŸ”₯

  • radiusd(8) β€” go read that one too, it's the whole reason this little helper exists πŸ’œ

🌟 AUTHOR 🌟

Written by Miquel van Smoorenburg, miquels@cistron.nl. legend behaviour honestly 🫢

This manual page was written by Marco Nenciarini <mnencia@debian.org> for the Debian project (but may be used by others). πŸ’–


okay that's the whole page, you ate that, no notes βœ¨πŸ’…

and a cute lil sign-off: this was pulled from the File Formats Manual, dated 13 January 2006 β€” yes bestie, 2006, we're reading vintage and it's still serving πŸŽ€πŸ¦‹ periodt πŸ’œ

πŸ“¦ where this page comes from