5.18.3 GET
This command is used to GET an LDAP entry.
Syntax:
Command
|
Keyword
|
Value
|
Developer notes
|
GET
|
DN
|
entry name
|
Required. Specify the distinguished name (DN) of the entry you are looking for.
|
ATTRIBUTES
|
attribute names
|
Optional. Specify the attributes that you want returned.
|
*ALL
|
Default. If you specify *ALL, all attributes will be returned or a comma delimited list of the attribute names.
|
|
Lists and Variables
The application must supply a working list into which the GET command will return the retrieved attributes. The working list must contain either one or two fields as follows:
- The first field is mandatory and will contain the attribute name for each retrieved attribute.
Suggested field length: you will need to ensure that the field is long enough to hold the longest possible attribute name for your LDAP Server. The field length will be character.
- The second field is optional. If supplied, it will contain the attribute value for each retrieved attribute.
Suggested field length: you will need to ensure that the field is long enough to hold the longest possible attribute value for your LDAP Server. The field length will be character.
Example
GET DN(cn=John, cn=users, o=ibmteldir) ATTRIBUTES(*ALL) #WRKLST(ATNAME,ATVALUE)
GET DN(cn=John, cn=users, o=ibmteldir) ATTRIBUTES(sn, cn) #WRKLST(ATNAME,ATVALUE)