---
name: "sasl_user_exists"
section: "3"
platform: "linux"
package: "libsasl2-dev"
version: "2.1.28+dfsg1-9"
release: "Debian 13 (Trixie)"
platforms: ["linux", "macos"]
url: "https://new.carta.tech/sasl_user_exists"
---

# sasl\_user\_exists(3)

Cyrus SASL documentation

## NAME

sasl\_user\_exists - Cyrus SASL documentation

## SYNOPSIS

```
#include <sasl/sasl.h>
int sasl_user_exists( sasl_conn_t *conn,
                      const char *service,
                      const char *user_realm,
                      const char *user)
```

## DESCRIPTION

- **int sasl\_user\_exists( sasl\_conn\_t \*conn,**

  - **const char \*service,**

  - **const char \*user\_realm,**

  - **const char \*user)**

  **sasl\_user\_exists** will check if a user exists on the server.

  - **Parameters**

    - •

      **conn** – the SASL context for this connection

    - •

      **service** – Service name or NULL (for service name of connection context)

    - •

      **user\_realm** – Realm to check in or NULL (for default realm)

    - •

      **user** – User name to check for existence.

## RETURN VALUE

SASL functions should return SASL return codes. See sasl.h for a complete list. *SASL\_OK* indicates success.

## SEE ALSO

*RFC 4422*,:saslman:*[sasl(3)](/sasl/3.md)*,:saslman:*[sasl\_errors(3)](/sasl_errors/3.md)*

## AUTHOR

The Cyrus Team

## COPYRIGHT

1993-2016, The Cyrus Team
