irods  4.2.8
About: iRODS (the integrated Rule Oriented Data System) is a distributed data-management system for creating data grids, digital libraries, persistent archives, and real-time data systems.
  Fossies Dox: irods-4.2.8.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

osauth.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define OS_AUTH_CMD   "var/lib/irods/clients/bin/genOSAuth"
 
#define OS_AUTH_ENV_USER   "OSAUTH_USERNAME"
 
#define OS_AUTH_KEYFILE   "etc/irods/irods.key"
 

Functions

int osauthGetAuth (char *challenge, char *username, char *authenticator, int authenticator_buflen)
 
int osauthVerifyResponse (char *challenge, char *username, char *response)
 
int osauthGetKey (char **key, int *key_len)
 
int osauthGetUid (char *username)
 
int osauthGetUsername (char *username, int username_len)
 
int osauthGenerateAuthenticator (char *username, int uid, char *challenge, char *key, int key_len, char *authenticator, int authenticator_len)
 

Macro Definition Documentation

◆ OS_AUTH_CMD

#define OS_AUTH_CMD   "var/lib/irods/clients/bin/genOSAuth"

Definition at line 10 of file osauth.h.

◆ OS_AUTH_ENV_USER

#define OS_AUTH_ENV_USER   "OSAUTH_USERNAME"

Definition at line 11 of file osauth.h.

◆ OS_AUTH_KEYFILE

#define OS_AUTH_KEYFILE   "etc/irods/irods.key"

Definition at line 12 of file osauth.h.

Function Documentation

◆ osauthGenerateAuthenticator()

int osauthGenerateAuthenticator ( char *  username,
int  uid,
char *  challenge,
char *  key,
int  key_len,
char *  authenticator,
int  authenticator_len 
)

Definition at line 107 of file osauth.cpp.

References irods.pypyodbc::buffer, CHALLENGE_LEN, LOG_ERROR, NULL, rodsLog(), SYS_MALLOC_ERR, and USER_INPUT_OPTION_ERR.

Referenced by main(), and osauthVerifyResponse().

Here is the call graph for this function:

◆ osauthGetAuth()

int osauthGetAuth ( char *  challenge,
char *  username,
char *  authenticator,
int  authenticator_buflen 
)

Definition at line 242 of file osauth.cpp.

References irods.pypyodbc::buffer, CHALLENGE_LEN, environ, EXEC_CMD_ERROR, EXEC_CMD_OUTPUT_TOO_LARGE, irods::get_irods_root_directory(), LOG_ERROR, NULL, OS_AUTH_CMD, OS_AUTH_ENV_USER, rodsLog(), irods.pypyodbc::status, SYS_FORK_ERROR, SYS_PIPE_ERROR, and USER__NULL_INPUT_ERR.

Referenced by osauth_auth_establish_context().

Here is the call graph for this function:

◆ osauthGetKey()

int osauthGetKey ( char **  key,
int key_len 
)

Definition at line 167 of file osauth.cpp.

References FILE_OPEN_ERR, FILE_READ_ERR, irods::get_irods_root_directory(), LOG_ERROR, NULL, OS_AUTH_KEYFILE, rodsLog(), SYS_MALLOC_ERR, UNIX_FILE_LSEEK_ERR, and USER__NULL_INPUT_ERR.

Referenced by main(), and osauthVerifyResponse().

Here is the call graph for this function:

◆ osauthGetUid()

int osauthGetUid ( char *  username)

Definition at line 381 of file osauth.cpp.

References LOG_ERROR, NULL, and rodsLog().

Referenced by osauthVerifyResponse().

Here is the call graph for this function:

◆ osauthGetUsername()

int osauthGetUsername ( char *  username,
int  username_len 
)

Definition at line 413 of file osauth.cpp.

References LOG_ERROR, NULL, and rodsLog().

Referenced by main().

Here is the call graph for this function:

◆ osauthVerifyResponse()

int osauthVerifyResponse ( char *  challenge,
char *  username,
char *  response 
)

Definition at line 36 of file osauth.cpp.

References CAT_INVALID_AUTHENTICATION, CHALLENGE_LEN, LOG_ERROR, MAX_PASSWORD_LEN, NULL, osauthGenerateAuthenticator(), osauthGetKey(), osauthGetUid(), RESPONSE_LEN, rodsLog(), rodsLogError(), irods.pypyodbc::status, and SYS_USER_RETRIEVE_ERR.

Here is the call graph for this function: