Log of /trunk/net/net/src/TPServerSocket.cxx
Parent Directory
Revision
23091 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Apr 9 15:04:27 2008 UTC (6 years, 9 months ago) by
rdm
File length: 6339 byte(s)
Copied from:
trunk/net/src/TPServerSocket.cxx revision 23090
Diff to
previous 20882
moving the follwing directories to "net":
alien, auth, glite, globusauth, krb5auth, ldap, monalisa, net, netx,
rootd, rpdutils, srputils, xrootd
Revision
12123 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Jun 22 20:18:12 2005 UTC (9 years, 7 months ago) by
brun
Original Path:
trunk/net/src/TPServerSocket.cxx
File length: 6401 byte(s)
Diff to
previous 12012
From Constantin Loizides
This patch implements:
- decentralized, automatic mutex initialization,
see R__LOCKGUARD2 in TVirtualMutex
- PROOF parallel startup fixes
- more thread protection (in base, cont, meta, rest to be done)
- cleanups
From Eddy Offermann:
TString::Atoi and Atof are made const.
Revision
10271 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Mon Oct 11 12:34:34 2004 UTC (10 years, 3 months ago) by
rdm
Original Path:
trunk/net/src/TPServerSocket.cxx
File length: 6435 byte(s)
Diff to
previous 8239
From Gerri:
Description: patch to support authentication in TServerSocket for
general server application based on ROOT.
New files:
- net/src/DaemonUtils.cxx, net/inc/DaemonUtils.h
wrappers around server-side functions implemented in
rpdutils/src/rpdutils.cxx
- rpdutils/inc/rpddefs.h
common definitions previously in rpdp.h
- tutorials/authserv.C, tutorials/authclient.C
macros to test authentication between to remote ROOT
sessions; see macro headers for instructions.
Patched files:
config:
- rootrc.in
New envs (SrvAuth.<xxx>) to steer authentication in TServerSocket,
reflecting the command lines options to rootd/proofd
globusauth/src:
- GlobusAuth.cxx
Few changes to cope with new socket "type" (i.e. non-rootd or proofd
related).
net:
- Module.mk
Drop DaemonUtils from the list of sources to be compiled;
add definition of DAEMONUTILSO used in rpdutils/Module.Mk
net/inc
- LinkDef.h
Add pragmas for global variables kSrvAuth and kSrvNoAuth, new options
to TServerSocket::Accept
- NetErrors.h
Add new error code kErrBadRTag to indicate unsuccessful verification of
the random tag associated to a token or password exchange
- TPServerSocket.h
Add option to method Accept()
- TServerSocket.h ...
Add option to method Accept() and a few methods, to set, display and
modify the defaults.
Add hooks to authentication code and cleanup code.
Add list of accepted authentication for cleanup at closing.
Add cleanup call in destructor.
Add new method Authenticate().
net/src:
- NetErrors.cxx
Add string for new errord code kErrBadRTag.
- TAuthenticate.cxx
Increase the client protocol number for backward compatibility.
Add support for new server socket "type" sock.
Add send of kROOTD_BYE after failures to avoid warning messages
on the server side.
Add signature of random tags in methods ClearAuth() (for passwords)
and AuthExists (for tokens)
- TPServerSocket.cxx
Add support for authentication in Accept()
- TPSocket.cxx
Add check on the server socket type in constructor
- TServerSocket.cxx
Add support for authentication in Accept().
Implement new method Authenticate() to run authentication; this method
loads dynamically the new library libSrvAuth.so .
Implement methods to manage options.
Add cleanup call in destructor.
- TSocket.cxx
Add support for new server socket type in CreateAuthSocket().
Improved parsing of protocol in CreateAuthSocket().
Improved description in CreateAuthSocket header.
proofd/src:
- proofd.cxx
Add check on the return code of RpdInitSession.
rootd/src:
- rootd.cxx
Add check on the return code of RpdInitSession.
rpdutils:
- Module.mk
Add rules to build libSrvAuth.so
rpdutils/inc:
- rpdp.h
Move const definitions in rpddefs.h
Include rpddefs.h
Add new signature for RpdIntiSession to be used in DaemonUtils.cxx
Add new method RpdSetMethInitFlag to reset from DaemonUtils.cxx
Add new signature for RpdCleanupAuthTab to clean the entry related
to a specified token (called by TServerSocket).
Add return codes to all the authentication-relatd functions.
rpdutils/src:
- rpdutils.cxx
Add static method 'rpdmemset' cleanup properly buffers used
for passwords, avoiding compiler optimizations.
Add static method 'rpdcrypt' to provide some protection when
crypt is not available (preparation for some support for win32gdk)
Add pre-compiler variable R__NOCRYPT to treat those cases.
Add implementation of new methods RpdSetMethInitFlag(int) and
RpdCleanupAuthTab(const char *).
Fix small problem in RpdCleanupAuthTab(const char *, int, int)
for option 'all' causing partial cleanup.
Add generation/ transmission/ check of a random tag in RpdUser and
RpdCheckAuthTab.
Make all authentication functions to return a code instead of
void; drop all 'exit' calls.
Add implementation of special RpdInitSession signature for TServerSocket
Revision
8239 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Feb 19 00:11:19 2004 UTC (10 years, 11 months ago) by
rdm
Original Path:
trunk/net/src/TPServerSocket.cxx
File length: 6156 byte(s)
Diff to
previous 1486
Big authentication patch by Gerri:
General purpose:
Add support for 'authenticated' sockets on client side
and prepare for support of server authenticated sockets.
Main changes:
o TSocket, TPsocket:
Added support of 'authenticated' sockets: authentication
is delegated to TSocket by calling a static method
CreateAuthSocket() returning a TSocket*.
TSocket is now the only class calling TAuthenticate.
o TFTP, TNetFile, TSlave:
modified to cope with new socket authentication scheme.
o TAuthDetails replaced by TSecContext containing:
- local authentication info
- expiration time
- pointer to a security context for the method (if any)
- information for cleanup (via TSecContextCleanup)
o A list of valid TSecContext has been added to TROOT,
accessible via gROOT->GetListOfSecContexts().
o THostAuth rewritten using arrays to avoid multiple use
of 'new'; functionality extended by the addition of
several new methods.
o TAuthenticate:
- Loading of information from .rootauthrc has been optimized;
this allowed to simplify method signatures and drop several
methods. Also collection and transmission of authentication
information from TSlave to TProofServ gets simplified by the
new scheme.
- Added support for server dependent directives in .rootauthrc
- Added check for changes in .rootauthrc each time a new
TAuthenticate is instantiated, so that changes in the file
are picked-up interactively.
- Checking for an existing TSecContext (previously TAuthDetails)
has been improved
- Improved diagnostics for SshAuth
- Enlarged support for authentication method indication in protocol:
UsrPwd: rootup/proofup
SRP: roots/proofs (already supported)
Krb5: rootk/proofk (already supported)
Globus: rootg/proofg
SSH: rootsh/proofsh
UigGid: rootug/proofug
o GlobusAuth.cxx, Krb5Auth.cxx, SRPAuth.cxx
- Adapted to new class TSecContext
- Added support for improved search for reusable TSecContext
- Drop globals used to store established security contexts
(saved in TSecContext) and related methods
o Automatic creation of <RootDir>/etc/system.rootauthrc from
compilation flags; this has priority on old envs
'Rootd.Authentication' and 'Proofd.Authentication' and is
superseded by $HOME/.rootauthrc
o Automatic creation of <RootDir>/etc/system.authdaemonrc from
compilation flags; this is superseded by $HOME/.rootauthrc
o rpdutils:
- several almost identical methods moved in from rootd/proofd
- several new methods to simplify manipulation of the
authentication tab file
- moved (and improved) check for running of sshd in RpdSshAuth,
performed only in case of failure (to avoid spurious messages
printed by sshd in /var/log/messages)
o proofd.cxx, rootd.cxx
- increased protocol version
- all initialization stuff (included authentication and
login) done via RpdInitSession
- postpone opening of parallels sockets after authentication
(to solve problem of Kerberos/Globus authentication with
parallel sockets)(rootd)
- Fixed problem with kerberos and globus authentication in rootd
with parallel sockets.
Revision
1477 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Added
Fri Jan 26 16:55:08 2001 UTC (14 years ago) by
rdm
Original Path:
trunk/net/src/TPServerSocket.cxx
File length: 8240 byte(s)
two new classes supporting parallel socket operation. Using this technique
network transfers are striped over a set of parallel sockets thereby
dramatically increasing the network performance over fat pipes (grid like
infrastructure). Instead of waiting for an ACK before sending a next
fragment and thereby not filling up the pipe completely, the sockets
send fragments in parallel, keeping the pipe full. These two new classes
have the same interface as the standard TSocket and TServerSocket classes.
This form allows you to request diffs between any two revisions of this file.
For each of the two "sides" of the diff,
enter a numeric revision.