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




Syntax

#include <ldap.h>
 

int ldap_msgtype(
       LDAPMessage       *msg)




Threadsafe: Yes

The ldap_msgtype() routine returns the type of LDAP message, based on the LDAP message passed as input (via the msg parameter).

Authorities and Locks

No OS/400 authority is required. All authority checking is done by the LDAP server.

Parameters

msg
(Input) Specifies a pointer to a result, as returned from ldap_result(),ldap_search_s(), ldap_search_st() or ldap_search_ext().

Return Value

Message ID
if the call was successful.
ZERO
if the input pointer to LDAPMessage structure is NULL.

Error Conditions

ldap_msgtype() return ZERO if the input pointer to LDAPMessage structure is NULL.

Error Messages

    The following message may be set from this function.
    CPF3CF2 E  Error(s) occurred during running of ldap_msgtype API.

Related Information

    ldap_result() -- Wait for result from an asynchronous operation.
    ldap_msgid() -- Returns the ID of an LDAP message.


Top | LDAP APIs List
APIs by category

[Information Center Home Page | Feedback ] [Legal | AS/400 Glossary]