41 Int_t rproto =
s->GetRemoteProtocol() % 1000;
43 if (rproto > 6 && rproto < 10) {
47 if (
s->Recv(rproto, kind) < 0) {
48 Error(
"Authenticate",
"receiving remote protocol");
51 s->SetRemoteProtocol(rproto);
62 }
else if (
proto.Contains(
"sockd") ||
proto.Contains(
"rootd") ||
63 proto.Contains(
"proofd")) {
64 proto.ReplaceAll(
"d",1,
"",0);
77 "timeout expired for %s@%s", auth->
GetUser(), host);
80 "authentication failed for %s@%s", auth->
GetUser(), host);
89 s->SetSecContext(ctx);
96 if (rc && isPROOF && rproto > 11) {
97 Bool_t client = !isPROOFserv;
99 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