Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TAuthenticate.cxx File Reference
#include "RConfigure.h"
#include "TAuthenticate.h"
#include "TApplication.h"
#include "THostAuth.h"
#include "TRootSecContext.h"
#include "TPluginManager.h"
#include "TNetFile.h"
#include "TPSocket.h"
#include "TMessage.h"
#include "TSystem.h"
#include "TError.h"
#include "Getline.h"
#include "TROOT.h"
#include "TEnv.h"
#include "TList.h"
#include "NetErrors.h"
#include "TRegexp.h"
#include "TVirtualMutex.h"
#include "TTimer.h"
#include "TBase64.h"
#include "strlcpy.h"
#include "snprintf.h"
#include "rsafun.h"
#include <sys/stat.h>
#include <errno.h>
#include <sys/types.h>
#include <time.h>
#include <crypt.h>
#include <stdlib.h>
#include <sys/time.h>
Include dependency graph for TAuthenticate.cxx:

Classes

struct  R__rsa_KEY
 
struct  R__rsa_KEY_export
 
struct  R__rsa_NUMBER
 

Functions

static int auth_rand ()
 rand() implementation using /udev/random or /dev/random, if available
 
Int_t OldProofServAuthSetup (TSocket *sock, Bool_t master, Int_t protocol, TString &user, TString &ord, TString &conf)
 Authentication related setup in TProofServ run after successful startup.
 
Int_t OldSlaveAuthSetup (TSocket *sock, Bool_t, TString ord, TString conf)
 Setup of authetication in PROOF run after successful opening of the socket.
 
static Int_t RecvHostAuth (TSocket *s, Option_t *opt)
 Receive from client/master directives for authentications, create related THostAuth and add them to the TAuthenticate::ProofAuthInfo list.
 
static Int_t SendHostAuth (TSocket *s)
 Sends the list of the relevant THostAuth objects to the master or to the active slaves, typically data servers external to the proof cluster.
 
Int_t StdCheckSecCtx (const char *user, TRootSecContext *ctx)
 Standard version of CheckSecCtx to be passed to TAuthenticate::AuthExists Check if User is matches the one in Ctx Returns: 1 if ok, 0 if not Deactivates Ctx is not valid.
 

Variables

TVirtualMutexgAuthenticateMutex = 0
 
R__rsa_KEY_export R__fgRSAPubExport [2] = {{}, {}}
 

Function Documentation

◆ auth_rand()

static int auth_rand ( )
static

rand() implementation using /udev/random or /dev/random, if available

Definition at line 132 of file TAuthenticate.cxx.

◆ OldProofServAuthSetup()

Int_t OldProofServAuthSetup ( TSocket sock,
Bool_t  master,
Int_t  protocol,
TString user,
TString ord,
TString conf 
)

Authentication related setup in TProofServ run after successful startup.

Provided for backward compatibility. Return 0 on success, -1 on failure.

Definition at line 4151 of file TAuthenticate.cxx.

◆ OldSlaveAuthSetup()

Int_t OldSlaveAuthSetup ( TSocket sock,
Bool_t  ,
TString  ord,
TString  conf 
)

Setup of authetication in PROOF run after successful opening of the socket.

Provided for backward compatibility. Return 0 on success, -1 on failure.

Definition at line 4057 of file TAuthenticate.cxx.

◆ RecvHostAuth()

static Int_t RecvHostAuth ( TSocket s,
Option_t opt 
)
static

Receive from client/master directives for authentications, create related THostAuth and add them to the TAuthenticate::ProofAuthInfo list.

Opt = "M" or "m" if Master, "S" or "s" if Proof slave. The 'proofconf' file is read only if Master

Definition at line 3946 of file TAuthenticate.cxx.

◆ SendHostAuth()

static Int_t SendHostAuth ( TSocket s)
static

Sends the list of the relevant THostAuth objects to the master or to the active slaves, typically data servers external to the proof cluster.

The list is of THostAuth to be sent is specified by TAuthenticate::fgProofAuthInfo after directives found in the .rootauthrc family files ('proofserv' key) Returns -1 if a problem sending THostAuth has occured, -2 in case of problems closing the transmission.

Definition at line 3908 of file TAuthenticate.cxx.

◆ StdCheckSecCtx()

Int_t StdCheckSecCtx ( const char *  user,
TRootSecContext ctx 
)

Standard version of CheckSecCtx to be passed to TAuthenticate::AuthExists Check if User is matches the one in Ctx Returns: 1 if ok, 0 if not Deactivates Ctx is not valid.

Definition at line 3590 of file TAuthenticate.cxx.

Variable Documentation

◆ gAuthenticateMutex

TVirtualMutex* gAuthenticateMutex = 0

Definition at line 121 of file TAuthenticate.cxx.

◆ R__fgRSAPubExport

R__rsa_KEY_export R__fgRSAPubExport[2] = {{}, {}}

Definition at line 109 of file TAuthenticate.cxx.