Print

Print


On Linux platforms, the "authentication denied" error is mapped to the EBADE errno (as EAUTH doesn't exist).  That results in authentication errors in XrdPss to generate the "invalid exchange" error message (this is because XrdPss takes the errno from XrdPosix and XrdPosix returns EBADE/EAUTH).

Rather than start tinkering with alternate errno's for this case, simply map EBADE's error message to "authentication denied".

Before:

```
Server responded with an error: [3030] Unable to open /user/ligo/test_access/access_ligo; invalid exchange
```

After:

```
Server responded with an error: [3030] Unable to open /user/ligo/test_access/access_ligo; authentication denied
```

This misleading error message was found when working on #1915 
You can view, comment on, or merge this pull request online at:

  https://github.com/xrootd/xrootd/pull/1916

-- Commit Summary --

  * Override error message for EAUTH

-- File Changes --

    M src/XrdSys/XrdSysE2T.cc (9)

-- Patch Links --

https://github.com/xrootd/xrootd/pull/1916.patch
https://github.com/xrootd/xrootd/pull/1916.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/xrootd/xrootd/pull/1916
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