#include <XrdSecProtocolpwd.hh>
|
int | Authenticate (XrdSecCredentials *cred, XrdSecParameters **parms, XrdOucErrInfo *einfo=0) |
|
XrdSecCredentials * | getCredentials (XrdSecParameters *parm=0, XrdOucErrInfo *einfo=0) |
|
| XrdSecProtocolpwd (int opts, const char *hname, XrdNetAddrInfo &endPoint, const char *parms=0) |
|
virtual | ~XrdSecProtocolpwd () |
|
void | Delete () |
| Delete the protocol object. DO NOT use C++ delete() on this object.
|
|
virtual int | Encrypt (const char *inbuff, int inlen, XrdSecBuffer **outbuff) |
|
virtual int | Decrypt (const char *inbuff, int inlen, XrdSecBuffer **outbuff) |
|
virtual int | Sign (const char *inbuff, int inlen, XrdSecBuffer **outbuff) |
|
virtual int | Verify (const char *inbuff, int inlen, const char *sigbuff, int siglen) |
|
virtual int | getKey (char *buff=0, int size=0) |
|
virtual int | setKey (char *buff, int size) |
|
virtual bool | needTLS () |
| Check if this protocol requires TLS to properly function.
|
|
| XrdSecProtocol (const char *pName) |
| Constructor.
|
|
|
int | ParseClientInput (XrdSutBuffer *br, XrdSutBuffer **bm, String &emsg) |
|
int | ParseServerInput (XrdSutBuffer *br, XrdSutBuffer **bm, String &cmsg) |
|
int | ParseCrypto (XrdSutBuffer *buf) |
|
XrdSecCredentials * | ErrC (XrdOucErrInfo *einfo, XrdSutBuffer *b1, XrdSutBuffer *b2, XrdSutBuffer *b3, kXR_int32 ecode, const char *msg1=0, const char *msg2=0, const char *msg3=0) |
|
int | ErrS (String ID, XrdOucErrInfo *einfo, XrdSutBuffer *b1, XrdSutBuffer *b2, XrdSutBuffer *b3, kXR_int32 ecode, const char *msg1=0, const char *msg2=0, const char *msg3=0) |
|
XrdSutBucket * | QueryCreds (XrdSutBuffer *bm, bool netrc, int &status) |
|
int | QueryUser (int &status, String &cmsg) |
|
int | QueryCrypt (String &fn, String &pwhash) |
|
int | QueryNetRc (String host, String &passwd, int &status) |
|
bool | CheckCreds (XrdSutBucket *creds, int credtype) |
|
bool | CheckCredsAFS (XrdSutBucket *creds, int ctype) |
|
bool | CheckTimeStamp (XrdSutBuffer *b, int skew, String &emsg) |
|
bool | CheckRtag (XrdSutBuffer *bm, String &emsg) |
|
int | ExportCreds (XrdSutBucket *creds) |
|
int | SaveCreds (XrdSutBucket *creds) |
|
int | UpdateAlog () |
|
int | GetUserHost (String &usr, String &host) |
|
int | AddSerialized (char opt, kXR_int32 step, String ID, XrdSutBuffer *bls, XrdSutBuffer *buf, kXR_int32 type, XrdCryptoCipher *cip) |
|
int | DoubleHash (XrdCryptoFactory *cf, XrdSutBucket *bck, XrdSutBucket *s1, XrdSutBucket *s2=0, const char *tag=0) |
|
◆ XrdSecProtocolpwd()
XrdSecProtocolpwd::XrdSecProtocolpwd |
( |
int |
opts, |
|
|
const char * |
hname, |
|
|
XrdNetAddrInfo & |
endPoint, |
|
|
const char * |
parms = 0 |
|
) |
| |
◆ ~XrdSecProtocolpwd()
virtual XrdSecProtocolpwd::~XrdSecProtocolpwd |
( |
| ) |
|
|
inlinevirtual |
◆ AddSerialized()
◆ Authenticate()
Authenticate a client.
- Parameters
-
cred | Credentials supplied by the client. |
parms | Place where the address of additional authentication data is to be placed for another autrhentication handshake. |
einfo | The error information object where error messages should be placed. The messages are returned to the client. Should einfo be null, messages should be written to stderr. |
- Returns
- > 0 -> parms present (more authentication needed) = 0 -> Entity present (authentication suceeded) < 0 -> einfo present (error has occurred)
Implements XrdSecProtocol.
◆ CheckCreds()
bool XrdSecProtocolpwd::CheckCreds |
( |
XrdSutBucket * |
creds, |
|
|
int |
credtype |
|
) |
| |
|
private |
◆ CheckCredsAFS()
bool XrdSecProtocolpwd::CheckCredsAFS |
( |
XrdSutBucket * |
creds, |
|
|
int |
ctype |
|
) |
| |
|
private |
◆ CheckRtag()
◆ CheckTimeStamp()
◆ Delete()
void XrdSecProtocolpwd::Delete |
( |
| ) |
|
|
virtual |
Delete the protocol object. DO NOT use C++ delete() on this object.
Implements XrdSecProtocol.
◆ DoubleHash()
◆ EnableTracing()
static XrdOucTrace * XrdSecProtocolpwd::EnableTracing |
( |
| ) |
|
|
static |
◆ ErrC()
◆ ErrF()
static void XrdSecProtocolpwd::ErrF |
( |
XrdOucErrInfo * |
einfo, |
|
|
kXR_int32 |
ecode, |
|
|
const char * |
msg1, |
|
|
const char * |
msg2 = 0 , |
|
|
const char * |
msg3 = 0 |
|
) |
| |
|
staticprivate |
◆ ErrS()
◆ ExportCreds()
◆ getCredentials()
Generate client credentials to be used in the authentication process.
- Parameters
-
parm | Pointer to the information returned by the server either in the initial login response or the authmore response. |
einfo | The error information object where error messages should be placed. The messages are returned to the client. Should einfo be null, messages should be written to stderr. |
- Returns
- Success: Pointer to credentials to sent to the server. The caller is responsible for deleting the object. Failure: Null pointer with einfo, if supplied, containing the reason for the failure.
Implements XrdSecProtocol.
◆ GetUserHost()
int XrdSecProtocolpwd::GetUserHost |
( |
String & |
usr, |
|
|
String & |
host |
|
) |
| |
|
private |
◆ Init()
◆ ParseClientInput()
◆ ParseCrypto()
◆ ParseServerInput()
◆ PrintTimeStat()
static void XrdSecProtocolpwd::PrintTimeStat |
( |
| ) |
|
|
static |
◆ QueryCreds()
◆ QueryCrypt()
int XrdSecProtocolpwd::QueryCrypt |
( |
String & |
fn, |
|
|
String & |
pwhash |
|
) |
| |
|
private |
◆ QueryNetRc()
int XrdSecProtocolpwd::QueryNetRc |
( |
String |
host, |
|
|
String & |
passwd, |
|
|
int & |
status |
|
) |
| |
|
private |
◆ QueryUser()
int XrdSecProtocolpwd::QueryUser |
( |
int & |
status, |
|
|
String & |
cmsg |
|
) |
| |
|
private |
◆ SaveCreds()
◆ UpdateAlog()
int XrdSecProtocolpwd::UpdateAlog |
( |
| ) |
|
|
private |
◆ AutoLogin
int XrdSecProtocolpwd::AutoLogin |
|
staticprivate |
◆ AutoReg
int XrdSecProtocolpwd::AutoReg |
|
staticprivate |
◆ cacheAdmin
◆ cacheAlog
◆ cacheSrvPuk
◆ cacheUser
◆ clientCreds
◆ CName
char XrdSecProtocolpwd::CName[256] |
|
private |
◆ cryptID
◆ cryptName
◆ Debug
int XrdSecProtocolpwd::Debug |
|
staticprivate |
◆ DefCrypto
String XrdSecProtocolpwd::DefCrypto |
|
staticprivate |
◆ DefError
String XrdSecProtocolpwd::DefError |
|
staticprivate |
◆ eDest
◆ epAddr
◆ FileAdmin
String XrdSecProtocolpwd::FileAdmin |
|
staticprivate |
◆ FileCrypt
String XrdSecProtocolpwd::FileCrypt |
|
staticprivate |
◆ FileExpCreds
String XrdSecProtocolpwd::FileExpCreds |
|
staticprivate |
◆ FileSrvPuk
String XrdSecProtocolpwd::FileSrvPuk |
|
staticprivate |
◆ FileUser
String XrdSecProtocolpwd::FileUser |
|
staticprivate |
◆ FmtExpCreds
int XrdSecProtocolpwd::FmtExpCreds |
|
staticprivate |
◆ hs
◆ KeepCreds
bool XrdSecProtocolpwd::KeepCreds |
|
staticprivate |
◆ LifeCreds
int XrdSecProtocolpwd::LifeCreds |
|
staticprivate |
◆ loccip
◆ Logger
◆ MaxFailures
int XrdSecProtocolpwd::MaxFailures |
|
staticprivate |
◆ MaxPrompts
int XrdSecProtocolpwd::MaxPrompts |
|
staticprivate |
◆ ncrypt
int XrdSecProtocolpwd::ncrypt |
|
staticprivate |
◆ options
int XrdSecProtocolpwd::options |
|
private |
◆ PFAdmin
◆ PFAlog
◆ PFSrvPuk
◆ pwdContext
◆ PWDTrace
◆ refcip
◆ Server
bool XrdSecProtocolpwd::Server |
|
staticprivate |
◆ SrvEmail
String XrdSecProtocolpwd::SrvEmail |
|
staticprivate |
◆ SrvID
String XrdSecProtocolpwd::SrvID |
|
staticprivate |
◆ srvMode
bool XrdSecProtocolpwd::srvMode |
|
private |
◆ SysPwd
bool XrdSecProtocolpwd::SysPwd |
|
staticprivate |
◆ TimeSkew
int XrdSecProtocolpwd::TimeSkew |
|
staticprivate |
◆ UserPwd
int XrdSecProtocolpwd::UserPwd |
|
staticprivate |
◆ VeriClnt
int XrdSecProtocolpwd::VeriClnt |
|
staticprivate |
◆ VeriSrv
int XrdSecProtocolpwd::VeriSrv |
|
staticprivate |
The documentation for this class was generated from the following file: