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:

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)