#include <eim.h> int eimAddGroupRegistry(EimHandle * eim, char * registryName, char * registryType, char * description, EimRC * eimrc)Service Program Name: QSYS/QSYEIM
The eimAddGroupRegistry() function adds a group registry to the EIM domain. Once added, this registry is participating in the EIM domain. Mapping associations can only be made with identities in registries that are currently participating in the EIM domain.
A group registry can be used when a person has the same identity on multiple systems in the enterprise. You can define one association to the group registry that is used for all registries that are members of the group registry. The members of the group registry must have the same case sensitivity attribute (-caseIgnore or -caseExact) as the group. A group registry cannot be a member of another group registry. You can manage the members of a group registry using the Change EIM Registry (eimChangeRegistry) API.
See EIM Mapping Lookup Algorithm to see how associations to group registries are used in the mapping lookup operation.
EIM version 3 must be supported by the local EIM APIs to use this API (see eimGetVersion()--Get EIM Version).
The return value from the API. Following each return value is the list of possible values for the messageCatalogMessageID field in the eimrc parameter for that value.
EIMERR_ACCESS (1) | Insufficient access to EIM data. |
EIMERR_NOLOCK (26) | Unable to allocate internal system object. |
EIMERR_DATA_CONVERSION (13) | Error occurred when converting data between code pages. |
EIMERR_REGISTRY_EXISTS (37) | Registry entry already exists in EIM. |
EIMERR_CHAR_INVAL (21) | A restricted character was used in the object name. Check the API for a list of restricted characters. |
EIMERR_HANDLE_INVAL (17) | EimHandle is not valid. |
EIMERR_PARM_REQ (34) | Missing required parameter. Please check API documentation. |
EIMERR_PTR_INVAL (35) | Pointer parameter is not valid. |
EIMERR_REGTYPE_INVAL (62) | Registry type is not valid. |
EIMERR_FUNCTION_NOT_SUPPORTED (70) | The specified function is not supported by the EIM version. |
EIMERR_NOMEM (27) | No memory available. Unable to allocate required space. |
EIMERR_NOT_CONN (31) | Not connected to LDAP. Use eimConnect() API and try the request again. |
EIMERR_READ_ONLY (36) | LDAP connection is for read only. Use eimConnectToMaster() to get a write connection. |
EIMERR_LDAP_ERR (23) | Unexpected LDAP error. %s |
EIMERR_UNKNOWN (44) | Unknown error or unknown system state. |
There is a restriction on the characters allowed for a registry name.
The following characters are special characters that are not allowed in object names. They also should not be used in object attributes that would be used for a search operation.
, = + < > # ; \ * "
The following example creates a new EIM group registry.
Note: By using the code examples, you agree to the terms of the Code license and disclaimer information.
#include <eim.h> #include <stdio.h> int main(int argc, char *argv[]) { int rc; char eimerr[100]; EimRC * err; EimHandle * handle; /* Get eim handle from input arg. */ /* This handle is already connected to EIM. */ handle = (EimHandle *)argv[1]; /* Set up error structure. */ memset(eimerr,0x00,100); err = (EimRC *)eimerr; err->memoryProvidedByCaller = 100; /* Add new group registry */ if (0 != (rc = eimAddGroupRegistry(handle, "MyGroupRegistry", EIM_REGTYPE_GROUP_REGISTRY_IG, "The group registry", err))) printf("Add group registry error = %d", rc); return 0; }
[ Back to top | Security APIs | APIs by category ]