![]() |
|
|
Manuals: Objy AMS | FDID alloc | Sel Apps | Glossary | Proceedings | Talks | Press |
|
BdbAuthCmd
BdbAuthCmd queries and changes persistent authorization information in a federation.
Syntax
where <command> is one of the following:BdbAuthCmd { -f <filename> | help | <command> [par1] [par2] ... }
isauth - check if your process is authorized
dinit - initialize DOMAIN
ddelete - delete all the records inside DOMAIN
ucreate - create new USER record
udelete - delete existing USER record
gcreate - create new GROUP record
gdelete - delete existing GROUP record
uinclude - include USER into GROUP
uexclude - exclude USER from GROUP
setsysmgr - assign/deassign USER as a system manager in DOMAIN
setgrpmgr - assign/deassign USER as a GROUP manager
lsusers - list all registered USERs
lsmembers - list USERs - the members of a GROUP
lsgroups - list all registered GROUPs
lsmembership - list the GROUPs having a USER as a member
help - print this page, if you don't know yet how to do itExecuting a List of Commands
This feature is available with "-f <filename>" form of the input, where: <filename> is a text formatted file containing a list of commands to be executed.
The syntax of these commands is very much the same as for a command line form of the input, but with these exceptions:
- Spaces are not allowed in a user or a group descriptions.
- Apostrophes are treated as a part of the description.
- First met '#' symbol at the beginning of the line indicates command line parser to treat the corresponding line as a comment line.
- Ampty lines (containing nothing but SPACEs, TABs) are ignored.
From a practical point of view the first and secon rule mean that the following sample descriptions:
"This is a new group member"
"VIP user of our Federation"should be replaced with:
This_is_a_new_group_member
VIP_user_of_our_FederationStatus Return
When commands are executed one-by-one in a command line, the result is returned to a shell, as 0 - when OK, or 1 - when a ERROR condition is met.
When the commands are executed from the file the result of each command's execution is printed onto a standard output as a message, such as:
"BdbAuthCmd:<line number>:{OK|ERROR}: <command sequence>"
BaBar Public Site | SLAC | News | Links | Who's Who | Contact Us
Page Owner: Jacek Becla
Last Update: December 13, 2001 Last Update: December 13, 2001