authtry(4gx)

πŸ“¦ version 3.6, in alpine 3.24, opensuse-leap 16.0

✨ Name ✨

okay so bestie, meet authtry β€” section 4gx of the Gromox admin reference β€” and it is literally a diagnostic utility for debugging authentication. πŸ’… This is the backstage-pass command for when auth is acting sus and you need to peek at what’s going on.

πŸŽ€ Synopsis πŸŽ€

PASS='xyz!' /usr/libexec/gromox/authtry -u abc@example.com
PASS='xyz!' /usr/libexec/gromox/authtry -L [-Z] [-H ldap://localhost/]
-u cn=abc,o=example

πŸ¦‹ Description πŸ¦‹

authtry can be used to debug the user authentication procedure without having to use gdb to attach to, and pause, a running daemon. No cap, that’s the whole vibe: poke at authentication without freezing a live daemon just to inspect it. 🫢

The password is to be conveyed via an environment variable, PASS. And listen, this part matters: PASS being unset is distinct from PASS being the zero-length string; both modes are supported. 😭

🚨 important, bestie: unset PASS is not the same as PASS being an empty string. Both are real supported modes, so don’t mush them together.

πŸ”₯ Options πŸ”₯

  • -H uri β€” LDAP server to connect to, in URI form. If not specified, the libldap default is used. 🌸
  • -L β€” Bypass the normal user lookup via authmgr(4gx), bypass user metadata lookup in MySQL, and only perform an LDAP bind. In this sense, authtry is similar to ldapsearch(1), but without performing any search. It’s giving ldapsearch energy minus the search part, periodt. πŸ’…
  • -Z β€” Perform LDAP STARTTLS (only meaningful when combined with -L). πŸ”
  • -u username/dn β€” The Gromox username (usually user@domain form), or, in case -H is used, an LDAP Distinguished Name. πŸ‘‘

🌈 See also 🌈

gromox(7) β€” go read that too, bestie, iykyk. πŸ“–βœ¨


source/version: Gromox Β· page: authtry(4gx) Β· date: not listed on the original footer, so I’m not inventing one β€” no cap, just cute sign-off energy πŸ’–πŸ«ΆπŸŽ€

πŸ“¦ where this page comes from