#include <sys/time.h>
#include <ldap.h>
int ldap_result(
LDAP *ld,
int msgid,
int all,
struct timeval *timeout,
LDAPMessage **result)
|
The ldap_result() function is used to wait for and return the result of an operation previously initiated by one of the LDAP asynchronous operation functions (such as ldap_search() and ldap_modify()). Those functions return a call identifier upon successful initiation of the operation or -1 in case of error. This unique identifier can be used to request the result of a specific operation from ldap_result() through the msgid parameter.
No OS/400 authority is required. All authority checking is done by the LDAP server.
#define LDAP_RES_BIND 0x61L #define LDAP_RES_SEARCH_ENTRY 0x64L #define LDAP_RES_SEARCH_RESULT 0x65L #define LDAP_RES_MODIFY 0x67L #define LDAP_RES_ADD 0x69L #define LDAP_RES_DELETE 0x6bL #define LDAP_RES_MODRDN 0x6dL #define LDAP_RES_COMPARE 0x6fL #define LDAP_RES_SEARCH_REFERENCE 0X73L #define LDAP_RES_EXTENDED 0X78L #define LDAP_RES_ANY (-1L)
If ldap_result() is not successful, ld_errno will be set to indicate the error. See LDAP Client API Error Conditions for possible values of ld_errno field. Use ldap_get_errno() function to retrieve the error information.
The following message may be set from this function.
CPF3CF2 E Error(s) occurred during running of ldap_result API.
ldap_msgtype() -- Returns the type of an LDAP message.
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] |