Share this page

# mldap_get_attrib_name

Listing Directory Functions (mldap)

Gets the name of the specified attribute.

    char *mldap_get_attrib_name( char *transaction, char *index, [char *param,] LAST );

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 to store the value. Use the following format: `"Param=`name`"`
LAST | A marker indicating the end of the argument list.

The mldap_get_attrib_name function retrieves the attribute name for the specified attribute index. You can optionally save this name to a parameter.

This function is for use with global sessions. For multiple sessions, use the mldap_get_attrib_name_ex function, which allows you to specify a 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 retrieves the name of the 14th attribute and saves it to parameter xyz.

    mldap_get_attrib_name("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: