Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dCache
cta
Commits
3577b09f
Commit
3577b09f
authored
Feb 12, 2016
by
Daniele Kruse
Browse files
More work on the CLI
parent
9ce9e823
Changes
1
Hide whitespace changes
Inline
Side-by-side
xroot_plugins/XrdCtaFile.cpp
View file @
3577b09f
...
...
@@ -80,8 +80,7 @@ cta::common::dataStructures::SecurityIdentity XrdProFile::checkClient(const XrdS
throw
cta
::
exception
::
Exception
(
std
::
string
(
__FUNCTION__
)
+
": [ERROR] getpwnam_r failed"
);
}
}
std
::
cout
<<
"Request received from client. Username: "
<<
client
->
name
<<
" uid: "
<<
pwd
.
pw_uid
<<
" gid: "
<<
pwd
.
pw_gid
<<
std
::
endl
;
std
::
cout
<<
"Request received from client. Username: "
<<
client
->
name
<<
" uid: "
<<
pwd
.
pw_uid
<<
" gid: "
<<
pwd
.
pw_gid
<<
std
::
endl
;
requester
.
setUid
(
pwd
.
pw_uid
);
requester
.
setGid
(
pwd
.
pw_gid
);
requester
.
setHost
(
client
->
host
);
...
...
@@ -793,12 +792,12 @@ void XrdProFile::xCom_user(const std::vector<std::string> &tokens, const cta::co
void
XrdProFile
::
xCom_usergroup
(
const
std
::
vector
<
std
::
string
>
&
tokens
,
const
cta
::
common
::
dataStructures
::
SecurityIdentity
&
requester
)
{
std
::
stringstream
help
;
help
<<
tokens
[
0
]
<<
" ug/usergroup add/ch/rm/ls:"
<<
std
::
endl
<<
"
\t
add --name/-n <usergroup_name> --archivepriority/--ap <priority_value> --minarchivefilesqueued/--af <minFilesQueued> --minarchivebytesqueued/--ab <minBytesQueued> "
<<
std
::
endl
<<
"
\t
--minarchiverequestage/--aa <minRequestAge> --retrievepriority/--rp <priority_value> --minretrievefilesqueued/--rf <minFilesQueued> "
<<
std
::
endl
<<
"
\t
--minretrievebytesqueued/--rb <minBytesQueued> --minretrieverequestage/--ra <minRequestAge> --maxdrivesallowed/-d <maxDrivesAllowed> --comment/-m <
\"
comment
\"
>"
<<
std
::
endl
<<
"
\t
ch --name/-n <usergroup_name> [--archivepriority/--ap <priority_value>] [--minarchivefilesqueued/--af <minFilesQueued>] [--minarchivebytesqueued/--ab <minBytesQueued>] "
<<
std
::
endl
<<
"
\t
[--minarchiverequestage/--aa <minRequestAge>] [--retrievepriority/--rp <priority_value>] [--minretrievefilesqueued/--rf <minFilesQueued>] "
<<
std
::
endl
<<
"
\t
[--minretrievebytesqueued/--rb <minBytesQueued>] [--minretrieverequestage/--ra <minRequestAge>] [--maxdrivesallowed/-d <maxDrivesAllowed>] [--comment/-m <
\"
comment
\"
>]"
<<
std
::
endl
<<
"
\t
add --name/-n <usergroup_name> --archivepriority/--ap <priority_value> --minarchivefilesqueued/--af <minFilesQueued> --minarchivebytesqueued/--ab <minBytesQueued> "
<<
std
::
endl
<<
"
\t
--minarchiverequestage/--aa <minRequestAge> --retrievepriority/--rp <priority_value> --minretrievefilesqueued/--rf <minFilesQueued> "
<<
std
::
endl
<<
"
\t
--minretrievebytesqueued/--rb <minBytesQueued> --minretrieverequestage/--ra <minRequestAge> --maxdrivesallowed/-d <maxDrivesAllowed> --comment/-m <
\"
comment
\"
>"
<<
std
::
endl
<<
"
\t
ch --name/-n <usergroup_name> [--archivepriority/--ap <priority_value>] [--minarchivefilesqueued/--af <minFilesQueued>] [--minarchivebytesqueued/--ab <minBytesQueued>] "
<<
std
::
endl
<<
"
\t
[--minarchiverequestage/--aa <minRequestAge>] [--retrievepriority/--rp <priority_value>] [--minretrievefilesqueued/--rf <minFilesQueued>] "
<<
std
::
endl
<<
"
\t
[--minretrievebytesqueued/--rb <minBytesQueued>] [--minretrieverequestage/--ra <minRequestAge>] [--maxdrivesallowed/-d <maxDrivesAllowed>] [--comment/-m <
\"
comment
\"
>]"
<<
std
::
endl
<<
"
\t
rm --name/-n <usergroup_name>"
<<
std
::
endl
<<
"
\t
ls"
<<
std
::
endl
;
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment