|
xrootd
|
#include <unistd.h>#include <ctype.h>#include <errno.h>#include <stdlib.h>#include <strings.h>#include <stdio.h>#include <sys/param.h>#include <pwd.h>#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>#include <sys/times.h>#include "XrdSys/XrdSysHeaders.hh"#include <XrdSys/XrdSysLogger.hh>#include <XrdSys/XrdSysError.hh>#include <XrdOuc/XrdOucStream.hh>#include <XrdSys/XrdSysPriv.hh>#include <XrdSut/XrdSutCache.hh>#include <XrdSecpwd/XrdSecProtocolpwd.hh>#include <XrdSecpwd/XrdSecpwdPlatform.hh>
Functions | |
| static const char * | ClientStepStr (int kclt) |
| static const char * | ServerStepStr (int ksrv) |
| char * | XrdSecProtocolpwdInit (const char mode, const char *parms, XrdOucErrInfo *erp) |
| XrdSecProtocol * | XrdSecProtocolpwdObject (const char mode, const char *hostname, const struct sockaddr &netaddr, const char *parms, XrdOucErrInfo *erp) |
Variables | |
| static String | Prefix = "xrd" |
| static String | ProtoID = XrdSecPROTOIDENT |
| static const kXR_int32 | Version = XrdSecpwdVERSION |
| static String | AdminRef = "admin" |
| static String | SrvPukRef = "srvpuk" |
| static String | UserRef = "user" |
| static String | NetRcRef = "netrc" |
| static const char * | pwdClientSteps [] |
| static const char * | pwdServerSteps [] |
| static const char * | gPWErrStr [] |
| static const short | kOptsServer = 0x0001 |
| static const short | kOptsUserPwd = 0x0002 |
| static const short | kOptsAutoReg = 0x0004 |
| static const short | kOptsAregAll = 0x0008 |
| static const short | kOptsVeriSrv = 0x0020 |
| static const short | kOptsVeriClt = 0x0040 |
| static const short | kOptsClntTty = 0x0080 |
| static const short | kOptsExpCred = 0x0100 |
| static const short | kOptsCrypPwd = 0x0200 |
| static const short | kOptsChngPwd = 0x0400 |
| static const short | kOptsAFSPwd = 0x0800 |
| static const int | kOneDay = 86400 |
| static const char* ClientStepStr | ( | int | kclt | ) | [static] |
References kXPC_normal, kXPC_reserved, and pwdClientSteps.
Referenced by XrdSecProtocolpwd::Authenticate(), and XrdSecProtocolpwd::getCredentials().
| static const char* ServerStepStr | ( | int | ksrv | ) | [static] |
References kXPS_init, kXPS_reserved, and pwdServerSteps.
Referenced by XrdSecProtocolpwd::Authenticate(), and XrdSecProtocolpwd::getCredentials().
| char* XrdSecProtocolpwdInit | ( | const char | mode, |
| const char * | parms, | ||
| XrdOucErrInfo * | erp | ||
| ) |
References pwdOptions::alog, pwdOptions::alogfile, pwdOptions::areg, XrdOucString::c_str(), pwdOptions::clist, pwdOptions::cpass, pwdOptions::debug, pwdOptions::dir, pwdOptions::expcreds, XrdOucTokenizer::GetLine(), XrdOucTokenizer::GetToken(), XrdSecProtocolpwd::Init(), pwdOptions::keepcreds, XrdOucString::length(), pwdOptions::lifecreds, pwdOptions::maxfailures, pwdOptions::maxprompts, pwdOptions::mode, opts, pwdOptions::srvpuk, strlcpy(), pwdOptions::syspwd, pwdOptions::udir, pwdOptions::upwd, pwdOptions::vericlnt, pwdOptions::verisrv, and XrdSutParseTime().
| XrdSecProtocol* XrdSecProtocolpwdObject | ( | const char | mode, |
| const char * | hostname, | ||
| const struct sockaddr & | netaddr, | ||
| const char * | parms, | ||
| XrdOucErrInfo * | erp | ||
| ) |
References XrdOucErrInfo::setErrInfo(), and XrdSecNOIPCHK.
Referenced by XrdSecProtocolpwd::Init().
const char* gPWErrStr[] [static] |
Referenced by XrdSecProtocolpwd::ErrF().
const int kOneDay = 86400 [static] |
const short kOptsAFSPwd = 0x0800 [static] |
Referenced by XrdSecProtocolpwd::Authenticate().
const short kOptsAregAll = 0x0008 [static] |
const short kOptsAutoReg = 0x0004 [static] |
const short kOptsChngPwd = 0x0400 [static] |
Referenced by XrdSecProtocolpwd::Authenticate(), and XrdSecProtocolpwd::getCredentials().
const short kOptsClntTty = 0x0080 [static] |
Referenced by XrdSecProtocolpwd::Authenticate(), and XrdSecProtocolpwd::getCredentials().
const short kOptsCrypPwd = 0x0200 [static] |
Referenced by XrdSecProtocolpwd::Authenticate().
const short kOptsExpCred = 0x0100 [static] |
Referenced by XrdSecProtocolpwd::Authenticate().
const short kOptsServer = 0x0001 [static] |
const short kOptsUserPwd = 0x0002 [static] |
const short kOptsVeriClt = 0x0040 [static] |
const short kOptsVeriSrv = 0x0020 [static] |
Referenced by XrdSecProtocolpwd::Init().
const char* pwdClientSteps[] [static] |
{
"kXPC_none",
"kXPC_normal",
"kXPC_verifysrv",
"kXPC_signedrtag",
"kXPC_creds",
"kXPC_autoreg",
"kXPC_failureack",
"kXPC_reserved"
}
Referenced by ClientStepStr().
const char* pwdServerSteps[] [static] |
{
"kXPS_none",
"kXPS_init",
"kXPS_credsreq",
"kXPS_rtag",
"kXPS_signedrtag",
"kXPS_newpuk",
"kXPS_puk",
"kXPS_failure",
"kXPS_reserved"
}
Referenced by ServerStepStr().
Referenced by XrdSecProtocolpwd::Init().
1.7.3