context show
Displays the user ID and domain ID used to establish the current authentication context. Also, specifies whether the domain is the management domain or a domain other than the management domain.
This command does not require a login or authentication to use.
Syntax
context show
Options
None.
Return codes
- 0
- The command completed successfully.
- 1
- The command failed. When a command fails, the pdadmin command
provides a description of the error and an error status code in hexadecimal
format (for example,
0x14c012f2). See "Error messages" in the IBM Knowledge Center. This reference provides a list of the Security Access Manager error messages by decimal or hexadecimal codes.
Examples
- The following example shows that no login and no authentication
are being performed:
The output is like:c:\> pdadmin context showNo login information - The following example shows local authentication before
the context show command is issued:
The output is like:c:\> pdadmin -l pdadmin local> context showThe user is logged in to the local system - The following example shows local authentication, like the previous
example, except the command in issued interactively:
The output is like:pdadmin sec_master> login -l pdadmin local> context showThe user is logged in to the local system - The following example shows authentication context information
for a user who is logged in to the management domain (non-local authentication).
The output is like:c:\> pdadmin -a sec_master -p mypwd -m pdadmin sec_master> context showUser: sec_master Domain: Default The user is logged into the management domain - The following example shows authentication context information
for the
testdomain_adminadministrator who logs in interactively to a domain (testdomain) other than the management domain:pdadmin> login -a testdomain_admin -p testpwd -d testdomain pdadmin testdomain_admin@testdomain_admin> context showThe output is like:
User: testdomain_admin Domain: testdomain The user is not logged in to the management domain