ictxRemoveIdContext()--Remove Identity Context
Syntax
#include <ictx.h>;
int ictxRemoveIdContext
(
ictxStorageMech_t * storageMechanism,
ictxIdContextCredential_t * credential,
ictxError_t * errorInfo
)
Threadsafe: Yes
See
eServer Implementation Notes
for details on platform-specific details for this API.
The ictxRemoveIdContext() function
removes an identity context using the designated storage mechanism
and credential to that context.
Authorities and Locks
Refer to storage mechanism for authority information.
See
ictxStorageMech--Identity Context Storage Mechanism Parameter.
Parameters
-
storageMechanism (Input)
- The storage mechanism to use when removing the identity
context information.
For the format of the structure, see
ictxStorageMech--Identity Context Storage Mechanism Parameter.
-
credential (Input)
- The credential information that refers to an identity context.
-
errorInfo (Output)
- The structure in which to return error code information. If the return
value is not 0, errorInfo is set with additional information. This
parameter may be NULL. For the format of the structure, see ictxError--Identity
Context Return Code Parameter.
Return Value
The return value from the API.
-
0
- Request was successful.
-
ICTXERR_PARM_REQ (1)
- Missing required parameter. Please check API documentation.
-
ICTXERR_NOMEM (2)
- No memory available. Unable to allocate required space.
-
ICTXERR_EIM (3)
- Error occurred using EIM interfaces.
-
ICTXERR_STORAGEMECH_NOT_SUPPORTED (5)
- The storage mechanism is not a supported storage
mechanism.
-
ICTXERR_STORAGEMECH_INVALID (28)
- Storage mechanism parameter is not valid.
A required parameter may be missing.
-
AIX implementation details:
-
Linux implementation details:
-
i5/OS implementation details:
-
Service Program Name: QSYS/QSYICTX
-
Authority: Default public authority *USE
-
Windows implementation details:
-
Authority: Users must have administrative privilege to
install and work with the APIs.
-
z/OS implementation details:
-
Authority: The caller of the API must be APF-authorized.
Related Information
Example
The following example removes an identity context. The caller
supplies the correct storage mechanism information.
Note: Read the Code example disclaimer
for important legal information.
#include <ictx.h>
#include <string.h>
int removeIdContext( ictxStorageMech_t * storageMech,
ictxIdContextCredential_t * creds)
{
int rc;
ictxError_t errorInfo;
/*----------------------------------------------------------------*/
/* Retrieve authentication context */
/*----------------------------------------------------------------*/
if (0 != (rc = ictxRemoveIdContext(storageMech,
creds,
&errorInfo)))
{
.
.
.
return -1;
}
return 0;
}