Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

sasl_checkpass(3) [mojave man page]

sasl_checkpass(3)						  SASL man pages						 sasl_checkpass(3)

sasl_checkpass - Check a plaintext password SYNOPSIS
#include <sasl/sasl.h> int sasl_checkpass(sasl_conn_t *conn, const char *user, unsigned userlen, const char *pass, unsigned passlen); DESCRIPTION
sasl_checkpass() will check a plaintext password. This is needed for protocols that had a login method before SASL (for example the LOGIN command in IMAP). The password is checked with the pwcheck_method See sasl_callbacks(3) for information on how this parameter is set. RETURN VALUE
sasl_checkpass returns an integer which corresponds to one of the following codes. SASL_OK indicates that the authentication is complete. All other return codes indicate errors and should either be handled or the authentication session should be quit. See sasl_errors(3) for meanings of return codes. CONFORMING TO
sasl(3), sasl_errors(3), sasl_callbacks(3), sasl_setpass(3) SASL
10 July 2001 sasl_checkpass(3)

Check Out this Related Man Page

sasl_setpass(3) 						  SASL man pages						   sasl_setpass(3)

sasl_setpass - Check a plaintext password SYNOPSIS
#include <sasl/sasl.h> int sasl_setpass(sasl_conn_t *conn, const char *user, const char *pass, unsigned passlen, const char *oldpass, unsigned oldpasslen, unsigned flags) DESCRIPTION
sasl_setpass will set passwords in the sasldb, and trigger the setpass callbacks for all available mechanisms. user is the username to set the password for. pass and passlen are the password to set and its length oldpass and oldpasslen are the old password & its length (and are optional) flags Are flags including SASL_SET_CREATE and SASL_SET_DISABLE (to cause the creating of nonexistent accounts and the disabling of an account, respectively) NOTES
oldpass and oldpasslen are unused in the Cyrus SASL implementation, though are passed on to any mechanisms that may require them. RETURN VALUE
Returns SASL_OK on success. SASL error code on failure. CONFORMING TO
sasl(3), sasl_errors(3), sasl_checkpass(3) SASL
10 July 2001 sasl_setpass(3)
Man Page

4 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Know any good codes?

Know any good codes? (2 Replies)
Discussion started by: fgjiu
2 Replies

2. Homework & Coursework Questions

Please help with the following fork code..with complete explanation

I have the following piece of codes. Please explain it to me in great detail how are these codes working. 1. #include <stdio.h> int main(){ int x; x=0; while (x<2 && fork()){ if (!fork()) execlp("echo","x++","x",0); x++; system("echo x+x"); } } 2. #include <stdio.h> int i;... (1 Reply)
Discussion started by: prakashabii
1 Replies

3. Solaris

Identify which authentication method was used at logon

Experts, Is there any way to know which authentication method the user used to login into the box? I mean, is possible to identify if an active user had logged using keys or password for example? Let me clarify: we have a script that we want to allow users to execute only if they have used... (2 Replies)
Discussion started by: fmattos
2 Replies

4. UNIX for Advanced & Expert Users

How to pass password as a variable for sshpass authentication?

Using below below command i'm able to connect or authenticate server, In below command password contains special characters sshpass -v -p 'ASJBA%hs76)#' ssh -q -o ConnectTimeout=5 hostname But If I pass password as a variable I'm not able to connect or authenticate server, can you please help... (1 Reply)
Discussion started by: sam@sam
1 Replies