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.
Does not require a login or authentication to use.
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 ISAM error messages by decimal or hexadecimal codes.
Examples
- The following example shows that no login and no authentication are being performed:
c:\> pdadmin context showThe output is like:No login information- The following example shows local authentication before the context show command is issued:
c:\> pdadmin -l pdadmin local> context showThe output is like:The user is logged in to the local system
The following example shows local authentication, like the previous example, except the command in issued interactively: pdadmin sec_master> login -l pdadmin local> context showThe output is like:The 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). c:\> pdadmin -a sec_master -p mypwd -m pdadmin sec_master> context showThe output is like:User: sec_master Domain: Default The user is logged into the management domain
The following example shows authentication context information for the testdomain_admin administrator 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 show
The output is like:
User: testdomain_admin Domain: testdomain The user is not logged in to the management domain
See also
domain show
user show
login
logoutParent topic: pdadmin commands