Share this page

# mldap_get_attrib_name_ex

Listing Directory Functions (mldap)

Gets the name of an attribute for a specific session.

    char *mldap_get_attrib_name_ex( MLDAP *pldap, char *transaction, char *index,
    [char *param,] LAST );

pldap | A session identifier
transaction | A transaction name for this step. To instruct VuGen not to create a transaction for this step, use a NULL string, "".
index | The index of the attribute. Use the format: `Index=`attribute_number
param | The name of a parameter storing the value. Use the following format: `"Param=`name`"`
LAST | A marker indicating the end of the argument list.

The mldap_get_attrib_name_ex function retrieves the attribute name for the specified index, for the indicated session. You can optionally save this name to a parameter.

This function is for use with multiple sessions. For global or single sessions, use the mldap_get_attrib_name function, which leaves out the session identifier.

This function is not recorded. Add it if needed when enhancing your script.

## Return Values

This function returns an attribute name, or NULL if no entries are available or if there is an error.

## Parameterization

The following argument(s) can be parameterized with standard parameterization: index, paramt

## Example

In the following example, mldap_get_attrib_name_ex retrieves the name of the 14th attribute and saves it to parameter xyz.

        mldap_get_attrib_name_ex (pldap, "LDAP Get Attribute Name",
                 "Index=14",
                 "Param=XYZ",    // Save return value to parameter XYZ
                 LAST );

Tips to improve your search results... VuGen Function Reference Version 26.1 Function Reference 26.1 All View Local Help Center View Online Help Center Version: