#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 "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>
Functions | |
static int | auth_rand () |
rand() implementation using /udev/random or /dev/random, if available 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... | |
Int_t | OldSlaveAuthSetup (TSocket *sock, Bool_t, TString ord, TString conf) |
Setup of authetication in PROOF run after successful opening of the socket. 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... | |
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... | |
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... | |
Variables | |
TVirtualMutex * | gAuthenticateMutex = 0 |
R__rsa_KEY_export | R__fgRSAPubExport [2] = {{}, {}} |
|
static |
rand() implementation using /udev/random or /dev/random, if available
Definition at line 130 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 4146 of file TAuthenticate.cxx.
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 4052 of file TAuthenticate.cxx.
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 3941 of file TAuthenticate.cxx.
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 3903 of file TAuthenticate.cxx.
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 3585 of file TAuthenticate.cxx.
TVirtualMutex* gAuthenticateMutex = 0 |
Definition at line 119 of file TAuthenticate.cxx.
R__rsa_KEY_export R__fgRSAPubExport[2] = {{}, {}} |
Definition at line 107 of file TAuthenticate.cxx.