|
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 |
References bpDefault, bpFirst, bpLast, eDest, Enforce, implauth, PManager, SecTrace, XrdSecPManager::setDebug(), XrdSecPManager::setErrP(), STBlen, STBuff, SToken, TRACE_ALL, and XrdOucTrace::What.
| 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(), XrdCopy::Config, ConfigXeq(), XrdOucStream::Echo(), eDest, XrdSysError::Emsg(), XrdOucStream::GetMyFirstWord(), XrdOucStream::LastError(), XrdSecProtParm::Next, open(), ProtBind_Complete(), XrdSecProtParm::ProtoID, XrdSysError::Say(), 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] |
Obtain security parameters to be sent to the client upon initial contact.
| size | Where the length of the return parameters are to be placed. |
| hname | The client's host name which may be an IP address. It may also be a null pointer if the client's host is immaterial. |
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] |
Obtain a protocol object suitable for authentication based on cred and possibly based on the hostname or host address, as needed.
| host | The client's host name which may be an IP address. |
| hadr | The client host address encoded in sockaddr. |
| cred | The initial credentials supplied by the client, the pointer may be null if the client did not supply credentials. |
| einfo | The structure to record any error messages. These are normally sent to the client. If einfo is a null pointer, the messages should be sent to standard error via an XrdSysError object using the supplied XrdSysLogger when the the plugin was initialized. |
Implements XrdSecService.
References bpFirst, XrdSecBuffer::buffer, Enforce, XrdSecPManager::Find(), XrdSecProtBind::Find(), XrdSecPManager::Get(), PManager, XrdOucErrInfo::setErrInfo(), XrdSecBuffer::size, and XrdSecProtBind::ValidProts.
| 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(), XrdSysDNS::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(), XrdSecPManager::Find(), XrdSecProtParm::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(), XrdSecServer(), 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().
1.7.6.1