ldap_msgid()--Retrieve the Message ID Associated with an LDAP Message



  Syntax
 #include <ldap.h>
 

 int ldap_msgid(
       LDAPMessage       *msg)

  Default Public Authority: *USE

  Library Name/Service Program: QSYS/QGLDCLNT

  Threadsafe: Yes

The ldap_msgid() routine returns the message ID associated with an LDAP message. Use ldap_msgid() to match the result(s) of an asynchronous operation with the original operation.


Authorities and Locks

No i5/OS authority is required.


Parameters

msg
(Input) Specifies a pointer to a result, as returned from ldap_first_message(), ldap_next_message, ldap_first_entry(), ldap_next_entry(), ldap_first_reference(), or ldap_next_reference().

Return Value

Message ID
if the call was successful.

ZERO
if the input pointer to LDAPMessage structure is NULL.

Error Conditions

ldap_msgid() returns ZERO if the input pointer to LDAPMessage structure is NULL.


Error Messages

The following message may be sent from this function.

Message ID Error Message Text
CPF3CF2 E Error(s) occurred during running of ldap_msgid API.


Related Information



API introduced: V4R5
Top | LDAP APIs | APIs by category