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.
![]() ![]() |
#include <cstdlib>
#include <stdio.h>
#include <limits>
#include <string>
#include <vector>
#include <openssl/md5.h>
#include "boost/filesystem.hpp"
#include "irods_default_paths.hpp"
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include <spawn.h>
#include "rods.h"
#include "osauth.h"
#include "rcGlobalExtern.h"
#include "authenticate.h"
Go to the source code of this file.
Functions | |
int | osauthVerifyResponse (char *challenge, char *username, char *response) |
int | osauthGenerateAuthenticator (char *username, int uid, char *challenge, char *key, int key_len, char *authenticator, int authenticator_len) |
int | osauthGetKey (char **key, int *key_len) |
int | osauthGetAuth (char *challenge, char *username, char *authenticator, int authenticator_buflen) |
int | osauthGetUid (char *username) |
int | osauthGetUsername (char *username, int username_len) |
Variables | |
char ** | environ |
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().
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().
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().
int osauthGetUid | ( | char * | username | ) |
Definition at line 381 of file osauth.cpp.
References LOG_ERROR, NULL, and rodsLog().
Referenced by 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.
char** environ |
Referenced by osauthGetAuth().