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.
THostAuth * GetHostAuth() const
void SetDetails(Int_t level, const char *details)
Set authentication details for specified level.
Int_t GetServType() const
void SetRemoteProtocol(Int_t rproto)
virtual int GetPid()
Get process id.
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.
Ssiz_t Index(const char *pat, Ssiz_t i=0, ECaseCompare cmp=kExact) const
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)
const char * Data() const
Bool_t Authenticate()
Authenticate to remote rootd or proofd server.
const char * GetUrl() const
Int_t HasTimedOut() const
Int_t ProofAuthSetup()
Authentication related stuff setup in TProofServ.
TRootSecContext * GetSecContext() const
Int_t GetRemoteProtocol() const
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
char * Form(const char *fmt,...)
void ErrorMsg(const char *where, Int_t ecode=-1)
Print error string corresponding to ecode, prepending location.
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
static constexpr double s
Int_t ClientVersion()
Return client version;.
static Int_t GetClientProtocol()
Static method returning supported client protocol.
const char * GetUser() const
virtual Int_t GetValue(const char *name, Int_t dflt) const
Returns the integer value for a resource.