Provider operations. More...
#include <libmapi/libmapi.h>
Functions | |
enum MAPISTATUS | GetNewLogonId (struct mapi_session *session, uint8_t *logon_id) |
_PUBLIC_ enum MAPISTATUS | Logoff (mapi_object_t *obj_store) |
enum MAPISTATUS | Logon (struct mapi_session *session, struct mapi_provider *provider, enum PROVIDER_ID provider_id) |
_PUBLIC_ enum MAPISTATUS | RegisterNotification (uint16_t ulEventMask) |
_PUBLIC_ enum MAPISTATUS | RfrGetFQDNFromLegacyDN (struct mapi_session *session, const char **serverFQDN) |
_PUBLIC_ char * | RfrGetNewDSA (struct mapi_session *session, const char *server, const char *userDN) |
Provider operations.
enum MAPISTATUS GetNewLogonId | ( | struct mapi_session * | session, | |
uint8_t * | logon_id | |||
) |
Retrieve a free logon identifier within the session
session | pointer to the MAPI session context | |
logon_id | pointer to the logon identifier the function returns |
References mapi_session::logon_ids, and OPENCHANGE_RETVAL_IF.
Referenced by OpenPublicFolder(), and OpenUserMailbox().
_PUBLIC_ enum MAPISTATUS Logoff | ( | mapi_object_t * | obj_store | ) |
Logoff an Exchange store
This function uninitializes the MAPI session associated to the object.
obj_store | pointer to the store object |
References DLIST_REMOVE, global_mapi_ctx, mapi_object_get_session(), mapi_object_release(), mapi_session::next, OPENCHANGE_RETVAL_IF, and mapi_ctx::session.
enum MAPISTATUS Logon | ( | struct mapi_session * | session, | |
struct mapi_provider * | provider, | |||
enum PROVIDER_ID | provider_id | |||
) |
References mapi_profile::codepage, mapi_profile::credentials, mapi_provider::ctx, emsmdb_connect(), global_mapi_ctx, mapi_profile::language, mapi_ctx::lp_ctx, mapi_profile::mailbox, mapi_profile::method, nspi_bind(), OPENCHANGE_RETVAL_ERR, OPENCHANGE_RETVAL_IF, mapi_session::profile, PROVIDER_ID_EMSMDB, PROVIDER_ID_NSPI, RfrGetNewDSA(), mapi_profile::seal, and mapi_profile::server.
Referenced by MapiLogonProvider().
_PUBLIC_ enum MAPISTATUS RegisterNotification | ( | uint16_t | ulEventMask | ) |
Initialize the notification subsystem
This function initializes the notification subsystem, binds a local UDP port to receive Exchange (server side) notifications and configures the server to send notifications on this port.
ulEventMask | the mask of events to provide notifications for. |
References mapi_provider::ctx, mapi_session::emsmdb, emsmdb_bind_notification(), emsmdb_register_notification(), global_mapi_ctx, emsmdb_context::mem_ctx, mapi_session::notify_ctx, OPENCHANGE_RETVAL_IF, and mapi_ctx::session.
_PUBLIC_ enum MAPISTATUS RfrGetFQDNFromLegacyDN | ( | struct mapi_session * | session, | |
const char ** | serverFQDN | |||
) |
Returns the FQDN of the NSPI server corresponding to a DN
session | pointer to the MAPI session context | |
serverFQDN | pointer to the server FQDN string (return value) |
References mapi_profile::credentials, global_mapi_ctx, mapi_profile::homemdb, mapi_ctx::lp_ctx, OPENCHANGE_RETVAL_IF, mapi_session::profile, RfrGetFQDNFromLegacyDN(), and mapi_profile::server.
Referenced by RfrGetFQDNFromLegacyDN().
_PUBLIC_ char* RfrGetNewDSA | ( | struct mapi_session * | session, | |
const char * | server, | |||
const char * | userDN | |||
) |
Returns the name of an NSPI server
session | pointer to the MAPI session context | |
server | the Exchange server address (IP or FQDN) | |
userDN | optional user mailbox DN |
It is up to the developer to free the returned string when not needed anymore.
References mapi_profile::credentials, global_mapi_ctx, mapi_ctx::lp_ctx, mapi_session::profile, RfrGetNewDSA(), and mapi_ctx::session.
Referenced by Logon(), and RfrGetNewDSA().
![]() ![]() ![]() |
This content is licensed under the Creative Commons Attribution ShareAlike License v. 3.0: http://creativecommons.org/licenses/by-sa/3.0/ |