SASL_ERRORS(3)

πŸ’– NAME πŸ’–

sasl_errors β€” the Cyrus SASL documentation bestie, aka your cheat sheet for every error code this library can throw at you ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <sasl/sasl.h>

🌸 DESCRIPTION 🌸

okay so listen. every time you call into the SASL library, it might hand you back one of these general error codes, and each one has a meaning β€” tho ngl the exact vibe can shift a lil depending on context. here's the whole roster, no skips, no cuts πŸ’…

πŸŽ€ Common Result Codes πŸŽ€

these are the ones everybody meets. main character codes fr.

  • SASL_OK β€” it worked!! success, we ate, periodt πŸ‘‘
  • SASL_CONTINUE β€” not done yet bestie, authentication needs another step πŸ”
  • SASL_FAIL β€” generic failure, the classic "something went wrong" πŸ’€
  • SASL_NOMEM β€” memory shortage failure, we ran out of RAM 😭
  • SASL_BUFOVER β€” the buffer overflowed, it's giving spilled drink πŸ₯€
  • SASL_NOMECH β€” mechanism not supported / no mechanisms matched your requirements 🚫
  • SASL_BADPROT β€” bad / invalid protocol, or protocol cancel πŸ™ˆ
  • SASL_NOTDONE β€” you cannot request that information / it's not applicable until later in the exchange, patience babes ⏳
  • SASL_BADPARAM β€” you supplied an invalid parameter, girl what was that πŸ’…
  • SASL_TRYAGAIN β€” transient failure (e.g. weak key), so literally just try again πŸ”„
  • SASL_BADMAC β€” integrity check failed, the vibe check did NOT pass 😬
  • SASL_NOTINIT β€” the SASL library is not initialized, she's not even awake yet πŸ’€

🧚 Client-only Result Codes 🧚

only the client side gets these, iykyk

  • SASL_INTERACT β€” needs user interaction, so go talk to a human 🫢
  • SASL_BADSERV β€” the server failed the mutual authentication step, not our fault bestie πŸ™…
  • SASL_WRONGMECH β€” this mechanism doesn't support the feature you asked for 🚫

πŸ‘‘ Server-only Result Codes πŸ‘‘

server girlies only, no clients allowed

  • SASL_BADAUTH β€” authentication failure πŸ”
  • SASL_NOAUTHZ β€” authorization failure 🚷
  • SASL_TOOWEAK β€” the mechanism is too weak for this user πŸ₯€
  • SASL_ENCRYPT β€” encryption is needed to use this mechanism πŸ”’
  • SASL_TRANS β€” one time use of a plaintext password will enable the requested mechanism for the user ✨
  • SASL_EXPIRED β€” passphrase expired, it must be reset ⏰
  • SASL_DISABLED β€” account disabled, she's on pause 🚫
  • SASL_NOUSER β€” user not found, ghosted fr πŸ‘»
  • SASL_BADVERS β€” version mismatch with the plug-in 😡
  • SASL_NOVERIFY β€” the user exists, but there's no verifier for the user 🀷

πŸ“ Password Setting Result Codes πŸ“

the ones that show up when you're setting passwords

  • SASL_PWLOCK β€” passphrase locked πŸ”
  • SASL_NOCHANGE β€” the requested change wasn't needed, nothing to do here πŸ’
  • SASL_WEAKPASS β€” passphrase is too weak for security policy, security said no 🚨
  • SASL_NOUSERPASS β€” user supplied passwords are not permitted 🚫

🌈 CONFORMING TO 🌈

RFC 4422 β€” yes bestie, it's standards compliant, we love a certified icon πŸ“œ


⭐ SEE ALSO ⭐

  • sasl(3) β€” go read this one next, fr fr

πŸ’œ AUTHOR πŸ’œ

The Cyrus Team β€” legends, honestly 🫢


1993-2016, The Cyrus Team


and that's the whole page babes ✨ this was Cyrus SASL version 2.1.28, dated February 18, 2022 β€” go forth and handle your error codes like the main character you are πŸ’…πŸŒΈπŸ’–