43 if (rproto > 6 && rproto < 10) {
47 if (s->
Recv(rproto, kind) < 0) {
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);
77 "timeout expired for %s@%s", auth->
GetUser(), host);
80 "authentication failed for %s@%s", auth->
GetUser(), host);
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,...)
Use this function in case an error occurred.
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.
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