xrootd
|
#include <XrdSecServer.hh>
Public Member Functions | |
const char * | getParms (int &size, const char *hname=0) |
XrdSecProtocol * | getProtocol (const char *host, const struct sockaddr &hadr, const XrdSecCredentials *cred, XrdOucErrInfo *einfo=0) |
int | Configure (const char *cfn) |
XrdSecServer (XrdSysLogger *lp) | |
~XrdSecServer () | |
Private Member Functions | |
int | add2token (XrdSysError &erp, char *, char **, int &, XrdSecPMask_t &) |
int | ConfigFile (const char *cfn) |
int | ConfigXeq (char *var, XrdOucStream &Config, XrdSysError &Eroute) |
int | ProtBind_Complete (XrdSysError &Eroute) |
int | xpbind (XrdOucStream &Config, XrdSysError &Eroute) |
int | xpparm (XrdOucStream &Config, XrdSysError &Eroute) |
int | xprot (XrdOucStream &Config, XrdSysError &Eroute) |
int | xtrace (XrdOucStream &Config, XrdSysError &Eroute) |
Private Attributes | |
XrdSysError | eDest |
XrdOucTrace * | SecTrace |
XrdSecProtBind * | bpFirst |
XrdSecProtBind * | bpLast |
XrdSecProtBind * | bpDefault |
char * | SToken |
char * | STBuff |
int | STBlen |
int | Enforce |
int | implauth |
Static Private Attributes | |
static XrdSecPManager | PManager |
XrdSecServer::XrdSecServer | ( | XrdSysLogger * | lp | ) |
XrdSecServer::~XrdSecServer | ( | ) | [inline] |
int XrdSecServer::add2token | ( | XrdSysError & | erp, |
char * | pid, | ||
char ** | tokbuff, | ||
int & | toklen, | ||
XrdSecPMask_t & | pmask | ||
) | [private] |
References XrdSysError::Emsg(), XrdSecPManager::Find(), and PManager.
int XrdSecServer::ConfigFile | ( | const char * | cfn | ) | [private] |
References XrdOucStream::Attach(), XrdOucStream::Close(), XrdCms::Config, ConfigXeq(), XrdOucStream::Echo(), eDest, XrdSysError::Emsg(), XrdOucStream::GetMyFirstWord(), XrdOucStream::LastError(), XrdSecProtParm::Next, open(), ProtBind_Complete(), XrdSecProtParm::ProtoID, XrdSysError::Say(), snprintf, and XrdOucStream::Tabs().
Referenced by Configure().
int XrdSecServer::Configure | ( | const char * | cfn | ) |
References ConfigFile(), eDest, and XrdSysError::Say().
Referenced by XrdSecgetService().
int XrdSecServer::ConfigXeq | ( | char * | var, |
XrdOucStream & | Config, | ||
XrdSysError & | Eroute | ||
) | [private] |
References XrdOucStream::Echo(), XrdSysError::Say(), TS_Xeq, xpbind(), xpparm(), xprot(), and xtrace().
Referenced by ConfigFile().
const char * XrdSecServer::getParms | ( | int & | size, |
const char * | hname = 0 |
||
) | [virtual] |
Implements XrdSecService.
References bpDefault, bpFirst, XrdSecBuffer::buffer, DEBUG, EPNAME, XrdSecProtBind::Match(), XrdSecProtBind::next, XrdSecProtBind::SecToken, and XrdSecBuffer::size.
XrdSecProtocol * XrdSecServer::getProtocol | ( | const char * | host, |
const struct sockaddr & | hadr, | ||
const XrdSecCredentials * | cred, | ||
XrdOucErrInfo * | einfo = 0 |
||
) | [virtual] |
int XrdSecServer::ProtBind_Complete | ( | XrdSysError & | Eroute | ) | [private] |
References bpDefault, DEBUG, XrdSysError::Emsg(), EPNAME, XrdOucErrInfo::getErrText(), implauth, XrdSecPManager::Load(), PManager, XrdSysError::Say(), STBlen, STBuff, and SToken.
Referenced by ConfigFile().
int XrdSecServer::xpbind | ( | XrdOucStream & | Config, |
XrdSysError & | Eroute | ||
) | [private] |
References add2token(), bpDefault, bpFirst, bpLast, DEBUG, XrdSysError::Emsg(), Enforce, EPNAME, XrdSecPManager::Find(), XrdNetDNS::getHostName(), XrdOucStream::GetWord(), XrdSecProtBind::next, PManager, XrdSysError::Say(), and XrdSecProtBind::thost.
Referenced by ConfigXeq().
int XrdSecServer::xpparm | ( | XrdOucStream & | Config, |
XrdSysError & | Eroute | ||
) | [private] |
int XrdSecServer::xprot | ( | XrdOucStream & | Config, |
XrdSysError & | Eroute | ||
) | [private] |
References add2token(), XrdSecProtParm::Cat(), XrdSysError::Emsg(), XrdSecProtParm::Find(), XrdSecPManager::Find(), XrdOucErrInfo::getErrText(), XrdOucStream::GetWord(), implauth, XrdSecProtParm::Insert(), XrdSecPManager::Load(), PManager, XrdSecProtParm::Result(), XrdSysError::Say(), STBlen, STBuff, strlcpy(), and XrdSecPROTOIDSIZE.
Referenced by ConfigXeq().
int XrdSecServer::xtrace | ( | XrdOucStream & | Config, |
XrdSysError & | Eroute | ||
) | [private] |
References Debug, XrdSysError::Emsg(), XrdOucStream::GetWord(), PManager, QTRACE, XrdSysError::Say(), SecTrace, XrdSecPManager::setDebug(), TRACE_ALL, TRACE_Authen, TRACE_Authenxx, TRACE_Debug, and XrdOucTrace::What.
Referenced by ConfigXeq().
XrdSecProtBind* XrdSecServer::bpDefault [private] |
Referenced by getParms(), ProtBind_Complete(), xpbind(), and XrdSecServer().
XrdSecProtBind* XrdSecServer::bpFirst [private] |
Referenced by getParms(), getProtocol(), xpbind(), and XrdSecServer().
XrdSecProtBind* XrdSecServer::bpLast [private] |
Referenced by xpbind(), and XrdSecServer().
XrdSysError XrdSecServer::eDest [private] |
Referenced by ConfigFile(), Configure(), and XrdSecServer().
int XrdSecServer::Enforce [private] |
Referenced by getProtocol(), xpbind(), and XrdSecServer().
int XrdSecServer::implauth [private] |
Referenced by ProtBind_Complete(), xprot(), and XrdSecServer().
XrdSecPManager XrdSecServer::PManager [static, private] |
Referenced by add2token(), getProtocol(), ProtBind_Complete(), xpbind(), xpparm(), xprot(), and xtrace().
XrdOucTrace* XrdSecServer::SecTrace [private] |
Referenced by XrdSecServer(), and xtrace().
int XrdSecServer::STBlen [private] |
Referenced by ProtBind_Complete(), xprot(), and XrdSecServer().
char* XrdSecServer::STBuff [private] |
Referenced by ProtBind_Complete(), xprot(), and XrdSecServer().
char* XrdSecServer::SToken [private] |
Referenced by ProtBind_Complete(), and XrdSecServer().