mapiproxy/servers/default/nspi/emsabp_property.c File Reference

Property Tag to AD attributes mapping. More...

Functions

_PUBLIC_ const char * emsabp_property_get_attribute (uint32_t ulPropTag)
_PUBLIC_ const char * emsabp_property_get_ref_attr (uint32_t ulPropTag)
_PUBLIC_ uint32_t emsabp_property_get_ulPropTag (const char *attribute)
_PUBLIC_ int emsabp_property_is_ref (uint32_t ulPropTag)

Variables

static struct emsabp_property emsabp_property []

Detailed Description

Property Tag to AD attributes mapping.


Function Documentation

_PUBLIC_ const char* emsabp_property_get_attribute ( uint32_t  ulPropTag)

Return the AD attribute name associated to a property tag

Parameters:
ulPropTagthe property tag to lookup
Returns:
valid pointer to the attribute name on success, otherwise NULL

Referenced by emsabp_query().

_PUBLIC_ const char* emsabp_property_get_ref_attr ( uint32_t  ulPropTag)

Returns the reference attr for a given attribute

Parameters:
ulPropTagproperty tag to lookup
Returns:
pointer to a valid reference attribute on success, otherwise NULL

Referenced by emsabp_query().

_PUBLIC_ uint32_t emsabp_property_get_ulPropTag ( const char *  attribute)

Return the property tag associated to AD attribute name

Parameters:
attributethe AD attribute name to lookup
Returns:
property tag value on success, otherwise PT_ERROR
_PUBLIC_ int emsabp_property_is_ref ( uint32_t  ulPropTag)

Returns whether the given attribute's value references another AD record

Parameters:
ulPropTagthe property tag to lookup
Returns:
1 if the attribute is a reference, 0 if not and -1 if an error occurred.

Referenced by emsabp_query().


Variable Documentation

struct emsabp_property emsabp_property[] [static]
Initial value:
 {
        { PR_ACCOUNT,                           "sAMAccountName",       false,  NULL                    },
        { PR_COMPANY_NAME,                      "company",              false,  NULL                    },
        { PR_DISPLAY_NAME,                      "displayName",          false,  NULL                    },
        { PR_EMAIL_ADDRESS,                     "legacyExchangeDN",     false,  NULL                    },
        { PR_EMS_AB_HOME_MDB,                   "homeMDB",              true,   "legacyExchangeDN"      },
        { PR_EMS_AB_PROXY_ADDRESSES,            "proxyAddresses",       false,  NULL                    },
        { PR_EMS_AB_PROXY_ADDRESSES_UNICODE,    "proxyAddresses",       false,  NULL                    },
        { PR_EMS_AB_NETWORK_ADDRESS,            "networkAddress",       false,  NULL                    },
        { PR_TITLE,                             "personalTitle",        false,  NULL                    },
        { 0,                                    NULL,                   false,  NULL                    }
}

Creative Commons License
Creative Commons Attribution icon Creative Commons Share Alike icon
This content is licensed under the Creative Commons
Attribution ShareAlike License v. 3.0:
http://creativecommons.org/licenses/by-sa/3.0/