Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cta
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dCache
cta
Commits
f66538ff
Commit
f66538ff
authored
7 years ago
by
Michael Davis
Browse files
Options
Downloads
Patches
Plain Diff
[xrd_ssi] No need to specialize on Service::Prepare
parent
51fb9aea
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
xroot_plugins/XrdSsiCtaServiceProvider.cpp
+0
-51
0 additions, 51 deletions
xroot_plugins/XrdSsiCtaServiceProvider.cpp
with
0 additions
and
51 deletions
xroot_plugins/XrdSsiCtaServiceProvider.cpp
+
0
−
51
View file @
f66538ff
...
...
@@ -50,57 +50,6 @@ XrdSsiProvider *XrdSsiProviderServer = new XrdSsiCtaServiceProvider;
namespace
XrdSsiPb
{
/*!
* Override the Service::Prepare method
*
* Ensures that resource.client->name is valid. This is obtained from the KRB5 or SSS key, so
* connections via unix sockets are not possible in this scheme.
*/
template
<
>
bool
Service
<
cta
::
xrd
::
Request
,
cta
::
xrd
::
Response
,
cta
::
xrd
::
Alert
>::
Prepare
(
XrdSsiErrInfo
&
eInfo
,
const
XrdSsiResource
&
resource
)
{
if
(
resource
.
client
==
nullptr
||
resource
.
client
->
name
==
nullptr
)
{
eInfo
.
Set
(
"Service::Prepare(): XRootD client name is not set. "
"Possible misconfiguration of the KRB5 or SSS keyfile."
,
EACCES
);
return
false
;
}
#ifdef XRDSSI_DEBUG
std
::
cerr
<<
"[DEBUG] Service::Prepare():"
<<
std
::
endl
;
std
::
cerr
<<
"[DEBUG] Resource name: "
<<
resource
.
rName
<<
std
::
endl
<<
"[DEBUG] Resource user: "
<<
resource
.
rUser
<<
std
::
endl
<<
"[DEBUG] Resource info: "
<<
resource
.
rInfo
<<
std
::
endl
<<
"[DEBUG] Hosts to avoid: "
<<
resource
.
hAvoid
<<
std
::
endl
<<
"[DEBUG] Affinity: "
;
switch
(
resource
.
affinity
)
{
case
XrdSsiResource
::
None
:
std
::
cerr
<<
"None"
<<
std
::
endl
;
break
;
case
XrdSsiResource
::
Default
:
std
::
cerr
<<
"Default"
<<
std
::
endl
;
break
;
case
XrdSsiResource
::
Weak
:
std
::
cerr
<<
"Weak"
<<
std
::
endl
;
break
;
case
XrdSsiResource
::
Strong
:
std
::
cerr
<<
"Strong"
<<
std
::
endl
;
break
;
case
XrdSsiResource
::
Strict
:
std
::
cerr
<<
"Strict"
<<
std
::
endl
;
break
;
}
std
::
cerr
<<
"[DEBUG] Resource options: "
<<
(
resource
.
rOpts
&
XrdSsiResource
::
Reusable
?
"Resuable "
:
""
)
<<
(
resource
.
rOpts
&
XrdSsiResource
::
Discard
?
"Discard"
:
""
)
<<
std
::
endl
;
std
::
cerr
<<
"[DEBUG] Resource client protocol: "
<<
resource
.
client
->
prot
<<
std
::
endl
;
std
::
cerr
<<
"[DEBUG] Resource client name: "
<<
resource
.
client
->
name
<<
std
::
endl
;
#endif
return
true
;
}
}
// namespace XrdSsiPb
/*!
* Initialise the Service Provider
*/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment