ldap_msgtype()--Retrieve the Type of an LDAP Message



  Syntax
 #include <ldap.h>
 

 int ldap_msgtype(
       LDAPMessage       *msg)

  Default Public Authority: *USE

  Library Name/Service Program: QSYS/QGLDCLNT

  Threadsafe: Yes

The ldap_msgtype() API returns the type of an LDAP message.


Authorities and Locks

No IBM® i 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 Type
if the call was successful. Message types are as follows:
ZERO
if the input pointer to LDAPMessage structure is NULL.

Error Conditions

The ldap_msgtype() API returns ZERO if the input pointer to LDAPMessage structure is NULL.


Error Messages

The following message may be sent from this function.



Related Information


API introduced: V4R5

[ Back to top | LDAP APIs | APIs by category ]