TAuthenticate Class Reference

#include <TAuthenticate.h>

Inheritance diagram for TAuthenticate:

TObject TObject List of all members.

Public Types

enum  ESecurity
enum  ESecurity

Public Member Functions

 TAuthenticate (TSocket *sock, const char *remote, const char *proto, const char *user="")
virtual ~TAuthenticate ()
Bool_t Authenticate ()
Int_t AuthExists (TString User, Int_t method, const char *Options, Int_t *Message, Int_t *Rflag, CheckSecCtx_t funcheck)
void CatchTimeOut ()
Bool_t CheckNetrc (TString &user, TString &passwd)
Bool_t CheckNetrc (TString &user, TString &passwd, Bool_t &pwhash, Bool_t srppwd)
THostAuthGetHostAuth () const
const char * GetProtocol () const
const char * GetRemoteHost () const
Int_t GetRSAKeyType () const
TRootSecContextGetSecContext () const
TSocketGetSocket () const
const char * GetUser () const
Int_t HasTimedOut () const
void SetRSAKeyType (Int_t key)
void SetSecContext (TRootSecContext *ctx)
 TAuthenticate (TSocket *sock, const char *remote, const char *proto, const char *user="")
virtual ~TAuthenticate ()
Bool_t Authenticate ()
Int_t AuthExists (TString User, Int_t method, const char *Options, Int_t *Message, Int_t *Rflag, CheckSecCtx_t funcheck)
void CatchTimeOut ()
Bool_t CheckNetrc (TString &user, TString &passwd)
Bool_t CheckNetrc (TString &user, TString &passwd, Bool_t &pwhash, Bool_t srppwd)
THostAuthGetHostAuth () const
const char * GetProtocol () const
const char * GetRemoteHost () const
Int_t GetRSAKeyType () const
TRootSecContextGetSecContext () const
TSocketGetSocket () const
const char * GetUser () const
Int_t HasTimedOut () const
void SetRSAKeyType (Int_t key)
void SetSecContext (TRootSecContext *ctx)

Static Public Member Functions

static void AuthError (const char *where, Int_t error)
static Bool_t CheckProofAuth (Int_t cSec, TString &det)
static Int_t DecodeRSAPublic (const char *rsapubexport, rsa_NUMBER &n, rsa_NUMBER &d, char **rsassl=0)
static TListGetAuthInfo ()
static const char * GetAuthMethod (Int_t idx)
static Int_t GetAuthMethodIdx (const char *meth)
static Bool_t GetAuthReUse ()
static Int_t GetClientProtocol ()
static char * GetDefaultDetails (Int_t method, Int_t opt, const char *user)
static const char * GetDefaultUser ()
static TDatime GetGlobalExpDate ()
static Bool_t GetGlobalPwHash ()
static Bool_t GetGlobalSRPPwd ()
static const char * GetGlobalUser ()
static GlobusAuth_t GetGlobusAuthHook ()
static THostAuthGetHostAuth (const char *host, const char *user="", Option_t *opt="R", Int_t *Exact=0)
static const char * GetKrb5Principal ()
static Bool_t GetPromptUser ()
static TListGetProofAuthInfo ()
static Int_t GetRSAInit ()
static const char * GetRSAPubExport (Int_t key=0)
static THostAuthHasHostAuth (const char *host, const char *user, Option_t *opt="R")
static void InitRandom ()
static void MergeHostAuthList (TList *Std, TList *New, Option_t *Opt="")
static char * PromptPasswd (const char *prompt="Password: ")
static char * PromptUser (const char *remote)
static Int_t ReadRootAuthrc ()
static void RemoveHostAuth (THostAuth *ha, Option_t *opt="")
static Int_t SecureRecv (TSocket *Socket, Int_t dec, Int_t KeyType, char **Out)
static Int_t SecureSend (TSocket *Socket, Int_t enc, Int_t KeyType, const char *In)
static Int_t SendRSAPublicKey (TSocket *Socket, Int_t key=0)
static void SetAuthReUse (Bool_t authreuse)
static void SetDefaultUser (const char *defaultuser)
static void SetGlobalExpDate (TDatime expdate)
static void SetGlobalPasswd (const char *passwd)
static void SetGlobalPwHash (Bool_t pwhash)
static void SetGlobalSRPPwd (Bool_t srppwd)
static void SetGlobalUser (const char *user)
static void SetGlobusAuthHook (GlobusAuth_t func)
static void SetKrb5AuthHook (Krb5Auth_t func)
static void SetPromptUser (Bool_t promptuser)
static void SetDefaultRSAKeyType (Int_t key)
static void SetReadHomeAuthrc (Bool_t readhomeauthrc)
static void SetRSAInit (Int_t init=1)
static Int_t SetRSAPublic (const char *rsapubexport, Int_t klen)
static void SetSecureAuthHook (SecureAuth_t func)
static void SetTimeOut (Int_t to)
static void Show (Option_t *opt="S")
static void AuthError (const char *where, Int_t error)
static Bool_t CheckProofAuth (Int_t cSec, TString &det)
static Int_t DecodeRSAPublic (const char *rsapubexport, rsa_NUMBER &n, rsa_NUMBER &d, char **rsassl=0)
static TListGetAuthInfo ()
static const char * GetAuthMethod (Int_t idx)
static Int_t GetAuthMethodIdx (const char *meth)
static Bool_t GetAuthReUse ()
static Int_t GetClientProtocol ()
static char * GetDefaultDetails (Int_t method, Int_t opt, const char *user)
static const char * GetDefaultUser ()
static TDatime GetGlobalExpDate ()
static Bool_t GetGlobalPwHash ()
static Bool_t GetGlobalSRPPwd ()
static const char * GetGlobalUser ()
static GlobusAuth_t GetGlobusAuthHook ()
static THostAuthGetHostAuth (const char *host, const char *user="", Option_t *opt="R", Int_t *Exact=0)
static const char * GetKrb5Principal ()
static Bool_t GetPromptUser ()
static TListGetProofAuthInfo ()
static Int_t GetRSAInit ()
static const char * GetRSAPubExport (Int_t key=0)
static THostAuthHasHostAuth (const char *host, const char *user, Option_t *opt="R")
static void InitRandom ()
static void MergeHostAuthList (TList *Std, TList *New, Option_t *Opt="")
static char * PromptPasswd (const char *prompt="Password: ")
static char * PromptUser (const char *remote)
static Int_t ReadRootAuthrc ()
static void RemoveHostAuth (THostAuth *ha, Option_t *opt="")
static Int_t SecureRecv (TSocket *Socket, Int_t dec, Int_t KeyType, char **Out)
static Int_t SecureSend (TSocket *Socket, Int_t enc, Int_t KeyType, const char *In)
static Int_t SendRSAPublicKey (TSocket *Socket, Int_t key=0)
static void SetAuthReUse (Bool_t authreuse)
static void SetDefaultUser (const char *defaultuser)
static void SetGlobalExpDate (TDatime expdate)
static void SetGlobalPasswd (const char *passwd)
static void SetGlobalPwHash (Bool_t pwhash)
static void SetGlobalSRPPwd (Bool_t srppwd)
static void SetGlobalUser (const char *user)
static void SetGlobusAuthHook (GlobusAuth_t func)
static void SetKrb5AuthHook (Krb5Auth_t func)
static void SetPromptUser (Bool_t promptuser)
static void SetDefaultRSAKeyType (Int_t key)
static void SetReadHomeAuthrc (Bool_t readhomeauthrc)
static void SetRSAInit (Int_t init=1)
static Int_t SetRSAPublic (const char *rsapubexport, Int_t klen)
static void SetSecureAuthHook (SecureAuth_t func)
static void SetTimeOut (Int_t to)
static void Show (Option_t *opt="S")

Private Member Functions

Int_t GenRSAKeys ()
Bool_t GetPwHash () const
Int_t GetRSAKey () const
ESecurity GetSecurity () const
Bool_t GetSRPPwd () const
const char * GetSshUser (TString user) const
Int_t GetVersion () const
Int_t ClearAuth (TString &user, TString &passwd, Bool_t &pwhash)
Bool_t GetUserPasswd (TString &user, TString &passwd, Bool_t &pwhash, Bool_t srppwd)
char * GetRandString (Int_t Opt, Int_t Len)
Int_t ProofAuthSetup ()
Int_t RfioAuth (TString &user)
void SetEnvironment ()
Int_t SshAuth (TString &user)
Int_t SshError (const char *errfile)
Int_t GenRSAKeys ()
Bool_t GetPwHash () const
Int_t GetRSAKey () const
ESecurity GetSecurity () const
Bool_t GetSRPPwd () const
const char * GetSshUser (TString user) const
Int_t GetVersion () const
Int_t ClearAuth (TString &user, TString &passwd, Bool_t &pwhash)
Bool_t GetUserPasswd (TString &user, TString &passwd, Bool_t &pwhash, Bool_t srppwd)
char * GetRandString (Int_t Opt, Int_t Len)
Int_t ProofAuthSetup ()
Int_t RfioAuth (TString &user)
void SetEnvironment ()
Int_t SshAuth (TString &user)
Int_t SshError (const char *errfile)

Static Private Member Functions

static Bool_t CheckHost (const char *Host, const char *host)
static void FileExpand (const char *fin, FILE *ftmp)
static Int_t ProofAuthSetup (TSocket *sock, Bool_t client)
static void RemoveSecContext (TRootSecContext *ctx)
static Bool_t CheckHost (const char *Host, const char *host)
static void FileExpand (const char *fin, FILE *ftmp)
static Int_t ProofAuthSetup (TSocket *sock, Bool_t client)
static void RemoveSecContext (TRootSecContext *ctx)

Private Attributes

TString fDetails
THostAuthfHostAuth
TString fPasswd
TString fProtocol
Bool_t fPwHash
TString fRemote
Int_t fRSAKey
TRootSecContextfSecContext
ESecurity fSecurity
TSocketfSocket
Bool_t fSRPPwd
Int_t fVersion
TString fUser
Int_t fTimeOut
THostAuthfHostAuth
TRootSecContextfSecContext
TSocketfSocket

Static Private Attributes

static TListfgAuthInfo
static TString fgAuthMeth [kMAXSEC]
static Bool_t fgAuthReUse
static TString fgDefaultUser
static TDatime fgExpDate
static GlobusAuth_t fgGlobusAuthHook
static Krb5Auth_t fgKrb5AuthHook
static TString fgKrb5Principal
static TDatime fgLastAuthrc
static TString fgPasswd
static TPluginHandlerfgPasswdDialog
static Bool_t fgPromptUser
static TListfgProofAuthInfo
static Bool_t fgPwHash
static Bool_t fgReadHomeAuthrc
static TString fgRootAuthrc
static Int_t fgRSAKey
static Int_t fgRSAInit
static rsa_KEY fgRSAPriKey
static rsa_KEY fgRSAPubKey
static rsa_KEY_export fgRSAPubExport [2]
static SecureAuth_t fgSecAuthHook
static Bool_t fgSRPPwd
static TString fgUser
static Bool_t fgUsrPwdCrypt
static Int_t fgLastError
static Int_t fgAuthTO
static Int_t fgProcessID
static TListfgAuthInfo
static TPluginHandlerfgPasswdDialog
static TListfgProofAuthInfo

Friends

class TRootAuth
class TRootSecContext
class TSocket

Detailed Description

Definition at line 63 of file TAuthenticate.h.


Member Enumeration Documentation

enum TAuthenticate::ESecurity

Definition at line 70 of file TAuthenticate.h.

enum TAuthenticate::ESecurity

Definition at line 70 of file TAuthenticate.h.


Constructor & Destructor Documentation

TAuthenticate::TAuthenticate ( TSocket sock,
const char *  remote,
const char *  proto,
const char *  user = "" 
)

Definition at line 160 of file TAuthenticate.cxx.

References THostAuth::AddFirst(), TString::Contains(), TString::Data(), THostAuth::Established(), fgAuthTO, fgProcessID, fgRSAInit, fgRSAKey, fHostAuth, Form(), fPasswd, fProtocol, fPwHash, fRemote, fRSAKey, fSecContext, fSocket, fSRPPwd, fUser, fVersion, gAuthenticateMutex, gDebug, GenRSAKeys(), gEnv, GetAuthInfo(), GetAuthMethodIdx(), GetDefaultDetails(), THostAuth::GetHost(), GetHostAuth(), TSystem::GetHostByName(), TSystem::GetPid(), THostAuth::GetServer(), TSystem::GetUserInfo(), TEnv::GetValue(), gROOT, gSystem, THostAuth::HasMethod(), TSystem::HostName(), i, TObject::Info(), TROOT::IsProofServ(), kFALSE, kMAXSEC, TSocket::kPROOFD, TSocket::kROOTD, TSocket::kSOCKD, ProofAuthSetup(), R__LOCKGUARD2, ReadRootAuthrc(), TString::ReplaceAll(), THostAuth::SetFirst(), THostAuth::SetHost(), Show(), StrDup(), and u.

virtual TAuthenticate::~TAuthenticate (  )  [inline, virtual]

Definition at line 146 of file TAuthenticate.h.

TAuthenticate::TAuthenticate ( TSocket sock,
const char *  remote,
const char *  proto,
const char *  user = "" 
)

virtual TAuthenticate::~TAuthenticate (  )  [inline, virtual]

Definition at line 146 of file TAuthenticate.h.


Member Function Documentation

Int_t TAuthenticate::GenRSAKeys (  )  [private]

Definition at line 3362 of file TAuthenticate.cxx.

References buf, TSystem::DynamicPathName(), rsa_KEY::e, fgRSAInit, fgRSAKey, fgRSAPriKey, fgRSAPubExport, fgRSAPubKey, gDebug, gEnv, GetRandString(), TEnv::GetValue(), gSystem, TObject::Info(), InitRandom(), rsa_KEY_export::keys, kMAXRSATRIES, kPRIMEEXP, kPRIMELENGTH, kTRUE, len, rsa_KEY_export::len, TSystem::Load(), rsa_KEY::n, nbits, p, p1(), p2(), TRSA_fun::RSA_assign(), TRSA_fun::RSA_cmp(), TRSA_fun::RSA_decode(), TRSA_fun::RSA_encode(), TRSA_fun::RSA_genprim(), TRSA_fun::RSA_genrsa(), TRSA_fun::RSA_num_sput(), rsa_STRLEN, strlcpy(), and test().

Referenced by TAuthenticate().

Bool_t TAuthenticate::GetPwHash (  )  const [inline, private]

Definition at line 89 of file TAuthenticate.h.

References fPwHash.

Int_t TAuthenticate::GetRSAKey (  )  const [inline, private]

Definition at line 90 of file TAuthenticate.h.

References fRSAKey.

ESecurity TAuthenticate::GetSecurity (  )  const [inline, private]

Definition at line 91 of file TAuthenticate.h.

References fSecurity.

Bool_t TAuthenticate::GetSRPPwd (  )  const [inline, private]

Definition at line 92 of file TAuthenticate.h.

References fSRPPwd.

const char * TAuthenticate::GetSshUser ( TString  user  )  const [private]

Definition at line 2151 of file TAuthenticate.cxx.

References fgDefaultUser, fgPromptUser, fRemote, gAuthenticateMutex, p, PromptUser(), and R__LOCKGUARD2.

Referenced by SshAuth().

Int_t TAuthenticate::GetVersion (  )  const [inline, private]

Definition at line 94 of file TAuthenticate.h.

References fVersion.

Int_t TAuthenticate::ClearAuth ( TString user,
TString passwd,
Bool_t pwhash 
) [private]

Definition at line 2337 of file TAuthenticate.cxx.

References AuthError(), AuthExists(), TString::BeginsWith(), TString::Contains(), THostAuth::CreateSecContext(), TString::Data(), TObject::Error(), fDetails, fgAuthMeth, fgAuthReUse, fgExpDate, fgPasswd, fgPromptUser, fgPwHash, fgRSAKey, fgSRPPwd, fgUser, fgUsrPwdCrypt, fHostAuth, Form(), fPasswd, fProtocol, fPwHash, fRemote, fRSAKey, fSecContext, fSocket, fSRPPwd, fUser, UserGroup_t::fUser, fVersion, gAuthenticateMutex, gDebug, TSystem::GetEffectiveUid(), TSystem::GetHostByName(), TSocket::GetServType(), TSystem::GetUserInfo(), gSystem, TSystem::HostName(), i, TObject::Info(), int, inv(), kAUTH_CRYPT_MSK, kAUTH_REUSE_MSK, kAUTH_RSATY_MSK, kAUTH_SSALT_MSK, kClear, kErrConnectionRefused, kErrNotAllowed, kFALSE, kMESS_STRING, TSocket::kPROOFD, kROOTD_AUTH, kROOTD_ERR, kROOTD_PASS, kROOTD_RSAKEY, kROOTD_USER, TString::Length(), p, PromptPasswd(), pwd(), R__LOCKGUARD2, TSocket::Recv(), TString::Replace(), SecureRecv(), SecureSend(), TSocket::Send(), SendRSAPublicKey(), TSecContext::SetID(), stat, StdCheckSecCtx(), StrDup(), strlcpy(), and TObject::Warning().

Referenced by Authenticate().

Bool_t TAuthenticate::GetUserPasswd ( TString user,
TString passwd,
Bool_t pwhash,
Bool_t  srppwd 
) [private]

Definition at line 1032 of file TAuthenticate.cxx.

References CheckNetrc(), TString::Data(), TObject::Error(), fgPasswd, fgPwHash, fgSRPPwd, fgUser, fRemote, gDebug, TSystem::GetUserInfo(), gSystem, TObject::Info(), p, PromptUser(), and u.

Referenced by Authenticate().

char * TAuthenticate::GetRandString ( Int_t  Opt,
Int_t  Len 
) [private]

Definition at line 3599 of file TAuthenticate.cxx.

References buf, gDebug, i, TObject::Info(), InitRandom(), j, k, l, and m.

Referenced by GenRSAKeys().

Int_t TAuthenticate::ProofAuthSetup (  )  [private]

Definition at line 4628 of file TAuthenticate.cxx.

References TList::Add(), THostAuth::AddMethod(), xmlio::Class, TString::Data(), TBase64::Decode(), gDebug, GetAuthInfo(), THostAuth::GetDetails(), TSystem::Getenv(), THostAuth::GetHost(), GetHostAuth(), THostAuth::GetMethod(), GetProofAuthInfo(), THostAuth::GetUser(), gROOT, gSystem, h, THostAuth::HasMethod(), i, TObject::Info(), TROOT::IsProofServ(), kFALSE, kTRUE, TString::Length(), THostAuth::NumMethods(), p, TBufferFile::ReadObject(), SafeDelete, SetDefaultRSAKeyType(), SetGlobalPasswd(), SetGlobalPwHash(), SetGlobalSRPPwd(), SetGlobalUser(), SetReadHomeAuthrc(), strtol(), and THostAuth::Update().

Referenced by TRootAuth::Authenticate(), and TAuthenticate().

Int_t TAuthenticate::RfioAuth ( TString user  )  [private]

Definition at line 2243 of file TAuthenticate.cxx.

References AuthError(), TString::Contains(), THostAuth::CreateSecContext(), TString::Data(), TObject::Error(), fDetails, fgAuthMeth, UserGroup_t::fGid, fHostAuth, Form(), fProtocol, fRemote, fSecContext, fSocket, fUser, gDebug, TSystem::GetEffectiveGid(), TSystem::GetEffectiveUid(), TSystem::GetGroupInfo(), TSystem::GetUserInfo(), gSystem, TSystem::HostName(), TObject::Info(), kErrConnectionRefused, kErrNotAllowed, kRfio, kROOTD_AUTH, kROOTD_RFIO, TString::Length(), TSocket::Recv(), TSocket::Send(), stat, username, and TObject::Warning().

Referenced by Authenticate().

void TAuthenticate::SetEnvironment (  )  [private]

Definition at line 846 of file TAuthenticate.cxx.

References cd(), TDatime::Convert(), TString::Data(), fDetails, fgAuthReUse, fgDefaultUser, fgExpDate, fgKrb5Principal, fgPromptUser, fgUser, fgUsrPwdCrypt, fSecurity, fUser, gAuthenticateMutex, gDebug, gEnv, GetAuthMethod(), TSystem::GetUserInfo(), TEnv::GetValue(), gROOT, gSystem, TObject::Info(), TROOT::IsProofServ(), kClear, kFALSE, kGlobus, kKrb5, kMAXPATHLEN, kTRUE, TString::Length(), pd, ptr, R__LOCKGUARD2, TString::Replace(), TDatime::Set(), snprintf, and u.

Referenced by Authenticate().

Int_t TAuthenticate::SshAuth ( TString user  )  [private]

Definition at line 1697 of file TAuthenticate.cxx.

References TSystem::AccessPathName(), TString::Append(), TString::Atoi(), AuthError(), AuthExists(), TString::BeginsWith(), buf, THostAuth::CreateSecContext(), TString::Data(), TObject::Error(), TSystem::Exec(), fclose(), fDetails, fgAuthReUse, fgExpDate, fgProcessID, fgPromptUser, fgRSAPubExport, fHostAuth, fopen, Form(), fprintf(), fRemote, fRSAKey, fSecContext, fSocket, fVersion, fwrite, gDebug, gEnv, TSocket::GetClientProtocol(), TSystem::Getenv(), TSocket::GetPort(), TSocket::GetRemoteProtocol(), TSocket::GetServType(), GetSshUser(), TEnv::GetValue(), gROOT, gSystem, TSystem::HomeDirectory(), TObject::Info(), int, TString::IsDigit(), TROOT::IsProofServ(), kAUTH_REUSE_MSK, kAUTH_RSATY_MSK, kErrNotAllowed, kExecutePermission, kFALSE, kFileExists, kMAXPATHLEN, kMESS_STRING, TSocket::kPROOFD, TSocket::kROOTD, kROOTD_AUTH, kROOTD_ERR, kROOTD_RSAKEY, kROOTD_SSH, TSocket::kSOCKD, kSSH, kTRUE, len, TString::Length(), level, pipe, XrdMonCtrCollector::port, TSocket::Recv(), TString::ReplaceAll(), retval, SafeDelete, SecureRecv(), TSocket::Send(), SendRSAPublicKey(), TSystem::Sleep(), snprintf, SshError(), StdCheckSecCtx(), StrDup(), strlcpy(), TSystem::TempFileName(), TSocket, TSystem::Unlink(), TObject::Warning(), and TSystem::Which().

Referenced by Authenticate().

Int_t TAuthenticate::SshError ( const char *  errfile  )  [private]

Definition at line 1646 of file TAuthenticate.cxx.

References TSystem::AccessPathName(), error, fclose(), ferr, fopen, gDebug, gEnv, TEnv::GetValue(), gSystem, TObject::Info(), kMAXPATHLEN, kReadPermission, line, and StrDup().

Referenced by SshAuth().

Bool_t TAuthenticate::CheckHost ( const char *  Host,
const char *  host 
) [static, private]

Definition at line 2182 of file TAuthenticate.cxx.

References TString::Data(), gAuthenticateMutex, gDebug, TSystem::GetHostByName(), gSystem, TRegexp::Index(), TObject::Info(), kFALSE, kTRUE, len, TString::Length(), name, R__LOCKGUARD2, rename, and retval.

Referenced by GetHostAuth().

void TAuthenticate::FileExpand ( const char *  fin,
FILE *  ftmp 
) [static, private]

Definition at line 2917 of file TAuthenticate.cxx.

References TSystem::AccessPathName(), TString::Contains(), TString::Data(), fclose(), fopen, fprintf(), gDebug, TSystem::Getenv(), gSystem, TSystem::HomeDirectory(), TString::Index(), TObject::Info(), kMAXPATHLEN, kReadPermission, line, TString::Remove(), TString::ReplaceAll(), snprintf, strlcpy(), and TObject::Warning().

Referenced by ReadRootAuthrc().

Int_t TAuthenticate::ProofAuthSetup ( TSocket sock,
Bool_t  client 
) [static, private]

Definition at line 4751 of file TAuthenticate.cxx.

References TBuffer::Buffer(), TString::Data(), TBase64::Encode(), TObject::Error(), gDebug, gEnv, TSecContext::GetContext(), TSecContext::GetOffSet(), TPwdCtx::GetPasswd(), GetProofAuthInfo(), TSocket::GetSecContext(), TSecContext::GetUser(), TEnv::GetValue(), TObject::Info(), TSecContext::IsA(), kFALSE, kMESS_ANY, kTRUE, TString::Length(), TBuffer::Length(), SecureSend(), TSocket::Send(), TSocket::SendRaw(), snprintf, and TMessage::WriteObject().

void TAuthenticate::RemoveSecContext ( TRootSecContext ctx  )  [static, private]

Definition at line 4592 of file TAuthenticate.cxx.

References THostAuth::Established(), GetAuthInfo(), GetProofAuthInfo(), and TList::Remove().

Referenced by TRootSecContext::DeActivate().

Bool_t TAuthenticate::Authenticate (  ) 

Definition at line 399 of file TAuthenticate.cxx.

References TSecContext::AddForCleanup(), AuthError(), CheckNetrc(), ClearAuth(), THostAuth::CountFailure(), THostAuth::CountSuccess(), TString::Data(), TSystem::DynamicPathName(), TObject::Error(), fDetails, fgAuthMeth, fgAuthTO, fgDefaultUser, fgGlobusAuthHook, fgKrb5AuthHook, fgPromptUser, fgSecAuthHook, fHostAuth, fPasswd, fPwHash, fRemote, fSecContext, fSecurity, fSocket, fSRPPwd, fTimeOut, fUser, fVersion, gAuthenticateMutex, gDebug, THostAuth::GetDetails(), THostAuth::GetMethod(), TSystem::GetPid(), TSocket::GetPort(), TSocket::GetRemoteProtocol(), TSocket::GetServType(), GetUserPasswd(), gSystem, i, TObject::Info(), TSecContext::IsActive(), j, kClear, kFALSE, kGlobus, kKrb5, kMAXSEC, kMESS_STRING, kRfio, kROOTD_BYE, kROOTD_ERR, kROOTD_NEGOTIA, kSRP, kSSH, kTRUE, len, TSystem::Load(), THostAuth::NumMethods(), p, TRootSecContext::Print(), PromptUser(), R__LOCKGUARD2, TSocket::Recv(), THostAuth::RemoveMethod(), RfioAuth(), SafeDelete, TSocket::Send(), SetEnvironment(), THostAuth::SetLast(), snprintf, SshAuth(), stat, and TObject::Warning().

Referenced by TRootAuth::Authenticate().

Int_t TAuthenticate::AuthExists ( TString  User,
Int_t  method,
const char *  Options,
Int_t Message,
Int_t Rflag,
CheckSecCtx_t  funcheck 
)

Definition at line 3136 of file TAuthenticate.cxx.

References TList::Add(), AuthError(), TString::BeginsWith(), THostAuth::CreateSecContext(), TString::Data(), TObject::Error(), THostAuth::Established(), fDetails, fgAuthMeth, fgProcessID, fHostAuth, Form(), fProtocol, fRemote, fSecContext, fSocket, fUser, gDebug, TROOT::GetListOfSecContexts(), TSocket::GetRemoteProtocol(), TSocket::GetServType(), gROOT, gSystem, TSystem::HostName(), i, TObject::Info(), inv(), kErrConnectionRefused, kErrNotAllowed, kFALSE, kMESS_STRING, TSocket::kPROOFD, TSocket::kROOTD, kROOTD_AUTH, kROOTD_ERR, kTRUE, TString::Length(), TSocket::Recv(), TString::Replace(), SecureSend(), TSocket::Send(), snprintf, stat, username, and TObject::Warning().

Referenced by ClearAuth(), GlobusAuthenticate(), Krb5Authenticate(), SRPAuthenticate(), and SshAuth().

void TAuthenticate::CatchTimeOut (  ) 

Definition at line 384 of file TAuthenticate.cxx.

References TSocket::Close(), fgAuthMeth, fgAuthTO, fSecurity, fSocket, fTimeOut, and TObject::Info().

Bool_t TAuthenticate::CheckNetrc ( TString user,
TString passwd 
)

Definition at line 1098 of file TAuthenticate.cxx.

References fSecurity, hash, kFALSE, kSRP, and kTRUE.

Referenced by Authenticate(), and GetUserPasswd().

Bool_t TAuthenticate::CheckNetrc ( TString user,
TString passwd,
Bool_t pwhash,
Bool_t  srppwd 
)

Definition at line 1113 of file TAuthenticate.cxx.

References buf, TSystem::ConcatFileName(), TString::Data(), fclose(), fopen, fRemote, TSystem::GetHostByName(), TSystem::GetPathInfo(), gSystem, TSystem::HomeDirectory(), TString::Index(), kFALSE, kNPOS, kS_IRUSR, kS_IWUSR, kTRUE, line, R_ISDIR(), R_ISREG(), TString::ReplaceAll(), result(), and TObject::Warning().

THostAuth* TAuthenticate::GetHostAuth (  )  const [inline]

Definition at line 155 of file TAuthenticate.h.

References fHostAuth.

Referenced by TRootAuth::Authenticate(), G__G__RootAuth_125_0_51(), G__setup_memfuncTAuthenticate(), GlobusAuthenticate(), Krb5Authenticate(), ProofAuthSetup(), ReadRootAuthrc(), RecvHostAuth(), SRPAuthenticate(), and TAuthenticate().

const char* TAuthenticate::GetProtocol (  )  const [inline]

Definition at line 156 of file TAuthenticate.h.

References fProtocol.

Referenced by GlobusAuthenticate(), Krb5Authenticate(), and SRPAuthenticate().

const char* TAuthenticate::GetRemoteHost (  )  const [inline]

Definition at line 157 of file TAuthenticate.h.

References fRemote.

Referenced by Krb5Authenticate(), and SRPAuthenticate().

Int_t TAuthenticate::GetRSAKeyType (  )  const [inline]

Definition at line 158 of file TAuthenticate.h.

References fRSAKey.

Referenced by GlobusAuthenticate(), Krb5Authenticate(), and SRPAuthenticate().

TRootSecContext* TAuthenticate::GetSecContext (  )  const [inline]

Definition at line 159 of file TAuthenticate.h.

References fSecContext.

Referenced by TRootAuth::Authenticate().

TSocket* TAuthenticate::GetSocket (  )  const [inline]

Definition at line 160 of file TAuthenticate.h.

References fSocket.

Referenced by GlobusAuthenticate(), Krb5Authenticate(), and SRPAuthenticate().

const char* TAuthenticate::GetUser (  )  const [inline]

Definition at line 161 of file TAuthenticate.h.

References fUser.

Referenced by TRootAuth::Authenticate(), Krb5Authenticate(), and SRPAuthenticate().

Int_t TAuthenticate::HasTimedOut (  )  const [inline]

Definition at line 162 of file TAuthenticate.h.

References fTimeOut.

Referenced by TRootAuth::Authenticate().

void TAuthenticate::SetRSAKeyType ( Int_t  key  )  [inline]

Definition at line 163 of file TAuthenticate.h.

References fRSAKey.

void TAuthenticate::SetSecContext ( TRootSecContext ctx  )  [inline]

Definition at line 164 of file TAuthenticate.h.

References fSecContext.

Referenced by GlobusAuthenticate(), Krb5Authenticate(), and SRPAuthenticate().

void TAuthenticate::AuthError ( const char *  where,
Int_t  error 
) [static]

Definition at line 1487 of file TAuthenticate.cxx.

References TString::Data(), TObject::Error(), Error, fgLastError, Form(), gAuthenticateMutex, gDebug, gRootdErrStr, kErrError, kFALSE, kTRUE, and R__LOCKGUARD2.

Referenced by Authenticate(), AuthExists(), ClearAuth(), TRootAuth::ErrorMsg(), G__G__RootAuth_125_0_36(), G__setup_memfuncTAuthenticate(), Krb5Authenticate(), RfioAuth(), SRPAuthenticate(), and SshAuth().

Bool_t TAuthenticate::CheckProofAuth ( Int_t  cSec,
TString det 
) [static]

Definition at line 4404 of file TAuthenticate.cxx.

References TSystem::AccessPathName(), TApplication::Argc(), TString::Data(), Form(), UserGroup_t::fUser, gDebug, TROOT::GetApplication(), TSystem::Getenv(), TSystem::GetUserInfo(), gROOT, gSystem, TSystem::HomeDirectory(), i, Info, TObject::Info(), TROOT::IsProofServ(), kClear, kFALSE, kGlobus, kKrb5, kReadPermission, kRfio, kSRP, kSSH, kTRUE, out, and strtol().

Referenced by G__G__RootAuth_125_0_37(), and G__setup_memfuncTAuthenticate().

Int_t TAuthenticate::DecodeRSAPublic ( const char *  rsapubexport,
rsa_NUMBER n,
rsa_NUMBER d,
char **  rsassl = 0 
) [static]

Definition at line 3789 of file TAuthenticate.cxx.

References gDebug, Info, TObject::Info(), int, k, kMAXPATHLEN, TRSA_fun::RSA_num_sget(), str, and strlcpy().

Referenced by G__G__RootAuth_125_0_38(), G__setup_memfuncTAuthenticate(), SendRSAPublicKey(), and SetRSAPublic().

TList * TAuthenticate::GetAuthInfo (  )  [static]

Definition at line 1462 of file TAuthenticate.cxx.

References fgAuthInfo, gAuthenticateMutex, and R__LOCKGUARD2.

Referenced by G__G__RootAuth_125_0_39(), G__setup_memfuncTAuthenticate(), GetHostAuth(), HasHostAuth(), ProofAuthSetup(), ReadRootAuthrc(), RecvHostAuth(), RemoveHostAuth(), RemoveSecContext(), Show(), TAuthenticate(), and TestAuth().

const char * TAuthenticate::GetAuthMethod ( Int_t  idx  )  [static]

Definition at line 1294 of file TAuthenticate.cxx.

References TObject::Error(), fgAuthMeth, gAuthenticateMutex, kMAXSEC, and R__LOCKGUARD2.

Referenced by ClassImp(), G__G__RootAuth_125_0_40(), G__setup_memfuncTAuthenticate(), Krb5Authenticate(), THostAuth::Print(), SetEnvironment(), SRPAuthenticate(), TestAuth(), and TRootSecContext::TRootSecContext().

Int_t TAuthenticate::GetAuthMethodIdx ( const char *  meth  )  [static]

Definition at line 1308 of file TAuthenticate.cxx.

References fgAuthMeth, gAuthenticateMutex, i, TString::kIgnoreCase, kMAXSEC, and R__LOCKGUARD2.

Referenced by G__G__RootAuth_125_0_41(), G__setup_memfuncTAuthenticate(), ReadRootAuthrc(), and TAuthenticate().

Bool_t TAuthenticate::GetAuthReUse (  )  [static]

Definition at line 1278 of file TAuthenticate.cxx.

References fgAuthReUse.

Referenced by G__G__RootAuth_125_0_42(), G__setup_memfuncTAuthenticate(), GlobusAuthenticate(), GlobusGetDetails(), Krb5Authenticate(), and SRPAuthenticate().

Int_t TAuthenticate::GetClientProtocol (  )  [static]

Definition at line 4836 of file TAuthenticate.cxx.

References TSocket::GetClientProtocol().

Referenced by G__G__RootAuth_125_0_43(), and G__setup_memfuncTAuthenticate().

char * TAuthenticate::GetDefaultDetails ( Int_t  method,
Int_t  opt,
const char *  user 
) [static]

Definition at line 2997 of file TAuthenticate.cxx.

References gDebug, gEnv, TEnv::GetValue(), TObject::Info(), kClear, kGlobus, kKrb5, kMAXPATHLEN, kRfio, kSRP, kSSH, snprintf, and StrDup().

Referenced by THostAuth::AddFirst(), THostAuth::AddMethod(), THostAuth::Create(), G__G__RootAuth_125_0_44(), G__setup_memfuncTAuthenticate(), THostAuth::ReOrder(), THostAuth::SetDetails(), and TAuthenticate().

const char * TAuthenticate::GetDefaultUser (  )  [static]

Definition at line 1262 of file TAuthenticate.cxx.

References fgDefaultUser.

Referenced by G__G__RootAuth_125_0_45(), G__setup_memfuncTAuthenticate(), GlobusGetDetails(), and Krb5Authenticate().

TDatime TAuthenticate::GetGlobalExpDate (  )  [static]

Definition at line 1254 of file TAuthenticate.cxx.

References fgExpDate.

Referenced by G__G__RootAuth_125_0_46(), G__setup_memfuncTAuthenticate(), and SRPAuthenticate().

Bool_t TAuthenticate::GetGlobalPwHash (  )  [static]

Definition at line 1238 of file TAuthenticate.cxx.

References fgPwHash.

Referenced by G__G__RootAuth_125_0_47(), and G__setup_memfuncTAuthenticate().

Bool_t TAuthenticate::GetGlobalSRPPwd (  )  [static]

Definition at line 1246 of file TAuthenticate.cxx.

References fgSRPPwd.

Referenced by G__G__RootAuth_125_0_48(), and G__setup_memfuncTAuthenticate().

const char * TAuthenticate::GetGlobalUser (  )  [static]

Definition at line 1230 of file TAuthenticate.cxx.

References fgUser.

Referenced by G__G__RootAuth_125_0_49(), and G__setup_memfuncTAuthenticate().

GlobusAuth_t TAuthenticate::GetGlobusAuthHook (  )  [static]

Definition at line 1420 of file TAuthenticate.cxx.

References fgGlobusAuthHook.

Referenced by TRootSecContext::DeActivate(), G__G__RootAuth_125_0_50(), and G__setup_memfuncTAuthenticate().

THostAuth * TAuthenticate::GetHostAuth ( const char *  host,
const char *  user = "",
Option_t opt = "R",
Int_t Exact = 0 
) [static]

Definition at line 2795 of file TAuthenticate.cxx.

References CheckHost(), TString::Contains(), gDebug, GetAuthInfo(), THostAuth::GetHost(), TSystem::GetHostByName(), GetProofAuthInfo(), THostAuth::GetServer(), THostAuth::GetUser(), gSystem, TString::Index(), TObject::Info(), kFALSE, kTRUE, TString::Length(), THostAuth::Print(), TString::Remove(), and SafeDelete.

const char * TAuthenticate::GetKrb5Principal (  )  [static]

Definition at line 1270 of file TAuthenticate.cxx.

References fgKrb5Principal.

Referenced by G__G__RootAuth_125_0_52(), G__setup_memfuncTAuthenticate(), and Krb5Authenticate().

Bool_t TAuthenticate::GetPromptUser (  )  [static]

Definition at line 1286 of file TAuthenticate.cxx.

References fgPromptUser.

Referenced by G__G__RootAuth_125_0_53(), G__setup_memfuncTAuthenticate(), GlobusGetDetails(), Krb5Authenticate(), Krb5InitCred(), and SRPAuthenticate().

TList * TAuthenticate::GetProofAuthInfo (  )  [static]

Definition at line 1474 of file TAuthenticate.cxx.

References fgProofAuthInfo, gAuthenticateMutex, and R__LOCKGUARD2.

Referenced by G__G__RootAuth_125_0_54(), G__setup_memfuncTAuthenticate(), GetHostAuth(), HasHostAuth(), ProofAuthSetup(), ReadRootAuthrc(), RecvHostAuth(), RemoveHostAuth(), RemoveSecContext(), SendHostAuth(), and Show().

Int_t TAuthenticate::GetRSAInit (  )  [static]

Definition at line 1437 of file TAuthenticate.cxx.

References fgRSAInit.

Referenced by G__G__RootAuth_125_0_55(), and G__setup_memfuncTAuthenticate().

const char * TAuthenticate::GetRSAPubExport ( Int_t  key = 0  )  [static]

Definition at line 1428 of file TAuthenticate.cxx.

References fgRSAPubExport, and rsa_KEY_export::keys.

Referenced by G__G__RootAuth_125_0_56(), and G__setup_memfuncTAuthenticate().

THostAuth * TAuthenticate::HasHostAuth ( const char *  host,
const char *  user,
Option_t opt = "R" 
) [static]

Definition at line 2872 of file TAuthenticate.cxx.

References TString::Contains(), gDebug, GetAuthInfo(), THostAuth::GetHost(), TSystem::GetHostByName(), GetProofAuthInfo(), THostAuth::GetServer(), THostAuth::GetUser(), gSystem, TString::Index(), TObject::Info(), TString::Remove(), and SafeDelete.

Referenced by G__G__RootAuth_125_0_57(), G__setup_memfuncTAuthenticate(), MergeHostAuthList(), and TestAuth().

void TAuthenticate::InitRandom (  )  [static]

Definition at line 3334 of file TAuthenticate.cxx.

References close, gDebug, TObject::Info(), kFALSE, kTRUE, open, read, seed, and TObject::Warning().

Referenced by G__G__RootAuth_125_0_58(), G__setup_memfuncTAuthenticate(), GenRSAKeys(), and GetRandString().

void TAuthenticate::MergeHostAuthList ( TList Std,
TList New,
Option_t Opt = "" 
) [static]

Definition at line 4538 of file TAuthenticate.cxx.

References TList::Add(), THostAuth::DeActivate(), Form(), THostAuth::GetHost(), THostAuth::GetServer(), THostAuth::GetUser(), HasHostAuth(), THostAuth::IsActive(), THostAuth::NumMethods(), TList::Remove(), TIter::Reset(), SafeDelete, and THostAuth::Update().

Referenced by G__G__RootAuth_125_0_59(), G__setup_memfuncTAuthenticate(), and ReadRootAuthrc().

char * TAuthenticate::PromptPasswd ( const char *  prompt = "Password: "  )  [static]

Definition at line 1365 of file TAuthenticate.cxx.

References buf, TSystem::DispatchOneEvent(), TPluginHandler::ExecPlugin(), fgPasswdDialog, TPluginManager::FindHandler(), gEnv, Getline(), TROOT::GetPluginManager(), TEnv::GetValue(), Gl_config(), gROOT, gSystem, TROOT::IsBatch(), TROOT::IsInterrupted(), kFALSE, TPluginHandler::LoadPlugin(), StrDup(), and TObject::Warning().

Referenced by ClearAuth(), G__G__RootAuth_125_0_60(), G__setup_memfuncTAuthenticate(), and SRPAuthenticate().

char * TAuthenticate::PromptUser ( const char *  remote  )  [static]

Definition at line 1326 of file TAuthenticate.cxx.

References fgDefaultUser, Form(), gAuthenticateMutex, TSystem::Getenv(), Getline(), gSystem, R__LOCKGUARD2, StrDup(), and TObject::Warning().

Referenced by Authenticate(), G__G__RootAuth_125_0_61(), G__setup_memfuncTAuthenticate(), GetSshUser(), GetUserPasswd(), and SRPAuthenticate().

Int_t TAuthenticate::ReadRootAuthrc (  )  [static]

Definition at line 4064 of file TAuthenticate.cxx.

References TSystem::AccessPathName(), TList::Add(), THostAuth::AddMethod(), TString::BeginsWith(), TSystem::ConcatFileName(), TString::Contains(), TDatime::Convert(), TString::Data(), TObject::Error(), fclose(), fgLastAuthrc, fgReadHomeAuthrc, fgRootAuthrc, FileExpand(), fopen, gDebug, GetAuthInfo(), GetAuthMethodIdx(), TSystem::Getenv(), THostAuth::GetHost(), GetHostAuth(), GetProofAuthInfo(), THostAuth::GetServer(), TCollection::GetSize(), THostAuth::GetUser(), gRootDir, gSystem, THostAuth::HasMethod(), TSystem::HomeDirectory(), TString::Index(), TObject::Info(), kFALSE, kMAXPATHLEN, kMAXSEC, TSocket::kPROOFD, kReadPermission, TSocket::kROOTD, TSocket::kSOCKD, kTRUE, TString::Length(), line, MergeHostAuthList(), TString::Remove(), THostAuth::ReOrder(), TString::Resize(), THostAuth::SetDetails(), Show(), snprintf, stat, StrDup(), strlcpy(), TSystem::TempFileName(), TSystem::Unlink(), and THostAuth::Update().

Referenced by G__G__RootAuth_125_0_62(), G__setup_memfuncTAuthenticate(), RecvHostAuth(), TAuthenticate(), and TestAuth().

void TAuthenticate::RemoveHostAuth ( THostAuth ha,
Option_t opt = "" 
) [static]

Definition at line 3066 of file TAuthenticate.cxx.

References GetAuthInfo(), GetProofAuthInfo(), and TList::Remove().

Referenced by G__G__RootAuth_125_0_63(), and G__setup_memfuncTAuthenticate().

Int_t TAuthenticate::SecureRecv ( TSocket Socket,
Int_t  dec,
Int_t  KeyType,
char **  Out 
) [static]

Definition at line 3721 of file TAuthenticate.cxx.

References rsa_KEY::e, fgRSAPriKey, fgRSAPubKey, gDebug, TObject::Info(), kMAXSECBUF, len, rsa_KEY::n, TSocket::Recv(), TSocket::RecvRaw(), TRSA_fun::RSA_decode(), and strlcpy().

Referenced by ClearAuth(), G__G__RootAuth_125_0_64(), G__setup_memfuncTAuthenticate(), GlobusAuthenticate(), Krb5Authenticate(), OldProofServAuthSetup(), SRPAuthenticate(), and SshAuth().

Int_t TAuthenticate::SecureSend ( TSocket Socket,
Int_t  enc,
Int_t  KeyType,
const char *  In 
) [static]

Definition at line 3659 of file TAuthenticate.cxx.

References rsa_KEY::e, fgRSAPriKey, fgRSAPubKey, gDebug, TObject::Info(), kMAXSECBUF, kROOTD_ENCRYPT, rsa_KEY::n, TRSA_fun::RSA_encode(), TSocket::Send(), TSocket::SendRaw(), snprintf, and strlcpy().

Referenced by AuthExists(), TRootSecContext::CleanupSecContext(), ClearAuth(), G__G__RootAuth_125_0_65(), G__setup_memfuncTAuthenticate(), OldSlaveAuthSetup(), and ProofAuthSetup().

Int_t TAuthenticate::SendRSAPublicKey ( TSocket Socket,
Int_t  key = 0 
) [static]

Definition at line 3971 of file TAuthenticate.cxx.

References DecodeRSAPublic(), fgRSAPubExport, gDebug, TObject::Info(), kMAXSECBUF, kROOTD_ENCRYPT, rsa_KEY_export::len, TSocket::Recv(), TRSA_fun::RSA_encode(), TSocket::Send(), TSocket::SendRaw(), snprintf, and strlcpy().

Referenced by ClearAuth(), G__G__RootAuth_125_0_66(), G__setup_memfuncTAuthenticate(), GlobusAuthenticate(), Krb5Authenticate(), SRPAuthenticate(), and SshAuth().

void TAuthenticate::SetAuthReUse ( Bool_t  authreuse  )  [static]

Definition at line 1603 of file TAuthenticate.cxx.

References fgAuthReUse.

Referenced by G__G__RootAuth_125_0_67(), and G__setup_memfuncTAuthenticate().

void TAuthenticate::SetDefaultUser ( const char *  defaultuser  )  [static]

Definition at line 1583 of file TAuthenticate.cxx.

References fgDefaultUser.

Referenced by G__G__RootAuth_125_0_68(), and G__setup_memfuncTAuthenticate().

void TAuthenticate::SetGlobalExpDate ( TDatime  expdate  )  [static]

Definition at line 1575 of file TAuthenticate.cxx.

References fgExpDate.

Referenced by G__G__RootAuth_125_0_69(), and G__setup_memfuncTAuthenticate().

void TAuthenticate::SetGlobalPasswd ( const char *  passwd  )  [static]

Definition at line 1535 of file TAuthenticate.cxx.

References fgPasswd, gAuthenticateMutex, and R__LOCKGUARD2.

Referenced by G__G__RootAuth_125_0_70(), G__setup_memfuncTAuthenticate(), OldProofServAuthSetup(), ProofAuthSetup(), and SRPAuthenticate().

void TAuthenticate::SetGlobalPwHash ( Bool_t  pwhash  )  [static]

Definition at line 1549 of file TAuthenticate.cxx.

References fgPwHash.

Referenced by G__G__RootAuth_125_0_71(), G__setup_memfuncTAuthenticate(), OldProofServAuthSetup(), ProofAuthSetup(), and SRPAuthenticate().

void TAuthenticate::SetGlobalSRPPwd ( Bool_t  srppwd  )  [static]

Definition at line 1557 of file TAuthenticate.cxx.

References fgSRPPwd.

Referenced by G__G__RootAuth_125_0_72(), G__setup_memfuncTAuthenticate(), OldProofServAuthSetup(), ProofAuthSetup(), and SRPAuthenticate().

void TAuthenticate::SetGlobalUser ( const char *  user  )  [static]

Definition at line 1521 of file TAuthenticate.cxx.

References fgUser, gAuthenticateMutex, and R__LOCKGUARD2.

Referenced by G__G__RootAuth_125_0_73(), G__setup_memfuncTAuthenticate(), OldProofServAuthSetup(), ProofAuthSetup(), and SRPAuthenticate().

void TAuthenticate::SetGlobusAuthHook ( GlobusAuth_t  func  )  [static]

Definition at line 1637 of file TAuthenticate.cxx.

References fgGlobusAuthHook.

Referenced by G__G__RootAuth_125_0_74(), G__setup_memfuncTAuthenticate(), and GlobusAuthInit::GlobusAuthInit().

void TAuthenticate::SetKrb5AuthHook ( Krb5Auth_t  func  )  [static]

Definition at line 1628 of file TAuthenticate.cxx.

References fgKrb5AuthHook.

Referenced by G__G__RootAuth_125_0_75(), G__setup_memfuncTAuthenticate(), and TKrb5AuthInit::TKrb5AuthInit().

void TAuthenticate::SetPromptUser ( Bool_t  promptuser  )  [static]

Definition at line 1611 of file TAuthenticate.cxx.

References fgPromptUser.

Referenced by G__G__RootAuth_125_0_76(), and G__setup_memfuncTAuthenticate().

void TAuthenticate::SetDefaultRSAKeyType ( Int_t  key  )  [static]

Definition at line 1445 of file TAuthenticate.cxx.

References fgRSAKey.

Referenced by G__G__RootAuth_125_0_77(), G__setup_memfuncTAuthenticate(), OldProofServAuthSetup(), and ProofAuthSetup().

void TAuthenticate::SetReadHomeAuthrc ( Bool_t  readhomeauthrc  )  [static]

Definition at line 1565 of file TAuthenticate.cxx.

References fgReadHomeAuthrc.

Referenced by G__G__RootAuth_125_0_78(), G__setup_memfuncTAuthenticate(), OldProofServAuthSetup(), and ProofAuthSetup().

void TAuthenticate::SetRSAInit ( Int_t  init = 1  )  [static]

Definition at line 1454 of file TAuthenticate.cxx.

References fgRSAInit.

Referenced by G__G__RootAuth_125_0_79(), and G__setup_memfuncTAuthenticate().

Int_t TAuthenticate::SetRSAPublic ( const char *  rsapubexport,
Int_t  klen 
) [static]

Definition at line 3893 of file TAuthenticate.cxx.

References c, DecodeRSAPublic(), rsa_KEY::e, fgRSAPubKey, gDebug, TObject::Info(), Rgl::Mc::k0, Rgl::Mc::k2, kPRIMELENGTH, rsa_KEY::n, p0(), p1(), p2(), and TRSA_fun::RSA_assign().

Referenced by G__G__RootAuth_125_0_80(), G__setup_memfuncTAuthenticate(), and OldProofServAuthSetup().

void TAuthenticate::SetSecureAuthHook ( SecureAuth_t  func  )  [static]

Definition at line 1619 of file TAuthenticate.cxx.

References fgSecAuthHook.

Referenced by G__G__RootAuth_125_0_81(), G__setup_memfuncTAuthenticate(), and SRPAuthInit::SRPAuthInit().

void TAuthenticate::SetTimeOut ( Int_t  to  )  [static]

Definition at line 1595 of file TAuthenticate.cxx.

References fgAuthTO.

Referenced by G__G__RootAuth_125_0_82(), and G__setup_memfuncTAuthenticate().

void TAuthenticate::Show ( Option_t opt = "S"  )  [static]

Definition at line 3079 of file TAuthenticate.cxx.

References TString::Contains(), GetAuthInfo(), TROOT::GetListOfSecContexts(), GetProofAuthInfo(), TCollection::GetSize(), gROOT, TObject::Info(), TString::kIgnoreCase, THostAuth::Print(), TSecContext::Print(), and THostAuth::PrintEstablished().

Referenced by G__G__RootAuth_125_0_83(), G__setup_memfuncTAuthenticate(), ReadRootAuthrc(), TAuthenticate(), and TestAuth().

Int_t TAuthenticate::GenRSAKeys (  )  [private]

Bool_t TAuthenticate::GetPwHash (  )  const [inline, private]

Definition at line 89 of file TAuthenticate.h.

References fPwHash.

Int_t TAuthenticate::GetRSAKey (  )  const [inline, private]

Definition at line 90 of file TAuthenticate.h.

References fRSAKey.

ESecurity TAuthenticate::GetSecurity (  )  const [inline, private]

Definition at line 91 of file TAuthenticate.h.

References fSecurity.

Bool_t TAuthenticate::GetSRPPwd (  )  const [inline, private]

Definition at line 92 of file TAuthenticate.h.

References fSRPPwd.

const char* TAuthenticate::GetSshUser ( TString  user  )  const [private]

Int_t TAuthenticate::GetVersion (  )  const [inline, private]

Definition at line 94 of file TAuthenticate.h.

References fVersion.

Int_t TAuthenticate::ClearAuth ( TString user,
TString passwd,
Bool_t pwhash 
) [private]

Bool_t TAuthenticate::GetUserPasswd ( TString user,
TString passwd,
Bool_t pwhash,
Bool_t  srppwd 
) [private]

char* TAuthenticate::GetRandString ( Int_t  Opt,
Int_t  Len 
) [private]

Int_t TAuthenticate::ProofAuthSetup (  )  [private]

Int_t TAuthenticate::RfioAuth ( TString user  )  [private]

void TAuthenticate::SetEnvironment (  )  [private]

Int_t TAuthenticate::SshAuth ( TString user  )  [private]

Int_t TAuthenticate::SshError ( const char *  errfile  )  [private]

static Bool_t TAuthenticate::CheckHost ( const char *  Host,
const char *  host 
) [static, private]

static void TAuthenticate::FileExpand ( const char *  fin,
FILE *  ftmp 
) [static, private]

static Int_t TAuthenticate::ProofAuthSetup ( TSocket sock,
Bool_t  client 
) [static, private]

static void TAuthenticate::RemoveSecContext ( TRootSecContext ctx  )  [static, private]

Bool_t TAuthenticate::Authenticate (  ) 

Int_t TAuthenticate::AuthExists ( TString  User,
Int_t  method,
const char *  Options,
Int_t Message,
Int_t Rflag,
CheckSecCtx_t  funcheck 
)

void TAuthenticate::CatchTimeOut (  ) 

Bool_t TAuthenticate::CheckNetrc ( TString user,
TString passwd 
)

Bool_t TAuthenticate::CheckNetrc ( TString user,
TString passwd,
Bool_t pwhash,
Bool_t  srppwd 
)

THostAuth* TAuthenticate::GetHostAuth (  )  const [inline]

Definition at line 155 of file TAuthenticate.h.

References fHostAuth.

const char* TAuthenticate::GetProtocol (  )  const [inline]

Definition at line 156 of file TAuthenticate.h.

References fProtocol.

const char* TAuthenticate::GetRemoteHost (  )  const [inline]

Definition at line 157 of file TAuthenticate.h.

References fRemote.

Int_t TAuthenticate::GetRSAKeyType (  )  const [inline]

Definition at line 158 of file TAuthenticate.h.

References fRSAKey.

TRootSecContext* TAuthenticate::GetSecContext (  )  const [inline]

Definition at line 159 of file TAuthenticate.h.

References fSecContext.

TSocket* TAuthenticate::GetSocket (  )  const [inline]

Definition at line 160 of file TAuthenticate.h.

References fSocket.

const char* TAuthenticate::GetUser (  )  const [inline]

Definition at line 161 of file TAuthenticate.h.

References fUser.

Int_t TAuthenticate::HasTimedOut (  )  const [inline]

Definition at line 162 of file TAuthenticate.h.

References fTimeOut.

void TAuthenticate::SetRSAKeyType ( Int_t  key  )  [inline]

Definition at line 163 of file TAuthenticate.h.

References fRSAKey.

void TAuthenticate::SetSecContext ( TRootSecContext ctx  )  [inline]

Definition at line 164 of file TAuthenticate.h.

References fSecContext.

static void TAuthenticate::AuthError ( const char *  where,
Int_t  error 
) [static]

static Bool_t TAuthenticate::CheckProofAuth ( Int_t  cSec,
TString det 
) [static]

static Int_t TAuthenticate::DecodeRSAPublic ( const char *  rsapubexport,
rsa_NUMBER n,
rsa_NUMBER d,
char **  rsassl = 0 
) [static]

static TList* TAuthenticate::GetAuthInfo (  )  [static]

static const char* TAuthenticate::GetAuthMethod ( Int_t  idx  )  [static]

static Int_t TAuthenticate::GetAuthMethodIdx ( const char *  meth  )  [static]

static Bool_t TAuthenticate::GetAuthReUse (  )  [static]

static Int_t TAuthenticate::GetClientProtocol (  )  [static]

static char* TAuthenticate::GetDefaultDetails ( Int_t  method,
Int_t  opt,
const char *  user 
) [static]

static const char* TAuthenticate::GetDefaultUser (  )  [static]

static TDatime TAuthenticate::GetGlobalExpDate (  )  [static]

static Bool_t TAuthenticate::GetGlobalPwHash (  )  [static]

static Bool_t TAuthenticate::GetGlobalSRPPwd (  )  [static]

static const char* TAuthenticate::GetGlobalUser (  )  [static]

static GlobusAuth_t TAuthenticate::GetGlobusAuthHook (  )  [static]

static THostAuth* TAuthenticate::GetHostAuth ( const char *  host,
const char *  user = "",
Option_t opt = "R",
Int_t Exact = 0 
) [static]

static const char* TAuthenticate::GetKrb5Principal (  )  [static]

static Bool_t TAuthenticate::GetPromptUser (  )  [static]

static TList* TAuthenticate::GetProofAuthInfo (  )  [static]

static Int_t TAuthenticate::GetRSAInit (  )  [static]

static const char* TAuthenticate::GetRSAPubExport ( Int_t  key = 0  )  [static]

static THostAuth* TAuthenticate::HasHostAuth ( const char *  host,
const char *  user,
Option_t opt = "R" 
) [static]

static void TAuthenticate::InitRandom (  )  [static]

static void TAuthenticate::MergeHostAuthList ( TList Std,
TList New,
Option_t Opt = "" 
) [static]

static char* TAuthenticate::PromptPasswd ( const char *  prompt = "Password: "  )  [static]

static char* TAuthenticate::PromptUser ( const char *  remote  )  [static]

static Int_t TAuthenticate::ReadRootAuthrc (  )  [static]

static void TAuthenticate::RemoveHostAuth ( THostAuth ha,
Option_t opt = "" 
) [static]

static Int_t TAuthenticate::SecureRecv ( TSocket Socket,
Int_t  dec,
Int_t  KeyType,
char **  Out 
) [static]

static Int_t TAuthenticate::SecureSend ( TSocket Socket,
Int_t  enc,
Int_t  KeyType,
const char *  In 
) [static]

static Int_t TAuthenticate::SendRSAPublicKey ( TSocket Socket,
Int_t  key = 0 
) [static]

static void TAuthenticate::SetAuthReUse ( Bool_t  authreuse  )  [static]

static void TAuthenticate::SetDefaultUser ( const char *  defaultuser  )  [static]

static void TAuthenticate::SetGlobalExpDate ( TDatime  expdate  )  [static]

static void TAuthenticate::SetGlobalPasswd ( const char *  passwd  )  [static]

static void TAuthenticate::SetGlobalPwHash ( Bool_t  pwhash  )  [static]

static void TAuthenticate::SetGlobalSRPPwd ( Bool_t  srppwd  )  [static]

static void TAuthenticate::SetGlobalUser ( const char *  user  )  [static]

static void TAuthenticate::SetGlobusAuthHook ( GlobusAuth_t  func  )  [static]

static void TAuthenticate::SetKrb5AuthHook ( Krb5Auth_t  func  )  [static]

static void TAuthenticate::SetPromptUser ( Bool_t  promptuser  )  [static]

static void TAuthenticate::SetDefaultRSAKeyType ( Int_t  key  )  [static]

static void TAuthenticate::SetReadHomeAuthrc ( Bool_t  readhomeauthrc  )  [static]

static void TAuthenticate::SetRSAInit ( Int_t  init = 1  )  [static]

static Int_t TAuthenticate::SetRSAPublic ( const char *  rsapubexport,
Int_t  klen 
) [static]

static void TAuthenticate::SetSecureAuthHook ( SecureAuth_t  func  )  [static]

static void TAuthenticate::SetTimeOut ( Int_t  to  )  [static]

static void TAuthenticate::Show ( Option_t opt = "S"  )  [static]


Friends And Related Function Documentation

TRootAuth [friend]

Definition at line 65 of file TAuthenticate.h.

TRootSecContext [friend]

Definition at line 66 of file TAuthenticate.h.

TSocket [friend]

Definition at line 67 of file TAuthenticate.h.

Referenced by SshAuth().


Member Data Documentation

TString TAuthenticate::fDetails [private]

Definition at line 73 of file TAuthenticate.h.

Referenced by Authenticate(), AuthExists(), ClearAuth(), RfioAuth(), SetEnvironment(), and SshAuth().

THostAuth* TAuthenticate::fHostAuth [private]

Definition at line 74 of file TAuthenticate.h.

Referenced by Authenticate(), AuthExists(), ClearAuth(), GetHostAuth(), RfioAuth(), SshAuth(), and TAuthenticate().

TString TAuthenticate::fPasswd [private]

Definition at line 75 of file TAuthenticate.h.

Referenced by Authenticate(), ClearAuth(), and TAuthenticate().

TString TAuthenticate::fProtocol [private]

Definition at line 76 of file TAuthenticate.h.

Referenced by AuthExists(), ClearAuth(), GetProtocol(), RfioAuth(), and TAuthenticate().

Bool_t TAuthenticate::fPwHash [private]

Definition at line 77 of file TAuthenticate.h.

Referenced by Authenticate(), ClearAuth(), GetPwHash(), and TAuthenticate().

TString TAuthenticate::fRemote [private]

Definition at line 78 of file TAuthenticate.h.

Referenced by Authenticate(), AuthExists(), CheckNetrc(), ClearAuth(), GetRemoteHost(), GetSshUser(), GetUserPasswd(), RfioAuth(), SshAuth(), and TAuthenticate().

Int_t TAuthenticate::fRSAKey [private]

Definition at line 79 of file TAuthenticate.h.

Referenced by ClearAuth(), GetRSAKey(), GetRSAKeyType(), SetRSAKeyType(), SshAuth(), and TAuthenticate().

TRootSecContext* TAuthenticate::fSecContext [private]

Definition at line 80 of file TAuthenticate.h.

Referenced by Authenticate(), AuthExists(), ClearAuth(), GetSecContext(), RfioAuth(), SetSecContext(), SshAuth(), and TAuthenticate().

ESecurity TAuthenticate::fSecurity [private]

Definition at line 81 of file TAuthenticate.h.

Referenced by Authenticate(), CatchTimeOut(), CheckNetrc(), GetSecurity(), and SetEnvironment().

TSocket* TAuthenticate::fSocket [private]

Definition at line 82 of file TAuthenticate.h.

Referenced by Authenticate(), AuthExists(), CatchTimeOut(), ClearAuth(), GetSocket(), RfioAuth(), SshAuth(), and TAuthenticate().

Bool_t TAuthenticate::fSRPPwd [private]

Definition at line 83 of file TAuthenticate.h.

Referenced by Authenticate(), ClearAuth(), GetSRPPwd(), and TAuthenticate().

Int_t TAuthenticate::fVersion [private]

Definition at line 84 of file TAuthenticate.h.

Referenced by Authenticate(), ClearAuth(), GetVersion(), SshAuth(), and TAuthenticate().

TString TAuthenticate::fUser [private]

Definition at line 85 of file TAuthenticate.h.

Referenced by Authenticate(), AuthExists(), ClearAuth(), GetUser(), RfioAuth(), SetEnvironment(), and TAuthenticate().

Int_t TAuthenticate::fTimeOut [private]

Definition at line 86 of file TAuthenticate.h.

Referenced by Authenticate(), CatchTimeOut(), and HasTimedOut().

TList * TAuthenticate::fgAuthInfo [static, private]

Definition at line 105 of file TAuthenticate.h.

Referenced by GetAuthInfo().

TString TAuthenticate::fgAuthMeth [static, private]

Definition at line 106 of file TAuthenticate.h.

Referenced by Authenticate(), AuthExists(), CatchTimeOut(), ClearAuth(), GetAuthMethod(), GetAuthMethodIdx(), and RfioAuth().

Bool_t TAuthenticate::fgAuthReUse [static, private]

Definition at line 107 of file TAuthenticate.h.

Referenced by ClearAuth(), GetAuthReUse(), SetAuthReUse(), SetEnvironment(), and SshAuth().

TString TAuthenticate::fgDefaultUser [static, private]

Definition at line 108 of file TAuthenticate.h.

Referenced by Authenticate(), GetDefaultUser(), GetSshUser(), PromptUser(), SetDefaultUser(), and SetEnvironment().

TDatime TAuthenticate::fgExpDate [static, private]

Definition at line 109 of file TAuthenticate.h.

Referenced by ClearAuth(), GetGlobalExpDate(), SetEnvironment(), SetGlobalExpDate(), and SshAuth().

GlobusAuth_t TAuthenticate::fgGlobusAuthHook [static, private]

Definition at line 110 of file TAuthenticate.h.

Referenced by Authenticate(), GetGlobusAuthHook(), and SetGlobusAuthHook().

Krb5Auth_t TAuthenticate::fgKrb5AuthHook [static, private]

Definition at line 111 of file TAuthenticate.h.

Referenced by Authenticate(), and SetKrb5AuthHook().

TString TAuthenticate::fgKrb5Principal [static, private]

Definition at line 112 of file TAuthenticate.h.

Referenced by GetKrb5Principal(), and SetEnvironment().

TDatime TAuthenticate::fgLastAuthrc [static, private]

Definition at line 113 of file TAuthenticate.h.

Referenced by ReadRootAuthrc().

TString TAuthenticate::fgPasswd [static, private]

Definition at line 114 of file TAuthenticate.h.

Referenced by ClearAuth(), GetUserPasswd(), and SetGlobalPasswd().

TPluginHandler * TAuthenticate::fgPasswdDialog [static, private]

Definition at line 115 of file TAuthenticate.h.

Referenced by PromptPasswd().

Bool_t TAuthenticate::fgPromptUser [static, private]

Definition at line 116 of file TAuthenticate.h.

Referenced by Authenticate(), ClearAuth(), GetPromptUser(), GetSshUser(), SetEnvironment(), SetPromptUser(), and SshAuth().

TList * TAuthenticate::fgProofAuthInfo [static, private]

Definition at line 117 of file TAuthenticate.h.

Referenced by GetProofAuthInfo().

Bool_t TAuthenticate::fgPwHash [static, private]

Definition at line 118 of file TAuthenticate.h.

Referenced by ClearAuth(), GetGlobalPwHash(), GetUserPasswd(), and SetGlobalPwHash().

Bool_t TAuthenticate::fgReadHomeAuthrc [static, private]

Definition at line 119 of file TAuthenticate.h.

Referenced by ReadRootAuthrc(), and SetReadHomeAuthrc().

TString TAuthenticate::fgRootAuthrc [static, private]

Definition at line 120 of file TAuthenticate.h.

Referenced by ReadRootAuthrc().

Int_t TAuthenticate::fgRSAKey [static, private]

Definition at line 121 of file TAuthenticate.h.

Referenced by ClearAuth(), GenRSAKeys(), SetDefaultRSAKeyType(), and TAuthenticate().

Int_t TAuthenticate::fgRSAInit [static, private]

Definition at line 122 of file TAuthenticate.h.

Referenced by GenRSAKeys(), GetRSAInit(), SetRSAInit(), and TAuthenticate().

rsa_KEY TAuthenticate::fgRSAPriKey [static, private]

Definition at line 123 of file TAuthenticate.h.

Referenced by GenRSAKeys(), SecureRecv(), and SecureSend().

rsa_KEY TAuthenticate::fgRSAPubKey [static, private]

Definition at line 124 of file TAuthenticate.h.

Referenced by GenRSAKeys(), SecureRecv(), SecureSend(), and SetRSAPublic().

rsa_KEY_export TAuthenticate::fgRSAPubExport [static, private]

Definition at line 125 of file TAuthenticate.h.

Referenced by GenRSAKeys(), GetRSAPubExport(), SendRSAPublicKey(), and SshAuth().

SecureAuth_t TAuthenticate::fgSecAuthHook [static, private]

Definition at line 129 of file TAuthenticate.h.

Referenced by Authenticate(), and SetSecureAuthHook().

Bool_t TAuthenticate::fgSRPPwd [static, private]

Definition at line 130 of file TAuthenticate.h.

Referenced by ClearAuth(), GetGlobalSRPPwd(), GetUserPasswd(), and SetGlobalSRPPwd().

TString TAuthenticate::fgUser [static, private]

Definition at line 131 of file TAuthenticate.h.

Referenced by ClearAuth(), GetGlobalUser(), GetUserPasswd(), SetEnvironment(), and SetGlobalUser().

Bool_t TAuthenticate::fgUsrPwdCrypt [static, private]

Definition at line 132 of file TAuthenticate.h.

Referenced by ClearAuth(), and SetEnvironment().

Int_t TAuthenticate::fgLastError [static, private]

Definition at line 133 of file TAuthenticate.h.

Referenced by AuthError().

Int_t TAuthenticate::fgAuthTO [static, private]

Definition at line 134 of file TAuthenticate.h.

Referenced by Authenticate(), CatchTimeOut(), SetTimeOut(), and TAuthenticate().

Int_t TAuthenticate::fgProcessID [static, private]

Definition at line 135 of file TAuthenticate.h.

Referenced by AuthExists(), TRootSecContext::CleanupSecContext(), SshAuth(), and TAuthenticate().

THostAuth* TAuthenticate::fHostAuth [private]

Definition at line 74 of file TAuthenticate.h.

TRootSecContext* TAuthenticate::fSecContext [private]

Definition at line 80 of file TAuthenticate.h.

TSocket* TAuthenticate::fSocket [private]

Definition at line 82 of file TAuthenticate.h.

TList* TAuthenticate::fgAuthInfo [static, private]

Definition at line 105 of file TAuthenticate.h.

TPluginHandler* TAuthenticate::fgPasswdDialog [static, private]

Definition at line 115 of file TAuthenticate.h.

TList* TAuthenticate::fgProofAuthInfo [static, private]

Definition at line 117 of file TAuthenticate.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 16:34:46 2011 for ROOT_528-00b_version by  doxygen 1.5.1