Required Parameter Group:
|
The List Directory Server Attributes (QgldLstDirSvrA) API retrieves a list of directory server attributes including the following:
The user space that is to receive the created list. The first 10 characters contain the user space name, and the second 10 characters contain the name of the library where the user space is located. The content and format of this space is determined by the format name. See Format of Output Data for a description of these formats.
The content and format of the data to be retrieved. The possible format names follow:
See Format of Output 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.
The user space will contain:
For details about the user area and generic header, see . For details about the remaining items, see the following sections. For detailed descriptions of the fields in the list that is returned, see Field Descriptions.
When you retrieve list entry information from the list space, do not use the entry size that is returned in the generic header. Instead, use the displacement to next entry field that is returned in each list entry. If you do not use the displacement to next entry field, the results may not be valid.
The LSVR0200 format is used to retrieve a list of the directory
suffixes present on this server.
| Offset | Type | Field | |
|---|---|---|---|
| Dec | Hex | ||
| 0 | 0 | BINARY(4) | Displacement to next entry |
| 4 | 4 | BINARY(4) | Displacement to suffix |
| 8 | 8 | BINARY(4) | Length of suffix |
| 12 | C | BINARY(4) | Reserved |
|
|
| CHAR(*) | Suffix |
The LSVR0300 format is used to retrieve information about database
indexes maintained by the server. The indexes are used to speed up
retrieval of objects when a directory server client
searches for specified object attributes.
Starting with V4R5M0, this format is not supported. Database index information is to be retrieved using an LDAP client or the Directory Management Tool (DMT) starting with V4R5M0.
| Offset | Type | Field | |
|---|---|---|---|
| Dec | Hex | ||
| 0 | 0 | BINARY(4) | Displacement to next entry |
| 4 | 4 | BINARY(4) | Displacement to attribute name |
| 8 | 8 | BINARY(4) | Length of attribute name |
| 12 | C | BINARY(4) | Index type |
| 16 | 10 | BINARY(4) | Reserved |
|
|
| CHAR(*) | Attribute name |
The LSVR0500 format is used to retrieve the network server publishing
attributes associated with the server.
| Offset | Type | Field | |
|---|---|---|---|
| Dec | Hex | ||
| 0 | 0 | BINARY(4) | Displacement to next entry |
| 16 | 10 | 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) | LDAP port number |
| 36 | 24 | BINARY(4) | Connection type |
| 40 | 28 | BINARY(4) | Displacement to parent distinguished name |
| 44 | 2C | BINARY(4) | Length of parent distinguished name |
| 48 | 30 | BINARY(4) | Publishing agent disabled |
| 52 | 34 | BINARY(4) | Reserved |
|
|
| CHAR(*) | Publishing agent name |
|
|
| CHAR(*) | Server name |
|
|
| CHAR(*) | Bind DN |
|
|
| CHAR(*) | Parent distinguished name |
The LSVR0600 format is used to retrieve a list of referral servers.
| Offset | Type | Field | |
|---|---|---|---|
| Dec | Hex | ||
| 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. |
| 12 | C | BINARY(4) | Reserved |
|
|
| CHAR(*) | Referral server URL. |
Attribute name. The name of a directory object attribute for which database indexes will be maintained. This field is specified in UCS-2 (CCSID 13488). The following special value may also be returned:
Bind DN. A distinguished name to use when publishing objects to the directory. This field is specified in UCS-2 (CCSID 13488).
Connection type. The type of connection to use to the LDAP server. The following values may be returned:
Displacement to attribute name. The displacement, in bytes, from the start of the current entry to the attribute name 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.
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.
Format name specified. The format name specified on the call to this API.
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 returned:
LDAP port number. The LDAP server's TCP/IP port.
Length of attribute name. The length, in Unicode characters, of the attribute name field.
Length of bind DN. The length, in Unicode characters, of the bind DN 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 field.
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 suffix field.
Length of update DN. The length, in Unicode characters, of the update DN field.
Parent distinguished name. The parent distinguished name to be used. This field is specified in UCS-2 (CCSID 13488).
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).
Publishing agent disabled. Indicates whether or not the publishing agent is disabled. The configuration data still exists, but publishing has been disabled for the publishing agent. The following values may be returned:
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.
Server name. The name of the server. This field is specified in UCS-2 (CCSID 13488).
Suffix. The directory name for the starting point of a directory information tree. This field is specified in UCS-2 (CCSID 13488).
|
Top
| LDAP APIs List APIs by category |
| [Information Center Home Page | Feedback ] | [Legal | AS/400 Glossary] |