ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions | Variables
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 <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:

Go to the source code of this file.

Functions

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. More...
 
 ClassImp (TAuthenticate) static int auth_rand()
 rand() implementation using /udev/random or /dev/random, if available More...
 
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. More...
 
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. More...
 
Int_t OldSlaveAuthSetup (TSocket *sock, Bool_t master, TString ord, TString conf)
 Setup of authetication in PROOF run after successful opening of the socket. More...
 
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. More...
 

Variables

TVirtualMutexgAuthenticateMutex = 0
 

Function Documentation

ClassImp ( TAuthenticate  )

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

Definition at line 125 of file TAuthenticate.cxx.

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 5141 of file TAuthenticate.cxx.

Int_t OldSlaveAuthSetup ( TSocket sock,
Bool_t  master,
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 5035 of file TAuthenticate.cxx.

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 4924 of file TAuthenticate.cxx.

Referenced by OldProofServAuthSetup().

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 4886 of file TAuthenticate.cxx.

Referenced by OldSlaveAuthSetup().

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 4553 of file TAuthenticate.cxx.

Referenced by TAuthenticate::ClearAuth(), and TAuthenticate::SshAuth().

Variable Documentation

TVirtualMutex* gAuthenticateMutex = 0

Definition at line 119 of file TAuthenticate.cxx.