42 Int_t rproto =
s->GetRemoteProtocol() % 1000;
44 if (rproto > 6 && rproto < 10) {
48 if (
s->Recv(rproto, kind) < 0) {
49 Error(
"Authenticate",
"receiving remote protocol");
52 s->SetRemoteProtocol(rproto);
63 }
else if (
proto.Contains(
"sockd") ||
proto.Contains(
"rootd") ||
64 proto.Contains(
"proofd")) {
65 proto.ReplaceAll(
"d",1,
"",0);
78 "timeout expired for %s@%s", auth->
GetUser(), host);
81 "authentication failed for %s@%s", auth->
GetUser(), host);
90 s->SetSecContext(ctx);
97 if (rc && isPROOF && rproto > 11) {
98 Bool_t client = !isPROOFserv;
100 Error(
"Authenticate",
"PROOF: failed to finalize setup");
void Error(const char *location, const char *msgfmt,...)
char * Form(const char *fmt,...)
R__EXTERN TSystem * gSystem
TRootSecContext * GetSecContext() const
Int_t HasTimedOut() const
const char * GetUser() const
Bool_t Authenticate()
Authenticate to remote rootd or proofd server.
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.
Int_t ClientVersion()
Return client version;.
TSecContext * Authenticate(TSocket *, const char *host, const char *user, Option_t *options="")
Runs authentication on socket s.
void ErrorMsg(const char *where, Int_t ecode=-1)
Print error string corresponding to ecode, prepending location.
static Int_t GetClientProtocol()
Static method returning supported client protocol.
virtual int GetPid()
Get process id.
This class represents a WWW compatible URL.
const char * GetProtocol() const
static constexpr double s