Print

Print


Hi Michal, et al., 
As we discussed last week, in order to enhance the XrdAdaptor logging, we need some small developments on the XRootD side. I will summarize what needs to be done with some examples:

# Requests
1. Get the actual hostname (or even the IP) instead of the DNS alias on the URL GetHostName() function [1].
```
Traceroute:    cms-xrd-global.cern.ch  
vs
Traceroute:    cms-xrd-global02.cern.ch  

$ nslookup cms-xrd-global.cern.ch
Name:	cms-xrd-global.cern.ch
Address: 188.184.30.79
Name:	cms-xrd-global.cern.ch
Address: 188.184.29.87
Name:	cms-xrd-global.cern.ch
Address: 2001:1458:d00:2f::100:326
Name:	cms-xrd-global.cern.ch
Address: 2001:1458:201:e5::100:49

$ nslookup 188.184.30.79
79.30.184.188.in-addr.arpa	name = cms-xrd-global02.cern.ch.
```
2. Get the specific port where the connection has been established. With the URL GetPort()  function, we get the service port (i.e. 1094) however we would like something like:
```
Traceroute:    cms-xrd-global02.cern.ch (port 7653) 
```
3. Get further authentication and authorization info from the `XrdCl::DefaultEnv::GetPostMaster()->QueryTransport` not just the auth system. 
i.e. for GSI: CAdir, CRLdir, UsrProxy... [2]

# Questions
1. Why do we see an auth system on the site redirector but not on the main storage node? (We have used the query [3] to print it)
```
Traceroute:    cms-xrd-global.cern.ch, gfe02.grid.hep.ph.ic.ac.uk (gsi),  sedsk84.grid.hep.ph.ic.ac.uk
```

Thank you in advance for your time!
Cheers


------------------------------------------------------------------------------------------------------------------------------------
[1] 
https://github.com/xrootd/xrootd/blob/master/src/XrdCl/XrdClURL.hh#L165

[2]
https://github.com/xrootd/xrootd/blob/master/src/XrdSecgsi/XrdSecProtocolgsi.hh#L323

[3]
```
XrdCl::DefaultEnv::GetPostMaster()->QueryTransport( itr->url, XrdCl::TransportQuery::Auth, result );
result.Get( auth_method );
```
https://github.com/xrootd/xrootd/blob/master/src/XrdCl/XrdClPostMaster.hh#L124


-- 
Reply to this email directly or view it on GitHub:
https://github.com/xrootd/xrootd/issues/1677
You are receiving this because you are subscribed to this thread.

Message ID: <[log in to unmask]>

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1