44 if (rproto > 6 && rproto < 10) {
48 if (s->
Recv(rproto, kind) < 0) {
49 Error(
"Authenticate",
"receiving remote protocol");
64 if (!strncasecmp(opt.Data()+1,
"C", 1)) {
80 proto +=
Form(
":%d",rproto);
91 if (isMASTER && !isPROOFserv) {
97 detsSRP.ReplaceAll(
"ru:0",4,
"ru:1",4);
102 detsSRP.ReplaceAll(ss.
Data(),5,
"ru:1",4);
121 Error(
"Authenticate",
122 "timeout expired for %s@%s", auth->
GetUser(), host);
124 Error(
"Authenticate",
125 "authentication failed for %s@%s", auth->
GetUser(), host);
141 if (rc && isPROOF && rproto > 11) {
142 Bool_t client = !isPROOFserv;
144 Error(
"Authenticate",
"PROOF: failed to finalize setup");
A zero length substring is legal.
void SetDetails(Int_t level, const char *details)
Set authentication details for specified level.
TRootSecContext * GetSecContext() const
void SetRemoteProtocol(Int_t rproto)
virtual int GetPid()
Get process id.
Int_t GetRemoteProtocol() const
const char * GetUser() const
Int_t GetServType() const
virtual Int_t Send(const TMessage &mess)
Send a TMessage object.
This class represents a WWW compatible URL.
TString & ReplaceAll(const TString &s1, const TString &s2)
virtual Int_t Recv(TMessage *&mess)
Receive a TMessage object.
TSecContext * Authenticate(TSocket *, const char *host, const char *user, Option_t *options="")
Runs authentication on socket s.
const char * GetDetails(Int_t level)
Return authentication details for specified level or "" if the specified level does not exist for thi...
void SetSecContext(TSecContext *ctx)
Bool_t Authenticate()
Authenticate to remote rootd or proofd server.
Int_t HasTimedOut() const
Int_t ProofAuthSetup()
Authentication related stuff setup in TProofServ.
void Error(const char *location, const char *msgfmt,...)
void RemoveMethod(Int_t level)
Remove method 'meth' from the list, if there ...
static void AuthError(const char *where, Int_t error)
Print error string depending on error code.
R__EXTERN TSystem * gSystem
virtual Int_t GetValue(const char *name, Int_t dflt)
Returns the integer value for a resource.
char * Form(const char *fmt,...)
THostAuth * GetHostAuth() const
void ErrorMsg(const char *where, Int_t ecode=-1)
Print error string corresponding to ecode, prepending location.
const char * GetUrl() const
Int_t ClientVersion()
Return client version;.
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
static Int_t GetClientProtocol()
Static method returning supported client protocol.
const char * Data() const
Ssiz_t Index(const char *pat, Ssiz_t i=0, ECaseCompare cmp=kExact) const