48 Error(
"Authenticate",
"receiving remote protocol");
62 }
else if (
proto.Contains(
"sockd") ||
proto.Contains(
"rootd") ||
63 proto.Contains(
"proofd")) {
64 proto.ReplaceAll(
"d",1,
"",0);
73 if (!
auth->Authenticate()) {
75 if (
auth->HasTimedOut() > 0)
77 "timeout expired for %s@%s",
auth->GetUser(), host);
80 "authentication failed for %s@%s",
auth->GetUser(), host);
88 ctx =
auth->GetSecContext();
99 Error(
"Authenticate",
"PROOF: failed to finalize setup");
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
void Error(const char *location, const char *msgfmt,...)
Use this function in case an error occurred.
char * Form(const char *fmt,...)
Formats a string in a circular formatting buffer.
R__EXTERN TSystem * gSystem
Int_t ProofAuthSetup()
Authentication related stuff setup in TProofServ.
static void AuthError(const char *where, Int_t error)
Print error string depending on error code.
void ErrorMsg(const char *where, Int_t ecode=-1) override
Print error string corresponding to ecode, prepending location.
TSecContext * Authenticate(TSocket *, const char *host, const char *user, Option_t *options="") override
Runs authentication on socket s.
Int_t ClientVersion() override
Return client version;.
void SetRemoteProtocol(Int_t rproto)
virtual Int_t Recv(TMessage *&mess)
Receive a TMessage object.
static Int_t GetClientProtocol()
Static method returning supported client protocol.
Int_t GetRemoteProtocol() const
Int_t GetServType() const
void SetSecContext(TSecContext *ctx)
const char * GetUrl() const
virtual Int_t Send(const TMessage &mess)
Send a TMessage object.
virtual int GetPid()
Get process id.
This class represents a WWW compatible URL.
const char * GetProtocol() const