ROOT 6.08/07 Reference Guide |
#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"
Functions | |
Int_t | Krb5Authenticate (TAuthenticate *auth, TString &user, TString &det, Int_t version) |
Kerberos v5 authentication code. More... | |
static Int_t | Krb5CheckCred (krb5_context kCont, krb5_ccache Cc, TString principal, TDatime &expDate) |
Checks if there are valid credentials. More... | |
static Int_t | Krb5CheckSecCtx (const char *principal, TRootSecContext *ctx) |
Krb5 version of CheckSecCtx to be passed to TAuthenticate::AuthExists Check if principal is matches the one used to instantiate Ctx Returns: 1 if ok, 0 if not Deactivates Ctx is not valid. More... | |
static Int_t | Krb5InitCred (const char *clientPrincipal, Bool_t promptPrinc) |
Checks if there are valid credentials in the cache. More... | |
Variables | |
static TKrb5AuthInit | gKrb5authInit |
Int_t Krb5Authenticate | ( | TAuthenticate * | auth, |
TString & | user, | ||
TString & | det, | ||
Int_t | version | ||
) |
Kerberos v5 authentication code.
Returns 0 in case authentication failed, 1 in case of success and 2 in case remote does not support Kerberos5. Protocol 'version': 3 supports alternate username 2 supports negotiation and auth reuse 1 first kerberos implementation 0 no kerberos support (function should not be called) user is used to input the target username and return the name in the principal used
Definition at line 122 of file Krb5Auth.cxx.
|
static |
Checks if there are valid credentials.
Definition at line 750 of file Krb5Auth.cxx.
|
static |
Krb5 version of CheckSecCtx to be passed to TAuthenticate::AuthExists Check if principal is matches the one used to instantiate Ctx Returns: 1 if ok, 0 if not Deactivates Ctx is not valid.
Definition at line 815 of file Krb5Auth.cxx.
Checks if there are valid credentials in the cache.
If not, tries to initialise them.
Definition at line 713 of file Krb5Auth.cxx.
|
static |
Definition at line 76 of file Krb5Auth.cxx.