#include <errno.h>
#include <signal.h>
#include <string.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <time.h>
#include "Krb5Auth.h"
#include "TSocket.h"
#include "TAuthenticate.h"
#include "TDatime.h"
#include "TROOT.h"
#include "THostAuth.h"
#include "TError.h"
#include "TSystem.h"
#include "TEnv.h"
#include "NetErrors.h"
#include "Getline.h"
Go to the source code of this file.
Classes | |
class | TKrb5AuthInit |
class | TKrb5CleanUp |
Functions | |
Int_t | Krb5Authenticate (TAuthenticate *, TString &, TString &, Int_t) |
static Int_t | Krb5InitCred (const char *clientPrincipal, Bool_t promptPrinc=kFALSE) |
static Int_t | Krb5CheckCred (krb5_context, krb5_ccache, TString, TDatime &) |
static Int_t | Krb5CheckSecCtx (const char *, TRootSecContext *) |
Variables | |
static TKrb5AuthInit | gKrb5authInit |
Int_t Krb5Authenticate | ( | TAuthenticate * | , | |
TString & | , | |||
TString & | , | |||
Int_t | ||||
) |
Definition at line 112 of file Krb5Auth.cxx.
References TAuthenticate::AuthError(), TAuthenticate::AuthExists(), cleanup(), THostAuth::CreateSecContext(), TString::Data(), Error, error_message, Form(), free(), gDebug, TAuthenticate::GetAuthMethod(), TAuthenticate::GetAuthReUse(), TAuthenticate::GetDefaultUser(), TSocket::GetDescriptor(), TSystem::Getenv(), TAuthenticate::GetHostAuth(), TInetAddress::GetHostName(), TSocket::GetInetAddress(), TAuthenticate::GetKrb5Principal(), TAuthenticate::GetPromptUser(), TAuthenticate::GetProtocol(), TAuthenticate::GetRemoteHost(), TAuthenticate::GetRSAKeyType(), TSocket::GetServType(), TAuthenticate::GetSocket(), TAuthenticate::GetUser(), TSystem::GetUserInfo(), gSystem, TSystem::HostName(), TSystem::IgnoreSignal(), Info, kAUTH_REUSE_MSK, kAUTH_RSATY_MSK, kErrConnectionRefused, kErrNoHome, kErrNotAllowed, kFALSE, TAuthenticate::kKrb5, kMESS_STRING, TSocket::kPROOFD, Krb5CheckCred(), Krb5CheckSecCtx(), Krb5InitCred(), kROOTD_AUTH, kROOTD_ERR, kROOTD_KRB5, kROOTD_RSAKEY, kSigPipe, kTRUE, principal(), TSocket::Recv(), retval, TAuthenticate::SecureRecv(), TSocket::Send(), TSocket::SendRaw(), TAuthenticate::SendRSAPublicKey(), TAuthenticate::SetSecContext(), snprintf, StrDup(), type, u, and Warning().
Referenced by TKrb5AuthInit::TKrb5AuthInit().
Definition at line 747 of file Krb5Auth.cxx.
References TString::Data(), Error, error_message, gDebug, TString::Index(), Info, principal(), TString::Remove(), TString::Resize(), and retval.
Referenced by Krb5Authenticate().
Int_t Krb5CheckSecCtx | ( | const char * | , | |
TRootSecContext * | ||||
) | [static] |
Definition at line 809 of file Krb5Auth.cxx.
References TSecContext::GetID(), and TSecContext::IsActive().
Referenced by Krb5Authenticate().
Definition at line 710 of file Krb5Auth.cxx.
References TSystem::Exec(), Form(), gDebug, Getline(), TAuthenticate::GetPromptUser(), gSystem, Info, and principal().
Referenced by Krb5Authenticate().
TKrb5AuthInit gKrb5authInit [static] |
Definition at line 76 of file Krb5Auth.cxx.