SASL_USER_EXISTS(3)

πŸ’– sasl_user_exists β€” bestie edition ✨

okay so real talk, this is sasl_user_exists(3), one of the little cuties from the Cyrus SASL manual (section 3, we're in library-call territory, very demure, very coder girl πŸ’…).


🌸 NAME 🌸

sasl_user_exists β€” Cyrus SASL documentation 🫢


✨ SYNOPSIS ✨

no cap, here's the vibe, copy it exactly:

#include <sasl/sasl.h>

int sasl_user_exists( sasl_conn_t *conn,
                      const char *service,
                      const char *user_realm,
                      const char *user)

πŸ¦‹ DESCRIPTION πŸ¦‹

same signature, one more time because she's iconic:

int sasl_user_exists( sasl_conn_t *conn,

const char *service,

const char *user_realm,

const char *user)

so like… what does she do? sasl_user_exists will check if a user exists on the server. that's it, that's the whole job, and she ate. πŸ”₯

πŸŽ€ Parameters πŸŽ€

the way that every single one of these matters, let's go:

  • conn – the SASL context for this connection (your main character, lowkey)
  • service – Service name, or NULL (and if you pass NULL, it uses the service name of the connection context 🌈)
  • user_realm – Realm to check in, or NULL (and NULL here means the default realm, periodt)
  • user – User name to check for existence. literally just the name, bestie. πŸ‘‘

πŸ’œ RETURN VALUE πŸ’œ

SASL functions should return SASL return codes β€” that's the whole system, no exceptions. peek at sasl.h for a complete list if you wanna see all of them, because there are many. and for the record: SASL_OK indicates success. so if you see SASL_OK, you're slaying. if you don't… 😭 vibe check failed, go read the error codes.


🧚 SEE ALSO 🧚

go read these next, iykyk:

  • RFC 4422
  • :saslman:sasl(3)
  • :saslman:sasl_errors(3)

πŸ‘‘ AUTHOR πŸ‘‘

The Cyrus Team. icons only. πŸ’–


1993-2016, The Cyrus Team. yeah, that's a long legacy, we love a long-running queen.


this page is from version 2.1.28, dated February 18, 2022 β€” and that's the whole SASL_USER_EXISTS(3) story, bestie. go check those users, but stay safe out there 🫢✨πŸ’