Required Parameter Group:
|
The Change Directory Server Attributes (QgldChgDirSvrA) API changes the directory server configuration. It can be used to change the following server properties:
*ALLOBJ and *IOSYSCFG special authority is required to use this API.
A variable that contains the input data. See Format of Input Data for a description of the data associated with a specific format name.
The length of the input data area.
The format name identifying the type of information to be changed. The possible format names follow:
See Format of Input Data for a description of these formats.
The structure in which to return error information. For the format of the structure, see Error Code Parameter.
For details about the format of the input data, see the following sections. For details about the fields in each format, see Field Descriptions.
This format is used to change basic server configuration
information.
| Offset | Type | Field | |
|---|---|---|---|
| Dec | Hex | ||
| 0 | 0 | BINARY(4) | Read only |
| 4 | 4 | BINARY(4) | Server is replica |
| 8 | 8 | BINARY(4) | Security |
| 12 | C | BINARY(4) | Nonencrypted port number |
| 16 | 10 | BINARY(4) | Encrypted port number |
| 20 | 14 | BINARY(4) | Current cipher protocols |
| 24 | 18 | BINARY(4) | Search time limit |
| 28 | 1C | BINARY(4) | Search size limit |
| 32 | 20 | BINARY(4) | Maximum connections |
| 36 | 24 | BINARY(4) | Reserved |
| 40 | 28 | BINARY(4) | Referral port |
| 44 | 2C | BINARY(4) | Password format |
| 48 | 30 | BINARY(4) | Offset to referral server |
| 52 | 34 | BINARY(4) | Length of referral server |
| 56 | 38 | BINARY(4) | Offset to administrator DN |
| 60 | 3C | BINARY(4) | Length of administrator DN |
| 64 | 40 | BINARY(4) | Offset to administrator password |
| 68 | 48 | BINARY(4) | Length of administrator password |
| 72 | 48 | BINARY(4) | Offset to update DN |
| 76 | 4C | BINARY(4) | Length of update DN |
| 80 | 50 | BINARY(4) | Offset to update password |
| 84 | 54 | BINARY(4) | Length of update password |
| 92 | 5C | BINARY(4) | Offset to key ring file |
| 96 | 60 | BINARY(4) | Length of key ring file |
| 100 | 64 | BINARY(4) | Offset to database path |
| 104 | 64 | BINARY(4) | Length of database path |
| 108 | 68 | BINARY(4) | Level indicator |
| Additional fields if level indicator is equal to 1: | |||
| 112 | 70 | BINARY(4) | SSL authentication method |
| 116 | 74 | BINARY(4) | Number of database connections |
| 120 | 78 | BINARY(4) | Schema checking level |
| 124 | 7C | BINARY(4) | Offset to master server URL |
| 128 | 80 | BINARY(4) | Length of master server URL |
| 132 | 84 | BINARY(4) | Change log indicator |
| 136 | 88 | BINARY(4) | Maximum number of change log entries |
| 140 | 8C | BINARY(4) | Terminate idle connections |
| 144 | 94 | BINARY(4) | Reserved |
| Variable length string fields: | |||
|
|
| CHAR(*) | Referral server |
|
|
| CHAR(*) | Administrator DN |
|
|
| CHAR(*) | Administrator password |
|
|
| CHAR(*) | Update DN |
|
|
| CHAR(*) | Update password |
|
|
| CHAR(*) | Key ring file |
|
|
| CHAR(*) | Database path |
|
|
| CHAR(*)
| Master server URL |
This format is used to add or remove suffixes from the server. The input data consists of a header and a series of change entries. The header identifies the number of suffixes to be added or removed. Each change entry identifies a suffix and the action to be performed (add or remove the suffix).
Note: Removing a suffix from a server will result in the loss of all directory
entries with that suffix.
| Offset | Type | Field | |
|---|---|---|---|
| Dec | Hex | ||
| 0 | 0 | BINARY(4) | Offset to change entry |
| 4 | 4 | BINARY(4) | Number of change entries |
|
|
|
| Change entry |
|
Suffix change entries:
| |||
| 0 | 0 | BINARY(4) | Displacement to next entry |
| 4 | 4 | BINARY(4) | Action |
| 8 | 8 | BINARY(4) | Displacement to suffix |
| 12 | C | BINARY(4) | Length of suffix |
|
|
| CHAR(*) | Suffix |
This format is used to add, change, or remove directory
indexes. Creating indexes for one or more attributes allows for
faster retrieval of directory entries based on those attributes.
The input data consists of a header and a series of change entries.
The header identifies the number of indexes to be added, changed, or
removed.
Each change entry identifies an attribute and the action to be
performed (add, change, or remove the indexes).
Starting with V4R5M0, this format is not supported. Database index information is to be changed using an LDAP client or the Directory Management Tool (DMT) starting with V4R5M0.
| Offset | Type | Field | |
|---|---|---|---|
| Dec | Hex | ||
| 0 | 0 | BINARY(4) | Offset to change entry |
| 4 | 4 | BINARY(4) | Number of change entries |
|
|
|
| Change entries |
|
Add or change attribute index entries:
| |||
| 0 | 0 | BINARY(4) | Displacement to next entry |
| 4 | 4 | BINARY(4) | Action |
| 8 | 8 | BINARY(4) | Displacement to attribute name |
| 12 | C | BINARY(4) | Length of attribute name |
| 16 | 10 | BINARY(4) | Index type |
| 20 | 14 | BINARY(4) | Reserved |
|
|
| CHAR(*) | Attribute name |
|
Delete attribute index entries:
| |||
| 0 | 0 | BINARY(4) | Displacement to next entry |
| 4 | 4 | BINARY(4) | Action |
| 8 | 8 | BINARY(4) | Displacement to attribute name |
| 12 | C | BINARY(4) | Length of attribute name |
| 16 | 10 | BINARY(4) | Reserved |
|
|
| CHAR(*) | Attribute name |
This format is used to set
the attributes for publishing users in an LDAP directory.
User information from the System Distribution Directory (SDD) can
be published to an LDAP server by the
Synchronize System Distribution Directory to LDAP (QGLDSSDD) API and
from AS/400 Operations Navigator. The publishing attributes define
how to publish user information.
| Offset | Type | Field | |
|---|---|---|---|
| Dec | Hex | ||
| 0 | 0 | BINARY(4) | Offset to the server name |
| 4 | 4 | BINARY(4) | Length of server name |
| 8 | 8 | BINARY(4) | LDAP port number |
| 12 | C | BINARY(4) | Connection type |
| 16 | 10 | BINARY(4) | Offset to parent distinguished name |
| 20 | 14 | BINARY(4) | Length of parent distinguished name |
| 24 | 18 | BINARY(4) | Reserved |
|
|
| CHAR(*) | Server name |
|
|
| CHAR(*) | Parent distinguished name |
This format is used to set the network server publishing attributes
associated with the server.
| Offset | Type | Field | |
|---|---|---|---|
| Dec | Hex | ||
| 0 | 0 | BINARY(4) | Offset to change entries |
| 4 | 4 | BINARY(4) | Number of change entries |
|
|
|
| Change entries |
|
Add or change publishing agent change entries:
| |||
| 0 | 0 | BINARY(4) | Displacement to next entry |
| 4 | 4 | BINARY(4) | Action |
| 8 | 8 | BINARY(4) | Displacement to publishing agent name |
| 12 | C | BINARY(4) | Length of publishing agent name |
| 16 | 10 | BINARY(4) | Displacement to server name |
| 20 | 14 | BINARY(4) | Length of server name |
| 24 | 18 | BINARY(4) | Displacement to bind DN |
| 28 | 1C | BINARY(4) | Length of bind DN |
| 32 | 20 | BINARY(4) | Displacement to bind credentials |
| 36 | 24 | BINARY(4) | Length of bind credentials |
| 40 | 28 | BINARY(4) | LDAP port number |
| 44 | 2C | BINARY(4) | Connection type |
| 48 | 30 | BINARY(4) | Displacement to parent distinguished name |
| 52 | 34 | BINARY(4) | Length of parent distinguished name |
| 56 | 38 | BINARY(4) | Disable publishing agent |
| 60 | 3C | BINARY(4) | Reserved |
|
|
| CHAR(*) | Publishing agent name |
|
|
| CHAR(*) | Server name |
|
|
| CHAR(*) | Bind DN |
|
|
| CHAR(*) | Bind credentials |
|
|
| CHAR(*) | Parent distinguished name |
|
Delete publishing agent change entries:
| |||
| 0 | 0 | BINARY(4) | Displacement to next entry |
| 4 | 4 | BINARY(4) | Action |
| 8 | 8 | BINARY(4) | Displacement to publishing agent name |
| 12 | C | BINARY(4) | Length of publishing agent name |
| 16 | 10 | BINARY(4) | Reserved |
|
|
| CHAR(*) | Publishing agent name |
This format is used to change referral server configuration information.
The input data consists of a header and a series of change entries.
The header identifies the master server information and the number of referral servers. This replaces the referral server information, if any, that is currently configured.
| Offset | Type | Field | |
|---|---|---|---|
| Dec | Hex | ||
| 0 | 0 | BINARY(4) | Offset to change entries |
| 4 | 4 | BINARY(4) | Number of change entries |
|
|
|
| Change entries |
|
Referral server change entries:
| |||
| 0 | 0 | BINARY(4) | Displacement to next entry |
| 4 | 4 | BINARY(4) | Displacement to referral server URL |
| 8 | 8 | BINARY(4) | Length of referral server URL |
|
|
| CHAR(*) | Referral server URL |
Action. The action to be performed for a given entry. The following values may be specified:
Note: Change is valid only for the CSVR0300 and CSVR0500 formats.
Administrator DN. A distinguished name that has access to all objects in the directory. When either the administrator DN or the administrator password field is changed, both must be specified. This field is specified in UCS-2 (CCSID 13488). To leave the value unchanged, specify a length and offset to this field of zero.
Administrator password. The password used when connecting to the directory server using the administrator DN. When either the administrator DN or the administrator password field is changed, both must be specified. This field is specified in UCS-2 (CCSID 13488). To leave the value unchanged, specify a length and offset to this field of zero.
Attribute index entries. The list of changes to be made to the attribute indexes.
Attribute name. The name of a directory object attribute for which database indexes will be created. This field is specified in UCS-2 (CCSID 13488). The following special value may be specified:
Note: The *DEFAULT attribute entry may be removed or added. Adding or removing *DEFAULT attribute is equivalent to not creating any indexes, or creating indexes for all attributes, depending on the index types specified.
Bind credentials. The password used when connecting to the directory server using the bind DN. When either the bind DN or the bind credentials field is changed, both must be specified. This field is specified in UCS-2 (CCSID 13488). To leave the value unchanged, specify a length and displacement to this field of zero.
Bind DN. A distinguished name to use when publishing objects to the directory. When either the bind DN or the bind credentials field is changed, both must be specified. This field is specified in UCS-2 (CCSID 13488). To leave the value unchanged, specify a length and displacement to this field of zero.
Change entry.
A structure identifying a change to be made. The structure identifies
the suffix, attribute, or publishing agent
and the operation to be performed (add, change,
or delete).
Change log indicator.
The indicator of whether to have a change log for entries that are added, changed or deleted.
The following values may be specified:
Connection type. The type of connection to use to the LDAP server. The following values may be specified:
Current cipher protocols. The cipher protocols that the server will allow when using encrypted connections. The following values may be specified:
Or, the sum of one or more of the following values:
Database path. The path to an existing library containing the directory database objects. This is an integrated file system path name, for example, /QSYS.LIB/DIRSRV.LIB. By changing this field, you make the current directory contents inaccessible. By changing the field back to its original value, you restore the original directory contents. This field is specified in UCS-2 (CCSID 13488). To leave the value unchanged, specify a length and offset to this field of zero.
Disable publishing agent. Indicates whether or not the publishing agent is disabled. The following values may be specified:
Displacement to attribute name. The displacement, in bytes, from the start of the current entry to the attribute name field.
Displacement to bind credentials. The displacement, in bytes, from the start of the current entry to the bind credentials field.
Displacement to bind DN. The displacement, in bytes, from the start of the current entry to the bind DN field.
Displacement to next entry. The displacement, in bytes, from the start of the current entry to the next entry in the input data.
Displacement to parent distinguished name. The displacement, in bytes, from the start of the current entry to the parent distinguished name field.
Displacement to publishing agent name.
The displacement, in bytes, from the start of the current entry to
the publishing agent name field.
Displacement to referral server URL.
The displacement, in bytes, from the start of the current entry to the
referral server URL field.
Displacement to server name. The displacement, in bytes, from the start of the current entry to the server name field.
Displacement to suffix. The displacement, in bytes, from the start of the current entry to the suffix field.
Encrypted port number. The port number to use for encrypted connections. The standard port number for encrypted connections (SSL) is 636. Valid port numbers are in the range 1 to 65535. The following special value may be specified:
Index type. The kind of database indexes that will be created for an attribute. Creating database indexes improved the performance of directory searches on those attributes. The following values may be specified:
Note: For a delete request, 0 must be specified for this field.
Key ring file. The path name of the SSL key ring file. A key ring file must be configured when using SSL.
Starting with V4R4M0, this field is ignored for format CSVR0100. This field is specified in UCS-2 (CCSID 13488). The following special value may be specified:
LDAP port number. The LDAP server's TCP/IP port. The following values may be specified:
Length of administrator DN. The length, in Unicode characters, of the administrator DN field.
Length of administrator password. The length, in Unicode characters, of the administrator password field.
Length of attribute name. The length, in Unicode characters, of the the attribute name field.
Length of bind credentials. The length, in Unicode characters, of the bind credentials field.
Length of bind DN. The length, in Unicode characters, of the bind DN field.
Length of database path. The length, in Unicode characters, of the database path field.
Length of key ring file.
The length, in Unicode characters, of the
key ring file field.
Length of master server URL.
The length, in Unicode characters, of the
master server URL field.
Length of parent distinguished name. The length, in Unicode characters, of the parent distinguished name field.
Length of publishing agent name. The length, in Unicode characters, of the publishing agent name. The length can be at most 50 Unicode characters.
Length of referral server.
The length, in Unicode characters, of the
referral server name.
Length of referral server URL.
The length, in Unicode characters, of the
referral server URL field.
Length of server name. The length, in Unicode characters, of the server name field.
Length of suffix. The length, in Unicode characters, of the the suffix field.
Length of update DN. The length, in Unicode characters, of the update DN field.
Length of update password.
The length, in Unicode characters, of the
update password field.
Level indicator.
The level indicator of the data supplied for a format.
Master server URL.
The uniform resource locator (URL) of the master server.
This field is specified in UCS-2 (CCSID 13488).
The following special value may be specified:
To leave the value unchanged, specify a length and offset to this field
of zero.
Maximum connections. The maximum number of simultaneous connections that can be established with the server. The following special values may be specified:
Maximum number of change log entries. The maximum number of change log entries that can be stored. If the maximum is reached, the change log entries will be deleted starting with the oldest entry. This value only used if 'Change log indicator' is set to 1. The following special values may be specified:
Nonencrypted port number. The port number to be used for nonencrypted connections. The standard port number is 389. Valid port numbers are in the range 1 to 65535. The following special value may be specified:
Number of change entries.
The number of change entries present in the input data.
Number of database connections.
The number of database connections used by the server.
Valid numbers are in the range 4 to 32.
The following special value may be specified:
Offset to administrator DN. The offset, in bytes, from the start of the input data area to the administrator DN field.
Offset to administrator password. The offset, in bytes, from the start of the input data area to the administrator password field.
Offset to change entry. The offset, in bytes, from the start of the input data area to the the first change entry.
Offset to database path. The offset, in bytes, from the start of the input data area to the database path field.
Offset to key ring file.
The offset, in bytes, from the start of the input data area to the
key ring file field.
Offset to master server URL.
The offset, in bytes, from the start of the input data area to the
master server URL field.
Offset to parent distinguished name. The offset, in bytes, from the start of the input data area to the parent distinguished name field.
Offset to referral server. The offset, in bytes, from the start of the input data area to the referral server field.
Offset to server name. The offset, in bytes, from the start of the input data to the server name field.
Offset to suffix. The offset, in bytes, from the start of the input data area to the suffix field.
Offset to update DN. The offset, in bytes, from the start of the input data area to the update DN field.
Offset to update password. The offset, in bytes, from the start of the input data area to the update password field.
Parent distinguished name. The parent distinguished name for published objects. For example, if the parent distinguished name is "ou=rochester, o=ibm, c=us", a published directory object for user John Smith might be "cn=john smith, ou=rochester, o=ibm, c=us". This field is specified in UCS-2 (CCSID 13488). To leave the value unchanged, specify a length and offset to this field of zero.
Password format. The format of the encrypted password. The following values may be specified:
Publishing agent name. The agent which will publish information to a directory server and parent distinguished name. This field is specified in UCS-2 (CCSID 13488).
Read only. Whether the directory server will allow updates to be made to the directory contents. The following values may be specified:
Referral port.
An optional port number to be returned to a client when a
request
is made for a directory object that does not reside on this server.
The referral port and referral server together are used to form a
referral URL.
The referral server and port fields must be configured when
changing the Server is replica field to make this server a replica.
Valid port numbers are in the range 1 to 65535.
Starting with V4R5M0, this field is ignored for format CSVR0100. Referral server information can be changed using the CSVR0600 format of the QgldChgDirSvrA API.
Referral server.
The IP name or address
of a server to return to a client when a request
is made for a directory object that does not reside on this server.
The referral port and referral server are used together to form a
referral URL.
The referral server and port fields must be configured when
changing the Server is a replica field to make this server a replica.
In this case, the referral is typically to the master server.
Starting with V4R5M0, this field is ignored for format CSVR0100.
Referral server URL. The uniform resource locator (URL) of the referral server. This field is specified in UCS-2 (CCSID 13488).
Reserved.
A reserved field. This field must be set to zero.
Schema checking level.
The level of schema checking performed by the server.
The following values may be specified:
Search size limit. The maximum number of entries that the server will return for a given search request. The following special values may be specified:
Search time limit. The maximum time, in seconds, that the server will spend performing a given search request. The following special values may be specified:
Security. Whether the server should use encrypted connections. The following values may be specified:
Server is replica. Whether the server is a master server or a replica server. When this field is changed to make the server a replica, the update DN, update password, and referral fields must be specified. The following values may be specified:
Server name.
The name of the server.
This field is specified in UCS-2 (CCSID 13488).
To leave the value unchanged, specify a length and offset to this field
of zero.
SSL authentication method.
The method used during SSL authentication.
The following values may be specified:
Suffix. The name of the directory suffix to be added or removed from the server. This field is specified in UCS-2 (CCSID 13488).
Suffix change entries.
The list of suffixes to be added or deleted.
Terminate idle connections.
The server will terminate idle connections when necessary.
The following values may be specified:
Update DN. The distinguished name that the master server must use when propagating directory updates to this replica server. This field may be specified only when the server is a replica. When either the update DN or the update password field is changed, both must be specified. This field is specified in UCS-2 (CCSID 13488). The following special value may be specified:
Update password. The password used when connecting to this server using the update DN. This field may be specified only when the server is a replica. When either the update DN or the update password field is changed, both must be specified. This field is specified in UCS-2 (CCSID 13488). To leave the value unchanged, specify a length and offset to this field of zero. The following special value may be specified:
| [Information Center Home Page | Feedback ] | [Legal | AS/400 Glossary] |