| Oracle® Label Security Administrator's Guide 10g Release 1 (10.1) Part Number B10774-01 |
|
B
|
| Command Category | Purpose of Comm and | Command | Replaces PL/SQL Statement |
|---|---|---|---|
|
Policies |
olsadmintool createpolicy |
SA_SYSDBA.CREATE_POLICY |
|
|
olsadmintool alterpolicy |
SA_SYSDBA.ALTER_POLICY | ||
|
olsadmi ntool droppolicy |
SA_SYSDBA.DROP_POLICY | ||
|
olsadmintool addpolcreator |
None; new | ||
|
olsadmintool droppolcreat or |
None; new | ||
|
Levels in a Policy |
olsadmintool createlevel |
SA_COMPONENTS.CREATE_LEVEL | |
|
olsadmintool alterlevel |
SA_COMPONENTS.ALTER_LEVEL | ||
|
olsadmintool droplevel |
|||
|
Groups in a Policy |
< p class="TB"> |
olsadmintool creategroup |
SA_COMPONENTS.CREATE_GROUP |
|
olsadmintool altergroup |
SA_COMPONENTS.ALTER_GROUP | ||
|
(also a g roup parent) |
SA_ COMPONENTS.ALTER_GROUP_PARENT | ||
| &nb sp; |
olsadmintool dropgroup |
SA_C OMPONENTS.DROP_GROUP | |
|
Compartments in a Policy |
olsadmintool createcompartment |
SA_COMPONENTS.CREATE_COMPARTMENT | |
|
olsadmintool altercompartment |
SA_COMPONENTS.ALTER_COMPARTMENT | ||
|
olsadmintool dropcompartment |
SA_COMPONENTS.DROP_COMPARTMENT | ||
|
Data Labels |
olsadmintool createlabel |
SA_LABEL_ADMIN.CREATE_LABEL | |
|
olsadmintool alterlabel td> |
SA_LABEL_ADMIN.ALTER_LABEL | ||
|
olsadmintool droplabel |
SA_LABEL_ADMIN.DROP_LABEL | ||
|
Users |
olsadmintool adduser |
None; new | |
|
olsadmintool dropuser |
SA_USER_ADMIN.DROP_USER_ACCESS | ||
|
Profiles |
olsadmintool createprofile |
Replaces the use of several methods. Foot 1 | |
|
olsadmintool listprofile |
None; new | ||
|
olsadmintool describeprofile |
None; new | ||
|
olsad mintool dropprofile |
None; new | ||
|
Policy Administrators |
< /td> |
olsadmintool addadmin |
<
td class="Formal">
|
|
ols admintool dropadmin |
None; new. | ||
|
Policy Access |
olsadmintool addpolaccess |
None; new. | |
|
olsadmintool droppolaccess |
None; new. | ||
|
Auditing |
< a name="675184"> |
olsadmintool audit |
SA_AUDIT_ADMIN.AUDIT |
|   ; |
olsadmintool noaudit |
SA_AUDIT_ADMIN.NOAUDIT | |
|
Help |
G et Help for olsadmintool |
ols admintool command --help |
Non e; new |
| 1 Replace
s several methods in SA_USER_ADMIN: SET_LEVELS, SET_USER_PRIVILEGES, and SET_DEFAULT_LABEL |
In the command explanations that follow, some parameters are optional, which is indicated by enclosing such a parameter withi n square brackets. The two most common examples are [ -b <admin context> ] and [-p <port>], indicating that it is optiona l to specify either the administrative context for the command or the port through which to connect to Oracle Internet Directory. (De fault port is 389.)
The use of two dashes (--, no space) is required for all parameters othe r than b, h, p, D, and w, which are preceded by a single dash. The double dash indicates the need to specify the full or long version of the name or parameter being used.
Each command appears in this listing on multiple lines for readability, but in reality would be issued as a single long string on the command line.
olsadmintool a dduser --polname <policy name> --profname <profilename> --userdn <enterprise user DN> [ -b <admin context> ] -h <OID host> [-p <port>] -D <bind DN> -w <bind password>
adduser commandUse the adduser command to add an enterprise user to a profile within a policy. Provide the profile and policy names and the user DN.Foot 1
olsadmintool adduser --polname tradesecret --profname topsales --userdn 'cn=perot' -b 'cn=EDS' -h ford -p 1890 -D cn=lbacsys -w lbacsyspwrd
| S
ee Also:
Please refer to the Oracle Advanced Security Administrator's Guide, Chapter 13, Administering Enterprise User Security, for further concepts, tools, steps, and procedures. |
olsadmintool addadmi n --polname <policy name> --admindn <admin DN> [ -b <admin context>] -h <OID host> [-p <port>] -D <b ind DN> -w <bind password>
Use the addadmin command to add an enterprise user to the administrative group for a policy, so that s/he is able to create, modify or delete the specified policy's metadata. Provide the pol icy name and the new administrator's DN. Command Footnote
olsadmintool addadmin --polname defense --admindn 'cn=scott,c=us' -h yippee -D cn=lbacsys -w lbacsys
olsadmintool addpolcreator --userdn <user DN> [ -b <admin context> ] -h <OID host&g t; [-p <port>] -D <bind DN> -w <bind password>
Use the addpolcreator c ommand to enable the specified user to create policies. Provide the DN for the user. Command Footnote
olsadmintool addpolcreator --userdn 'cn=scott' -h yippee -D cn=lbacsys -w lbacsys < a name="662339">
olsadmintool altercompartment --polname <policy name> --shortname <short compa rtment name> --longname <new long compartment name> [ -b <admin context> ] -h <OID host> [-p <port>] -D &l t;bind DN> -w <bind password>
Use the altercompartment command to change the long name of a compartment. Provide the name of the policy, the short name of the compartment, and the new long name of the compartm ent. Command Footnote
olsadm intool altercompartment --polname defense --shortname A --longname 'Allied Forces' -h yippee -D cn=defense_admin -w welcome1
olsadmintool altergroup --polname <policy name> --shortname <short group name> --longnam e <new long group name> [--parentname <new short group name> ] [ -b <admin context> ] -h <OID host> [-p <p ort>] -D <bind DN> -w <bind password>
Use the altergroup command to change t he long name for a group component or parent group. Provide the name of the policy, the short name of the group, the long name of the group, and optionally the short name for the parent group. Command Footnote
olsadmintool altergroup --polname defense --shortname US --longname 'United States of Ame rica' --parentname 'Earth' -h yippee -D cn=defense_admin -w welcome1
olsadmintool alterlabel --polname <policy name> --tag <tag number> --value <new label value> [ -b <admin context> ] -h <OID host > [-p <port>] -D <bind DN> -w <bind password>
Use the alterlabel comma nd to change the character string defining the label associated with a label tag. Provide the policy name, the numeric tag of the lab el, and the new character string representing the label. Command Footnote
olsadmintool alterlabel --polname defense --tag 100 --value 'TS:A:US' -h yippee -D cn=defens e_admin -w welcome1
olsadmintool alterlevel --polname <policy name> --shortname <sho rt level name> --longname <new long level name> [ -b <admin context> ] -h <OID host> [-p <port>] -D <b ind DN> -w <bind password>
Use the alterlevel command to change the long name of a level. Provide the name of the policy, the short name of the level, and the new long name of the level. Command Footnote
olsadmintool alterlevel --polname defense --s hortname TS --longname 'VERY TOP SECRET' -h yippee -D cn=defense_admin -w welcome1
olsadmintoo l alterpolicy --name <policy name> --options <new options> [ -b <admin context> ] -h <OID host> [-p <port& gt;] -D <bind DN> -w <bind password>
Use the alterpolicy command
to alter the options of a policy. Provide the name of the policy and the new options. Command Footnot
e
olsadmintool alterpolicy --name defense --options 'READ_CONTROL, INSERT_CONTROL' -h yippee -D cn=defense_admin -w welcome1
olsadmintool noaudit --poln ame <policy name> --options <audit option name> [ -b <admin context> ] -h <OID host> [-p <port>] -D < ;bind DN> -w <bind password>
Use the noaudit command to cancel the audit options for a po licy. Provide the policy name and the options that are no longer to be audited. Command Footnote< /sup>
olsadmintool noaudit --polname defense --options 'APPLY,PRIVILEGES' -h yi ppee -D cn=defense_admin -w welcome1
olsadmintool createcompartment --polname <poli cy name> --tag <tag number> --shortname <short compartment name> --longname <long compartment name> [ -b <ad min context> ] -h <OID host> [-p <port>] -D <bind DN> -w <bind password>
Use the createcompartment command to create a new compartment component. Provide the name of the policy, the tag nume ric value of the compartment, the short name of the compartment, and the long name of the compartment. Command Footnote
olsadmintool createcompartment --polname defense --tag 100 --shortname A --longname Alpha -h yippee -D cn=defense_admin -w welcome1
olsadmintool creategroup --polname <policy name> --tag <tag number> --shortname <short group name> --longname < ;long group name> [--parentname <parent group name>] [ -b <admin context> ] -h <OID host> [-p <port>] -D & lt;bind DN> -w <bind password>
Use the creategroup command to create a new group component. Provide the name of the policy, the tag numeric value of the group, the short name of the group, the long name of the grou p, and the parent group name (optional). Command Footnote
< /a> olsadmintool creategroup --polname defense --tag 55 --shortname US --longname 'United States' -h yippee -D c n=defense_admin -w welcome1
olsadmintool createlabel --polname <policy name> --tag < ;tag number> --value <label value> [ -b <admin context> ] -h <OID host> [-p <port>] -D <bind DN> -w <bind password>
Use the createlabel command to create a valid data label. Provide t he policy name, the numeric tag of the label to be created, and the character string representation of the label.Command Footnote
olsadmintool createlabel --polname d efense --tag 100 --value 'TS:A,B:US,CA' -h yippee -D cn=defense_admin -w welcome1
olsadminto ol createlevel --polname <policy name> --tag <tag number> --shortname <short level name> --longname <long level name> [ -b <admin context> ] -h <OID host> [-p <port>] -D <bind DN> -w <bind password>
Use the createlevel command to create a new level component. Provide the name of the policy, the tag n umeric value, the short name of the level, and the long name of the level. Command Footnote
olsadmintool createlevel --polname defense --tag 100 --shortname TS --long name 'TOP SECRET' -h yippee -D cn=defense_admin -w welcome1
olsadmintool createprofile --p olname <policy name> --profname <profile name> --maxreadlabel <max read label> --maxwritelabel <max write label > --minwritelabel <min write label> --defreadlabel <default read label> --defrowlabel <default row label> --pr ivileges <privileges separated by comma> [ -b <admin context> ] -h <OID host> [-p <port>] -D <bind DN> -w <bind password>
Use the createprofile command to create a new profile. Provide the policy name, the profile name, and either privileges, labels, or both privileges and labels. (A user profil e can have either null label information or null privilege information, but not both null at the same time.) For labels, specify the maximum label users in this profile can use to read data, the maximum label users in this profile can use to write data, the minimum label users in this profile can use to write data, the default label for reading, the default row label for writing. For privileges, enclose in quotes the list of privileges, separated by commas, for members of this profile. Command F ootnote
olsadmintool createprofile --polname topsecret --profna me topsales --maxreadlabel 'TS:A,B:US,CA' --maxwritelabel 'TS:A,B:US,CA' --minwritelabel 'C:A,B:US,CA' --defreadlabel 'TS:A,B:US,CA ' --defrowlabel 'C:A,B:US,CA' --privileges 'READ,COMPACCESS,WRITEACROSS' -b EDS -h ford -p 1890 -D cn=lbacsys -w lbacsyspwrd
olsadmintool createpolicy --name <policy name> --colname <column name> --options <opt ions separated by commas> [ -b <admin context> ] -h <OID host> [-p <port>] -D <bind DN> -w <bind passwo rd>
Use the createpolicy command to create a policy. Provide the name of the policy, t he name of its label column, and the options. Command Footnote
< h5 class="SH3">Example of the createpolicy commandolsadmintool createpolicy --name defense --colname defense_col --options 'READ_ CONTROL,UPDATE_CONTROL ' -h yippee -p 389 -D cn=defense_admin -w welcome1
olsadmintool describeprofile --polnam e <policy name> --profname <profile name> [ -b <admin context> ] -h <OID host> [-p <port>] -D <bind DN> -w <bind password>
describeprofile commandUs e the describeprofile command to see the contents of the specified profile in the specified policy. Provide the policy name and the n ame of the profile. Command Footnote
describeprofile commandolsadmintool describeprofile --polname defense --profname contractors -h yippee -D cn=defense_a dmin -w welcome1
olsadmintool dropcompartment --polname <policy name> --shortname <short compartment name> [ -b <admin context> ] -h <OID host> [-p <port>] -D <bind DN> -w <bind pas sword>
dr
opcompartment commandUse the dropcompartment command to remove a co mpartment component. Provide the name of the policy and the short name of the compartment. Command Fo otnote
dr
opcompartment commandolsadmintool dropcompart ment --polname defense --shortname A -h yippee -D cn=defense_admin -w welcome1
olsadmintool dr opgroup --polname <policy name> --shortname <short group name> [ -b <admin context> ] -h <OID host> [-p <p ort>] -D <bind DN> -w <bind password>
dropgroup commandUse the d ropgroup command to remove a group component. Provide the policy name and the short group name. Comma nd Footnote
olsadmintool dropgroup -- polname defense --shortname US -h yippee -D cn=defense_admin -w welcome1
olsadmintool droplabe l --polname <policy name> --value <label value> -h yippee [-p <port>] -D <bind DN> -w <bind password> < /pre>Description of the
droplabelcommandUse the droplabel command to drop a label from the policy. Prov ide the policy name and the string representation of the label. Command Footnote
Example of the
droplabelcom mandolsadmintool droplabel --polname defense --value 'TS:A:US ' h yippee -D cn=defense_admin -w welcome1Drop a Level
olsadmintool droplevel --polname <policy name> ; --shortname <short level name> [ -b <admin context> ] -h <OID host> [-p <port>] -D <bind DN> -w <b ind password>Description of the < code>droplevel command
Use the droplevel command to remove a level c omponent from a specified policy. Provide the name of the policy and the short name of the level. Com mand Footnote
Example of the < code>droplevel command
olsadmintool droplevel --polname defense --shortname TS -h yippee -D cn=defense_admin -w welcome1Drop a Policy
olsadmintool dropp olicy --name <policy name> [ -b <admin context> ] -h <OID host> [-p <port>] -D <bind DN> -w <bind pa ssword>Description of the
d roppolicycommandUse the droppolicy command to drop a policy. Provi de the name of the policy to be dropped.Command Footnote For directory-enabled installation s of Oracle Label Security, see also Subscribing Policies in Directory-Enabled Label Security in < a href="admpolcy.htm#1011245">Chapter 9, "Applying Policies to Tables and Schemas".
Example of the
droppolicycommandolsadmintool droppolicy --name defense -h yippee -D cn=defense_admin -w welcome1Drop a Profile
< pre class="CE">olsadmintool dropprofile --polname <policy name> --profname <profile name> [ -b <a dmin context> ] -h <OID host> [-p <port>] -D <bind DN> -w <bind password>
dropprofile command
h5>
Use the dropprofile command to remove the specified profile. Provide t he policy name and the name of the profile to be dropped.Command Footnote
|
Note: Dr opping a profile removes the authorization on that policy for all the users in the dropped profile. They will be unable to see data p rotected by that policy. |
dropprofile commandolsadmintool dropprofile --name defense --profname employees -h yippee -D cn=defense_admin -w welcome1
olsadmintool dropuser --polname <policy name> --profname <profilename> --userdn <enterprise user DN&g t; [ -b <admin context> ] -h <OID host> [-p <port>] -D <bind DN> -w <bind password>
Use the dropuser command to drop a user from the specified profile in the specified policy . Provide the policy name, the name of the profile, and the DN of the user. Command Footnote
dropuser
strong> commandolsadmintool dropuser --polname defense --prof name contractors --userdn 'cn=hanssen,c=us' -h yippee -D cn=defense_admin -w welcome1
olsadmintool dropadmin --polname <policy name> --admindn <admin DN> [ -b <admin context> ] -h <OID host> ; [-p <port>] -D <bind DN> -w <bind password>
dropadmin commandUse the dropadmin command to remove an enterprise user from the administrative group of a policy, so that s/he is no longer able to create, modify or delete the specified policy's metadata. Provide the policy name and the DN of the administrator to be removed from the administrative group. Command Footnote
dropadmin commandolsadmintool dropadmin --polname defense --admindn 'cn=scott,c=us' -h yippee -D cn=lbacsys -w lbacsys
olsadmintool droppolcreator --userdn <user DN> [ -b <admin context> ] -h <OID host> [-p <port>] -D <bind DN> -w <bind password>
droppolcreator commandUse the droppolcreator command to cancel the ability of the specified user to create policies. Provide th e user's DN. Command Footnote
droppolcreator commandolsadmintool droppolcreator --userdn 'cn-scott,c=us' -b UA -h yippee -p 1890 -D <bind DN> -w < bind password>
olsadmintool <command name> --help
olsadmintool listprofile --polname <policy name> [ -b <admin context> ] -h <OID host> [-p <port>] -D < bind DN> -w <bind password>
Use the listprofile command to see a list of all profiles in a given policy. Provide the policy name. Command Footnote
olsadmintool listprofile --polname defense -b CIA -h yippee -D cn=defense_admi n -w welcome1
olsadmintool audit --polname <policy name> --options <audit option name> --type <audit option type> --success <audit success type> [ -b <admin context> ] -h <OID host> [-p <port>] -D <bind DN> -w <bind password>
Use the audit command to set the audi t options for a policy. Provide the policy name, the options to be audited, the type of audit and the type of success to be audited. Command Footnote
olsadmintool audit --p olname defense --options 'APPLY,PRIVILEGE' --type session --success success -h yippee -D cn=defense_admin -w welcome1
All olsadmintool commands must specify conn ection parameters: the OID host, the bind DN, the bind password and optionally the port through which the connection to Oracle Intern et Directory is to be made. (The default port is 389.)
All olsadmintool commands may specify , as needed, the subscriber/administrative-context using the -b flag.
The fact that specifyi ng a parameter is optional, such as a port or an administrative context, is shown by enclosing the parameter within square brackets. The two most common examples are [ -b <admin context> ] and [-p <port>].
Since e very command must specify a host, bind DN, and password, and may if needed also specify an administrative context, Table B-3 uses the abbreviation CON to represent all of these connection parameters as a group:
[ -b <admin context> ] h <OID host> [-p <port>] -D <bind DN> -w <bind password> < /pre>Summaries
Table B-3 summarizes the command s in the following categories:
- < strong class="Bold">Policies: creating, altering, or dropping policies or their components, that is, levels, groups, and com partments.
- Data labels: creating, altering, or dr opping them.
- Administrators and policy creators: adding or dropping them.
- Users: adding or droppin g users from a profile.
- Auditing options: setting the options for what to audit for a policy
- Profiles: creating, listing, describing, or dropping them.
- Defa ult read or row labels: setting them.
In Tab le B-3 and Table B-4, the column headings show only the parameters, not the keywords tha t must precede them. For example, Table B-3 shows "policyname" and "column-name" as parameters fo r the
createpolicycommand, without showing the keywords that must precede them (--name and --colname). These keywords < u>are shown as required in each of the command descriptions, such as at Create Policy.Table B-5 explains the individual parameters that are used as colum n headings in the summaries of Table B-3 and Table B-4.
< a name="676889">In all these tables, X means required, and O means unused or omitted.
Table B-3 Summary: o lsadmintool Command Parameters
| Command Category | |
||||||
|---|---|---|---|---|---|---|---|
|
Policies |
Command |
policy
|
column- |
optionsP |
CON |
||
|
olsadmintool createpolicy |
X |
X |
X |
X |
|||
| &nb sp; |
olsadmintool alterpolicy |
X |
O |
X |
X |
||
| < td class="Formal"> |
X |
O |
|
&n bsp; | |||
|
Within a Policy, Create: |
Command< /strong> |
policy |
tag |
a>
short |
|
CON |
parent |
|
a level |
olsadmintool createlevel |
X |
X |
X |
X |
X |
O |
|
a group |
olsadmintool creategroup |
X |
X |
X |
X |
< p class="TB">X |
[ X ] |
|
|
olsadmintool createcompartme nt |
X |
X |
|
X |
X |
O |
|
Within a Policy, Alter: |
& nbsp; | ||||||
|
a level |
olsadmintool alterleve l |
X |
O |
X |
X |
X |
O |
|
a gr oup or group parent |
olsadmintool altergroup |
X |
O |
X |
X |
X |
[X] |
|
Command |
policy |
tag |
short |
long |
CON |
parent | |
|
a compartment |
< p class="TB">olsadmintool altercompartment |
X |
O |
X |
X |
X |
O |
|
Within a Policy, Drop: |
|||||||
|
level |
olsadmintool dr oplevel |
X |
O |
X |
O |
X |
O |
|
group |
olsadmintool dropgroup |
X |
O |
X |
O |
X |
O |
|
a>
compartment |
olsadmin tool dropcompartment |
X |
O |
X |
O |
X |
O |
|
Data Labels |
Command |
pol
icy |
tag |
value |
CON |
||
|
Create label |
olsadmintool createlabel |
X |
X |
X |
X |
||
|
olsadmintool alterlabel |
X |
X |
X |
X |
|||
|
Drop data label |
olsadmintool droplabel |
X |
O |
X |
X |
a> | |
|
Policy Administrators |
Command |
policy |
userDN |
CON |
|||
|
Add an Admin |
olsadmintool addadmin |
X |
X |
X |
|||
|
Drop an Admin |
olsadmintool dropadmin |
X |
X |
X |
|||
|
Policy Creation |
olsadmintool addpolcreator |
O |
X |
|
&n bsp; | ||
| < a name="667852"> |
|
O |
|
X |
|||
|
Users |
Command |
policy |
profile |
userDN |
CON |
||
|
Add a User |
olsadmi ntool adduser |
X |
X |
X |
X |
||
|
Drop a User |
|
X |
X |
X |
X |
||
| &nbs p; | |||||||
|
Auditing |
olsadmintool audit |
X |
optionsA |
type |
success |
CON |
|
|
olsad mintool noaudit |
X |
X |
X |
X |
X |
||
|
Help on olsadmintool |
olsadmintool <commandmame> |
O |
O |
O |
O |
O |
tr> |
| 1 In createprofile, specifying both privileges and lab
els is not required: a profile can specify labels, privileges, or both. |
The 12 subsections that follow illustrate using the olsadmintool commands in typical tasks needed to set up Oracle Label Security in an Oracle Internet Directory environment. Each command appears in this listing on mul tiple lines for readability, but in reality would be issued as a single long string on the command line. The summarized results of ex ecuting all these commands appear in Results of These Examples, which follows the last example.
ORACLE_HOME/bin/olsadmintool addpolcreator --userdn 'cn=snamudur,c=us' -b 'ou=Americas,o=Oracle,c=US' -h yi ppee -p 389 -D 'cn=lbacsys,c=us' -w lbacsys
a>ORACLE_HOME/bin/olsadmintool createpolicy --name Policy1 --colname pol1 --options READ_CONTROL,WRITE_CONTROL -b 'ou=Americas,o=Orac le,c=US' -h yippee -p 389 -D 'cn=snamudur,c=us' -w snamudur ORACLE_HOME/bin/olsadmintool c reatepolicy --name Policy2 --colname pol2 --options READ_CONTROL -b 'ou=Americas,o=Oracle,c=US' -h yippee -p 389 -D 'cn=lbacsys,c=us' -w lbacsys
ORACLE_HOME/bin/olsadmintool addadmi n --polname Policy1 --admindn 'cn=shwong,c=us' -b 'ou=Americas,o=Oracle,c=US' -h yippee -p 389 -D 'cn=snamudur,c=us' -w snamudur ORACLE_HOME/bin/olsadmintool addadmin --polname Policy2 --admindn 'cn=shwong,c=us' -b 'ou=Am ericas,o=Oracle,c=US' -h yippee -p 389 -D 'cn=lbacsys,c=us' -w lbacsys
ORACLE_HOME/bin/olsadmintool createcompartment --polname Policy1 --tag 100 --shortname A --longname ALPHA -b 'ou=Americas,o=Oracle,c=US' -h yippee -p 389 D 'cn=shwong,c=us' -w sh wong ORACLE_HOME/bin/olsadmintool createcompartment --polname Policy1 --tag 99 --shortname B --longname BETA -b 'ou=Americas,o=Oracle,c=US' -h yippee -p 389 -D 'cn=shwong,c=us' -w shwong
ORACLE_HOME/bin/olsadmintool createl abel --polname Policy1 --tag 100 --value TS:A:G1 -b 'ou=Americas,o=Oracle,c=US' -h yippee -p 389 -D 'cn=shwong,c=us' -w shwong ORACLE_HOME/bin/olsadmintool createlabel --polname Policy1 --tag 101 --value TS:A,B:G2 -b 'ou=Am ericas,o=Oracle,c=US' -h yippee -p 389 -D 'cn=shwong,c=us' -w shwong
ORACLE_HOME/bin/olsadmintool createprofile --polname Policy1 --profname Profile1 --maxreadlabel TS:A:G1 --maxwritelabel TS:A :G1 --minwritelabel U:: --defreadlabel U:A:G1 --defrowlabel U:A:G1 --privileges WRITEUP,READ -b 'ou=Americas,o=Oracle,c=US' -h yippee -p 389 -D 'cn=shwong,c=us' -w shwong
ORACLE_ HOME/bin/olsadmintool adduser --polname Policy1 --profname Profile1 --userdn cn=nina,ou=Asia,o=microsoft,l=seattle,st=WA,c=US -b 'ou= Americas,o=Oracle,c=US' -h yippee -p 389 -D 'cn=shwong,c=us' -w shwong
ORACLE_HOME/bin/olsadmintool adduser --polname Policy1 --profname Profile1 --userdn cn=daniel,ou=Fran ce,o=oracle,l=madison,st=WI,c=US -b 'ou=Americas,o=Oracle,c=US' -h yippee -p 389 -D 'cn=shwong,c=us' -w shwong
ORACLE_HOME/bin/olsadmintool audit --polname Policy1 --option 'SET,APPLY' -- type SESSION --success BOTH -b 'ou=Americas,o=Oracle,c=US' -h yippee -p 389 -D 'cn=shwong,c=us' -w shwonga>
As a result of running the 12 sets of olsadmintool commands above, this sample Oracle Label Security site has the following structure:
| Tag | Short Name | Long Name | |
|---|---|---|---|
|
Level |
100 |
TS |
TOP SECRET |
|
99 |
S |
SECRET | |
|
98 |
U |
UNCLASSIFIED | |
|
Compartment |
100 |
<
/a>
A |
ALPHA |
|
99 |
B |
BETA | |
|
Group |
<
td class="Formal">
G1 |
GROUP1 | |
|
99 |
<
a name="672049">
G2 |
GROUP2 | |
| < p class="TB">98 |
G3 |
GROUP3 |
1 Command Footnote
Every command must include the directory hostname, the bind DN, and the
bind password. Any command may, as needed, also supply the subscriber admin- istrative context (optional), the directory port number
(also optional), or both. See also Table B-3, "Summary: olsadmintool Command Parameters" for add
itional details on these parameters.