#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>Go to the source code of this file.
Functions | |
| Int_t | StdCheckSecCtx (const char *, TRootSecContext *) |
| ClassImp (TAuthenticate) static int auth_rand() | |
| static Int_t | SendHostAuth (TSocket *s) |
| static Int_t | RecvHostAuth (TSocket *s, Option_t *opt) |
| Int_t | OldSlaveAuthSetup (TSocket *sock, Bool_t master, TString ord, TString conf) |
| Int_t | OldProofServAuthSetup (TSocket *sock, Bool_t master, Int_t protocol, TString &user, TString &ord, TString &conf) |
Variables | |
| TVirtualMutex * | gAuthenticateMutex = 0 |
| ClassImp | ( | TAuthenticate | ) |
Definition at line 125 of file TAuthenticate.cxx.
References close, gettimeofday(), open, Printf(), read, and ssize_t.
| Int_t OldProofServAuthSetup | ( | TSocket * | sock, | |
| Bool_t | master, | |||
| Int_t | protocol, | |||
| TString & | user, | |||
| TString & | ord, | |||
| TString & | conf | |||
| ) |
Definition at line 5108 of file TAuthenticate.cxx.
References TSystem::AccessPathName(), Error, fclose(), fopen, fread, TSystem::Getenv(), gSystem, h, i, Info, inv(), kMAXPATHLEN, kReadPermission, kROOTD_RSAKEY, ord, pwd(), TSocket::Recv(), RecvHostAuth(), retval, TAuthenticate::SecureRecv(), TAuthenticate::SetDefaultRSAKeyType(), TAuthenticate::SetGlobalPasswd(), TAuthenticate::SetGlobalPwHash(), TAuthenticate::SetGlobalSRPPwd(), TAuthenticate::SetGlobalUser(), TAuthenticate::SetReadHomeAuthrc(), TAuthenticate::SetRSAPublic(), and strtol().
Definition at line 5002 of file TAuthenticate.cxx.
References TString::Data(), Error, gEnv, TSecContext::GetContext(), TSecContext::GetOffSet(), TPwdCtx::GetPasswd(), TSocket::GetRemoteProtocol(), TSocket::GetSecContext(), TSecContext::GetUser(), TEnv::GetValue(), i, inv(), TSecContext::IsA(), TPwdCtx::IsPwHash(), kFALSE, kROOTD_RSAKEY, kTRUE, TString::Length(), ord, TString::Replace(), TAuthenticate::SecureSend(), TSocket::Send(), SendHostAuth(), and Warning().
Definition at line 4890 of file TAuthenticate.cxx.
References TList::Add(), THostAuth::AddMethod(), buf, Error, gDebug, TAuthenticate::GetAuthInfo(), THostAuth::GetDetails(), THostAuth::GetHost(), TAuthenticate::GetHostAuth(), THostAuth::GetMethod(), TAuthenticate::GetProofAuthInfo(), THostAuth::GetUser(), THostAuth::HasMethod(), i, Info, kFALSE, kMAXSECBUF, kPROOF_HOSTAUTH, kTRUE, nc, THostAuth::NumMethods(), TAuthenticate::ReadRootAuthrc(), s, SafeDelete, and THostAuth::Update().
Referenced by OldProofServAuthSetup().
Definition at line 4849 of file TAuthenticate.cxx.
References THostAuth::AsString(), buf, Error, gDebug, TAuthenticate::GetProofAuthInfo(), Info, kPROOF_HOSTAUTH, retval, and s.
Referenced by OldSlaveAuthSetup().
| Int_t StdCheckSecCtx | ( | const char * | , | |
| TRootSecContext * | ||||
| ) |
Definition at line 4520 of file TAuthenticate.cxx.
References TSecContext::GetID(), TSecContext::GetUser(), and TSecContext::IsActive().
Referenced by TAuthenticate::ClearAuth(), and TAuthenticate::SshAuth().
Definition at line 119 of file TAuthenticate.cxx.
1.5.1