|
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 "XrdVersion.hh"#include "XrdSys/XrdSysHeaders.hh"#include "XrdSys/XrdSysLogger.hh"#include "XrdSys/XrdSysError.hh"#include "XrdSys/XrdSysPwd.hh"#include "XrdOuc/XrdOucStream.hh"#include "XrdSys/XrdSysPriv.hh"#include "XrdSut/XrdSutCache.hh"#include "XrdSecpwd/XrdSecProtocolpwd.hh"#include "XrdSecpwd/XrdSecpwdPlatform.hh"
Macros | |
| #define | POPTS(t, y) {if (t) {t->Beg(epname); cerr <<y; t->End();}} |
Functions | |
| static const char * | ClientStepStr (int kclt) |
| static const char * | ServerStepStr (int ksrv) |
| XrdVERSIONINFO (XrdSecProtocolpwdInit, secpwd) | |
| char * | XrdSecProtocolpwdInit (const char mode, const char *parms, XrdOucErrInfo *erp) |
| XrdVERSIONINFO (XrdSecProtocolpwdObject, secpwd) | |
| 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 = ProtoID + "admin" |
| static String | SrvPukRef = ProtoID + "srvpuk" |
| static String | UserRef = ProtoID + "user" |
| static String | NetRcRef = ProtoID + "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 |
| XrdOucTrace * | pwdTrace = 0 |
| #define POPTS | ( | t, | |
| y | |||
| ) | {if (t) {t->Beg(epname); cerr <<y; t->End();}} |
Referenced by pwdOptions::Print().
|
static |
References kXPC_normal, kXPC_reserved, and pwdClientSteps.
Referenced by XrdSecProtocolpwd::Authenticate(), and XrdSecProtocolpwd::getCredentials().
|
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, XrdSecProtocolpwd::EnableTracing(), EPNAME, pwdOptions::expcreds, pwdOptions::expfmt, XrdOucTokenizer::GetLine(), XrdOucTokenizer::GetToken(), XrdSecProtocolpwd::Init(), pwdOptions::keepcreds, XrdOucString::length(), pwdOptions::lifecreds, pwdOptions::maxfailures, pwdOptions::maxprompts, pwdOptions::mode, opts, PRINT, pwdOptions::Print(), 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.
| XrdVERSIONINFO | ( | XrdSecProtocolpwdInit | , |
| secpwd | |||
| ) |
| XrdVERSIONINFO | ( | XrdSecProtocolpwdObject | , |
| secpwd | |||
| ) |
Referenced by XrdSecProtocolpwd::Init().
|
static |
Referenced by XrdSecProtocolpwd::ErrF().
|
static |
|
static |
Referenced by XrdSecProtocolpwd::Authenticate().
|
static |
|
static |
|
static |
Referenced by XrdSecProtocolpwd::Authenticate(), and XrdSecProtocolpwd::getCredentials().
|
static |
Referenced by XrdSecProtocolpwd::Authenticate(), and XrdSecProtocolpwd::getCredentials().
|
static |
Referenced by XrdSecProtocolpwd::Authenticate().
|
static |
Referenced by XrdSecProtocolpwd::Authenticate().
|
static |
|
static |
|
static |
|
static |
|
static |
Referenced by XrdSecProtocolpwd::Init().
|
static |
|
static |
Referenced by ClientStepStr().
|
static |
Referenced by ServerStepStr().
| XrdOucTrace* pwdTrace = 0 |
Referenced by XrdSecProtocolpwd::Init().
|
static |
1.8.3.1