Liblinphone
5.3.0
|
Typedefs | |
typedef struct _LinphoneLdap | LinphoneLdap |
Object that represents a Linphone Ldap. More... | |
typedef struct _LinphoneLdapParams | LinphoneLdapParams |
Object that is used to set the different parameters of a LinphoneLdap. | |
typedef enum _LinphoneLdapDebugLevel | LinphoneLdapDebugLevel |
Enum Debug verbosity for OpenLdap. | |
typedef enum _LinphoneLdapAuthMethod | LinphoneLdapAuthMethod |
Enum describing how the authentification will be made. | |
typedef enum _LinphoneLdapCertVerificationMode | LinphoneLdapCertVerificationMode |
Enum describing server certificates verification modes. | |
typedef enum _LinphoneLdapCheck | LinphoneLdapCheck |
Enum describing errors in LDAP parameters. | |
Enumerations | |
enum | _LinphoneLdapDebugLevel { LinphoneLdapDebugLevelOff = 0, LinphoneLdapDebugLevelVerbose = 1 } |
Enum Debug verbosity for OpenLdap. More... | |
enum | _LinphoneLdapAuthMethod { LinphoneLdapAuthMethodAnonymous = 0, LinphoneLdapAuthMethodSimple = 1 } |
Enum describing how the authentification will be made. More... | |
enum | _LinphoneLdapCertVerificationMode { LinphoneLdapCertVerificationDefault = -1, LinphoneLdapCertVerificationDisabled = 0, LinphoneLdapCertVerificationEnabled = 1 } |
Enum describing server certificates verification modes. More... | |
enum | _LinphoneLdapCheck { LinphoneLdapCheckOk = 0, LinphoneLdapCheckServerEmpty = 1, LinphoneLdapCheckServerNotUrl = 2, LinphoneLdapCheckServerNoScheme = 4, LinphoneLdapCheckServerNotLdap = 8, LinphoneLdapCheckServerLdaps, LinphoneLdapCheckBaseObjectEmpty = 32, LinphoneLdapCheckMissingFields = 64 } |
Enum describing errors in LDAP parameters. More... | |
Functions | |
LinphoneLdapParams * | linphone_core_create_ldap_params (LinphoneCore *core) |
Create a LDAP params using default values from Linphone core. More... | |
LinphoneLdap * | linphone_core_create_ldap (LinphoneCore *core) |
Create an empty LDAP search. More... | |
LinphoneLdap * | linphone_core_create_ldap_with_params (LinphoneCore *core, LinphoneLdapParams *params) |
Create a LDAP search using given parameters and store them in the configuration file. More... | |
void | linphone_core_clear_ldaps (LinphoneCore *core) |
Erase all LDAP from the configuration. More... | |
void | linphone_core_add_ldap (LinphoneCore *core, LinphoneLdap *ldap) |
Add or update a LDAP server and save it to the configuration. More... | |
void | linphone_core_remove_ldap (LinphoneCore *core, LinphoneLdap *ldap) |
Remove a LDAP from the configuration. More... | |
bctbx_list_t * | linphone_core_get_ldap_list (LinphoneCore *core) |
Returns a list of entered LDAPs. More... | |
bool_t | linphone_core_get_chat_messages_aggregation_enabled (LinphoneCore *core) |
Returns whether chat messages grouping is enabled or not. More... | |
void | linphone_core_set_chat_messages_aggregation_enabled (LinphoneCore *core, bool_t enabled) |
Sets whether chat messages grouping is enabled or not. More... | |
LinphoneStatus | linphone_core_config_sync (LinphoneCore *core) |
Writes the config file to disk. More... | |
const LinphonePushNotificationConfig * | linphone_core_get_push_notification_config (const LinphoneCore *core) |
Gets the push notification configuration object if it exists. More... | |
const bctbx_list_t * | linphone_core_get_loaded_plugins (LinphoneCore *core) |
Return the list of loaded plugins. More... | |
bool_t | linphone_core_is_plugin_loaded (const LinphoneCore *core, const char *name) |
Tells whether a plugin is loaded or not. More... | |
MS2_DEPRECATED int | linphone_core_get_conference_size (LinphoneCore *core) |
Get the number of participants including me, if it in, in the running conference. More... | |
MS2_DEPRECATED LinphoneConference * | linphone_core_get_conference (LinphoneCore *core) |
Get a pointer on the internal conference object. More... | |
LinphoneLdap * | linphone_ldap_new (LinphoneCore *lc) |
Create a new LinphoneLdap. More... | |
LinphoneLdap * | linphone_ldap_new_with_params (LinphoneCore *lc, LinphoneLdapParams *params) |
Create a new LinphoneLdap, associate it with the LinphoneLdapParams and store it into the configuration file. More... | |
LinphoneLdap * | linphone_ldap_ref (LinphoneLdap *ldap) |
Take a reference on a LinphoneLdap. More... | |
void | linphone_ldap_unref (LinphoneLdap *ldap) |
Release a LinphoneLdap. More... | |
void | linphone_ldap_set_params (LinphoneLdap *ldap, LinphoneLdapParams *params) |
Set the LinphoneLdapParams used by this LinphoneLdap. More... | |
const LinphoneLdapParams * | linphone_ldap_get_params (LinphoneLdap *ldap) |
Get the LinphoneLdapParams as read-only object. More... | |
LinphoneCore * | linphone_ldap_get_core (LinphoneLdap *ldap) |
Get the LinphoneCore object to which is associated the LinphoneLdap. More... | |
void | linphone_ldap_set_index (LinphoneLdap *ldap, int index) |
Set the index associated to the LinphoneLdap. More... | |
int | linphone_ldap_get_index (const LinphoneLdap *ldap) |
Get the index of the LinphoneLdap. More... | |
LinphoneLdapParams * | linphone_ldap_params_new (LinphoneCore *lc) |
Create a new LinphoneLdapParams object. More... | |
LinphoneLdapParams * | linphone_ldap_params_clone (const LinphoneLdapParams *params) |
Instantiate a new LinphoneLdapParams with values from source. More... | |
LinphoneLdapParams * | linphone_ldap_params_ref (LinphoneLdapParams *params) |
Take a reference on a LinphoneLdapParams. More... | |
void | linphone_ldap_params_unref (LinphoneLdapParams *params) |
Release a LinphoneLdapParams. More... | |
void | linphone_ldap_params_set_custom_value (LinphoneLdapParams *params, const char *key, const char *value) |
Set custom field. More... | |
const char * | linphone_ldap_params_get_custom_value (const LinphoneLdapParams *params, const char *key) |
Get the value from field. More... | |
void | linphone_ldap_params_set_server (LinphoneLdapParams *params, const char *server) |
LDAP Server. More... | |
const char * | linphone_ldap_params_get_server (const LinphoneLdapParams *params) |
Get the LDAP Server. More... | |
void | linphone_ldap_params_set_bind_dn (LinphoneLdapParams *params, const char *bind_dn) |
Bind DN to use for bindings. More... | |
const char * | linphone_ldap_params_get_bind_dn (const LinphoneLdapParams *params) |
Get the Bind DN to use for bindings. More... | |
void | linphone_ldap_params_set_base_object (LinphoneLdapParams *params, const char *base_object) |
BaseObject is a specification for LDAP Search Scopes that specifies that the Search Request should only be performed against the entry specified as the search base DN. More... | |
const char * | linphone_ldap_params_get_base_object (const LinphoneLdapParams *params) |
Get the BaseObject. More... | |
void | linphone_ldap_params_set_timeout (LinphoneLdapParams *params, int timeout) |
Timeout for requests in seconds. More... | |
int | linphone_ldap_params_get_timeout (const LinphoneLdapParams *params) |
Get the timeout for requests in seconds. More... | |
void | linphone_ldap_params_set_timeout_tls_ms (LinphoneLdapParams *params, int timeout) |
Timeout for TLS connection in milliseconds. More... | |
int | linphone_ldap_params_get_timeout_tls_ms (const LinphoneLdapParams *params) |
Get the timeout for TLS connection in milliseconds. More... | |
void | linphone_ldap_params_set_max_results (LinphoneLdapParams *params, int max_results) |
The max results when requesting searches. More... | |
int | linphone_ldap_params_get_max_results (const LinphoneLdapParams *params) |
Get the max results when requesting searches. More... | |
void | linphone_ldap_params_set_min_chars (LinphoneLdapParams *params, int min_chars) |
The minimum characters needed for doing a search on LDAP servers. More... | |
int | linphone_ldap_params_get_min_chars (const LinphoneLdapParams *params) |
Get the minimum characters needed for doing a search on LDAP servers. More... | |
void | linphone_ldap_params_set_delay (LinphoneLdapParams *params, int delay) |
Delay between each search in milliseconds Default value : 500. More... | |
int | linphone_ldap_params_get_delay (const LinphoneLdapParams *params) |
Get the delay between each search in milliseconds. More... | |
void | linphone_ldap_params_set_auth_method (LinphoneLdapParams *params, LinphoneLdapAuthMethod auth_method) |
Authentification method. More... | |
LinphoneLdapAuthMethod | linphone_ldap_params_get_auth_method (const LinphoneLdapParams *params) |
Get the authentification method. More... | |
void | linphone_ldap_params_set_password (LinphoneLdapParams *params, const char *password) |
The password to pass to server when binding. More... | |
const char * | linphone_ldap_params_get_password (const LinphoneLdapParams *params) |
Get the password to pass to server when binding. More... | |
void | linphone_ldap_params_set_filter (LinphoneLdapParams *params, const char *filter) |
The search is based on this filter to search contacts. More... | |
const char * | linphone_ldap_params_get_filter (const LinphoneLdapParams *params) |
Get the search is based on this filter to search contacts. More... | |
void | linphone_ldap_params_set_name_attribute (LinphoneLdapParams *params, const char *name_attribute) |
Check these attributes to build Name Friend, separated by a comma and the first is the highest priority. More... | |
const char * | linphone_ldap_params_get_name_attribute (const LinphoneLdapParams *params) |
Get the attributes to build Name Friend, separated by a comma and the first is the highest priority. More... | |
void | linphone_ldap_params_set_sip_attribute (LinphoneLdapParams *params, const char *sip_attribute) |
Check these attributes to build the SIP username in address of Friend. More... | |
const char * | linphone_ldap_params_get_sip_attribute (const LinphoneLdapParams *params) |
Get the attributes to build the SIP username in address of Friend. More... | |
void | linphone_ldap_params_set_sip_domain (LinphoneLdapParams *params, const char *sip_domain) |
Add the domain to the sip address(sip:username). More... | |
const char * | linphone_ldap_params_get_sip_domain (const LinphoneLdapParams *param) |
Get the domain to the sip address(sip:username). More... | |
void | linphone_ldap_params_set_enabled (LinphoneLdapParams *params, bool_t enable) |
If this config is enabled. More... | |
bool_t | linphone_ldap_params_get_enabled (const LinphoneLdapParams *params) |
Return if the configuration is enabled. More... | |
void | linphone_ldap_params_enable_sal (LinphoneLdapParams *params, bool_t enable) |
The dns resolution is done by Linphone using Sal. More... | |
bool_t | linphone_ldap_params_sal_enabled (const LinphoneLdapParams *params) |
Return if the dns resolution is done by Linphone using Sal. More... | |
void | linphone_ldap_params_enable_tls (LinphoneLdapParams *params, bool_t enable) |
Encrypt transactions by LDAP over TLS(StartTLS). More... | |
bool_t | linphone_ldap_params_tls_enabled (const LinphoneLdapParams *params) |
Return if transactions are encrypted by LDAP over TLS(StartTLS). More... | |
void | linphone_ldap_params_set_debug_level (LinphoneLdapParams *params, LinphoneLdapDebugLevel level) |
The debug verbosity level from internal LDAP API. More... | |
LinphoneLdapDebugLevel | linphone_ldap_params_get_debug_level (const LinphoneLdapParams *params) |
Return the debug verbosity level. More... | |
void | linphone_ldap_params_set_server_certificates_verification_mode (LinphoneLdapParams *params, LinphoneLdapCertVerificationMode verify_server_certificates) |
Specify whether the tls server certificate must be verified when connecting to a LDAP server. More... | |
LinphoneLdapCertVerificationMode | linphone_ldap_params_get_server_certificates_verification_mode (const LinphoneLdapParams *params) |
Return whether the tls server certificate must be verified when connecting to a LDAP server. More... | |
int | linphone_ldap_params_check (const LinphoneLdapParams *params) |
Check parameters and return what are wrong. More... | |
typedef struct _LinphoneLdap LinphoneLdap |
Object that represents a Linphone Ldap.
Use a LinphoneLdapParams object to configure it.
enum _LinphoneLdapCheck |
Enum describing errors in LDAP parameters.
void linphone_core_add_ldap | ( | LinphoneCore * | core, |
LinphoneLdap * | ldap | ||
) |
Add or update a LDAP server and save it to the configuration.
core | LinphoneCore object |
ldap | The LDAP to add/update. |
void linphone_core_clear_ldaps | ( | LinphoneCore * | core | ) |
Erase all LDAP from the configuration.
core | LinphoneCore object |
LinphoneStatus linphone_core_config_sync | ( | LinphoneCore * | core | ) |
Writes the config file to disk.
core | The LinphoneCore object |
LinphoneLdap* linphone_core_create_ldap | ( | LinphoneCore * | core | ) |
Create an empty LDAP search.
linphone_ldap_set_params() must be call to save the parameters in the configuration file.
core | LinphoneCore object |
params | LinphoneLdapParams object |
LinphoneLdapParams* linphone_core_create_ldap_params | ( | LinphoneCore * | core | ) |
Create a LDAP params using default values from Linphone core.
Check #linphone_ldap_params to update values. In order to add a new LDAP configuration to Magic search, these parameters must be passed to linphone_core_create_ldap_with_params. Or, use linphone_ldap_set_params().
The newly created LDAP from linphone_core_create_ldap().
core | LinphoneCore object |
LinphoneLdap* linphone_core_create_ldap_with_params | ( | LinphoneCore * | core, |
LinphoneLdapParams * | params | ||
) |
Create a LDAP search using given parameters and store them in the configuration file.
core | LinphoneCore object |
params | LinphoneLdapParams object |
bool_t linphone_core_get_chat_messages_aggregation_enabled | ( | LinphoneCore * | core | ) |
Returns whether chat messages grouping is enabled or not.
core | The LinphoneCore object |
MS2_DEPRECATED LinphoneConference* linphone_core_get_conference | ( | LinphoneCore * | core | ) |
Get a pointer on the internal conference object.
core | LinphoneCore |
MS2_DEPRECATED int linphone_core_get_conference_size | ( | LinphoneCore * | core | ) |
Get the number of participants including me, if it in, in the running conference.
The local participant is included in the count only if it is in the conference.
core | LinphoneCore |
bctbx_list_t* linphone_core_get_ldap_list | ( | LinphoneCore * | core | ) |
Returns a list of entered LDAPs.
Items must be freed with linphone_ldap_unref()
core | The LinphoneCore object |
const bctbx_list_t* linphone_core_get_loaded_plugins | ( | LinphoneCore * | core | ) |
Return the list of loaded plugins.
core | A LinphoneCore object |
const LinphonePushNotificationConfig* linphone_core_get_push_notification_config | ( | const LinphoneCore * | core | ) |
Gets the push notification configuration object if it exists.
core | The LinphoneCore object |
bool_t linphone_core_is_plugin_loaded | ( | const LinphoneCore * | core, |
const char * | name | ||
) |
Tells whether a plugin is loaded or not.
core | A LinphoneCore object |
name | name of the plugin |
void linphone_core_remove_ldap | ( | LinphoneCore * | core, |
LinphoneLdap * | ldap | ||
) |
Remove a LDAP from the configuration.
core | LinphoneCore object |
ldap | The LDAP to remove. |
void linphone_core_set_chat_messages_aggregation_enabled | ( | LinphoneCore * | core, |
bool_t | enabled | ||
) |
Sets whether chat messages grouping is enabled or not.
Set [sip] chat_messages_aggregation in your configuration file for the timer, default is 500ms.
core | The LinphoneCore object |
enabled | TRUE to wait for chat messages and notify them as at once, FALSE to keep legacy behavior. |
LinphoneCore* linphone_ldap_get_core | ( | LinphoneLdap * | ldap | ) |
Get the LinphoneCore object to which is associated the LinphoneLdap.
ldap | The LinphoneLdap object. |
int linphone_ldap_get_index | ( | const LinphoneLdap * | ldap | ) |
Get the index of the LinphoneLdap.
ldap | The LinphoneLdap object. |
const LinphoneLdapParams* linphone_ldap_get_params | ( | LinphoneLdap * | ldap | ) |
Get the LinphoneLdapParams as read-only object.
To make changes, clone the returned object using linphone_ldap_params_clone() method, make your changes on it and apply them using with linphone_ldap_set_params().
ldap | The LinphoneLdap object. |
LinphoneLdap* linphone_ldap_new | ( | LinphoneCore * | lc | ) |
Create a new LinphoneLdap.
Call * linphone_ldap_set_params() to store the new LDAP configuration.
lc | The LinphoneCore object. |
LinphoneLdap* linphone_ldap_new_with_params | ( | LinphoneCore * | lc, |
LinphoneLdapParams * | params | ||
) |
Create a new LinphoneLdap, associate it with the LinphoneLdapParams and store it into the configuration file.
lc | The LinphoneCore object. |
params | The LinphoneLdapParams object. |
int linphone_ldap_params_check | ( | const LinphoneLdapParams * | params | ) |
Check parameters and return what are wrong.
params | The LinphoneLdapParams object. |
LinphoneLdapParams* linphone_ldap_params_clone | ( | const LinphoneLdapParams * | params | ) |
Instantiate a new LinphoneLdapParams with values from source.
params | The LinphoneLdapParams object to be cloned. |
void linphone_ldap_params_enable_sal | ( | LinphoneLdapParams * | params, |
bool_t | enable | ||
) |
The dns resolution is done by Linphone using Sal.
It will pass an IP to LDAP. By doing that, the TLS negociation could not check the hostname. You may deactivate the verifications if wanted to force the connection. Default value : FALSE.
params | The LinphoneLdapParams object. |
enable | Enable or not the use of sal. |
void linphone_ldap_params_enable_tls | ( | LinphoneLdapParams * | params, |
bool_t | enable | ||
) |
Encrypt transactions by LDAP over TLS(StartTLS).
You must use 'ldap' scheme. 'ldaps' for LDAP over SSL is non-standardized and deprecated. StartTLS in an extension to the LDAP protocol which uses the TLS protocol to encrypt communication. It works by establishing a normal - i.e. unsecured - connection with the LDAP server before a handshake negotiation between the server and the web services is carried out. Here, the server sends its certificate to prove its identity before the secure connection is established. Default value : TRUE.
params | The LinphoneLdapParams object. |
enable | Enable or not the use of TLS. |
LinphoneLdapAuthMethod linphone_ldap_params_get_auth_method | ( | const LinphoneLdapParams * | params | ) |
Get the authentification method.
Check LinphoneLdapAuthMethod for authentification values.
params | The LinphoneLdapParams object. |
const char* linphone_ldap_params_get_base_object | ( | const LinphoneLdapParams * | params | ) |
Get the BaseObject.
It is a specification for LDAP Search Scopes that specifies that the Search Request should only be performed against the entry specified as the search base DN. No entries above it will be considered. This field is required.
params | The LinphoneLdapParams object. |
const char* linphone_ldap_params_get_bind_dn | ( | const LinphoneLdapParams * | params | ) |
Get the Bind DN to use for bindings.
The bindDN DN is the credential that is used to authenticate against an LDAP. If empty, the connection will be Anonymous. eg: cn=ausername,ou=people,dc=bc,dc=com
params | The LinphoneLdapParams object. |
const char* linphone_ldap_params_get_custom_value | ( | const LinphoneLdapParams * | params, |
const char * | key | ||
) |
Get the value from field.
params | The LinphoneLdapParams object. |
key | The key string. |
LinphoneLdapDebugLevel linphone_ldap_params_get_debug_level | ( | const LinphoneLdapParams * | params | ) |
Return the debug verbosity level.
params | The LinphoneLdapParams object. |
int linphone_ldap_params_get_delay | ( | const LinphoneLdapParams * | params | ) |
Get the delay between each search in milliseconds.
params | The LinphoneLdapParams object. |
bool_t linphone_ldap_params_get_enabled | ( | const LinphoneLdapParams * | params | ) |
Return if the configuration is enabled.
params | The LinphoneLdapParams object. |
const char* linphone_ldap_params_get_filter | ( | const LinphoneLdapParams * | params | ) |
Get the search is based on this filter to search contacts.
params | The LinphoneLdapParams object. |
int linphone_ldap_params_get_max_results | ( | const LinphoneLdapParams * | params | ) |
Get the max results when requesting searches.
params | The LinphoneLdapParams object. |
int linphone_ldap_params_get_min_chars | ( | const LinphoneLdapParams * | params | ) |
Get the minimum characters needed for doing a search on LDAP servers.
params | The LinphoneLdapParams object. |
const char* linphone_ldap_params_get_name_attribute | ( | const LinphoneLdapParams * | params | ) |
Get the attributes to build Name Friend, separated by a comma and the first is the highest priority.
params | The LinphoneLdapParams object. |
const char* linphone_ldap_params_get_password | ( | const LinphoneLdapParams * | params | ) |
Get the password to pass to server when binding.
params | The LinphoneLdapParams object. |
const char* linphone_ldap_params_get_server | ( | const LinphoneLdapParams * | params | ) |
LinphoneLdapCertVerificationMode linphone_ldap_params_get_server_certificates_verification_mode | ( | const LinphoneLdapParams * | params | ) |
Return whether the tls server certificate must be verified when connecting to a LDAP server.
params | The LinphoneLdapParams object. |
const char* linphone_ldap_params_get_sip_attribute | ( | const LinphoneLdapParams * | params | ) |
Get the attributes to build the SIP username in address of Friend.
Attributes are separated by a comma.
params | The LinphoneLdapParams object. |
const char* linphone_ldap_params_get_sip_domain | ( | const LinphoneLdapParams * | param | ) |
Get the domain to the sip address(sip:username).
params | The LinphoneLdapParams object. |
int linphone_ldap_params_get_timeout | ( | const LinphoneLdapParams * | params | ) |
Get the timeout for requests in seconds.
params | The LinphoneLdapParams object. |
int linphone_ldap_params_get_timeout_tls_ms | ( | const LinphoneLdapParams * | params | ) |
Get the timeout for TLS connection in milliseconds.
params | The LinphoneLdapParams object. |
LinphoneLdapParams* linphone_ldap_params_new | ( | LinphoneCore * | lc | ) |
Create a new LinphoneLdapParams object.
lc | The LinphoneCore object. |
LinphoneLdapParams* linphone_ldap_params_ref | ( | LinphoneLdapParams * | params | ) |
Take a reference on a LinphoneLdapParams.
params | The LinphoneLdapParams object. |
bool_t linphone_ldap_params_sal_enabled | ( | const LinphoneLdapParams * | params | ) |
Return if the dns resolution is done by Linphone using Sal.
It will pass an IP to LDAP. By doing that, the TLS negociation could not check the hostname. You may deactivate the verifications if wanted to force the connection.
params | The LinphoneLdapParams object. |
void linphone_ldap_params_set_auth_method | ( | LinphoneLdapParams * | params, |
LinphoneLdapAuthMethod | auth_method | ||
) |
Authentification method.
Check LinphoneLdapAuthMethod for authentification values. Default value : LinphoneLdapAuthMethodSimple
params | The LinphoneLdapParams object. |
auth_method | The LinphoneLdapAuthMethod. |
void linphone_ldap_params_set_base_object | ( | LinphoneLdapParams * | params, |
const char * | base_object | ||
) |
BaseObject is a specification for LDAP Search Scopes that specifies that the Search Request should only be performed against the entry specified as the search base DN.
No entries above it will be considered. This field is required. Default value : "dc=example,dc=com"
params | The LinphoneLdapParams object. |
base_object | The specification. |
void linphone_ldap_params_set_bind_dn | ( | LinphoneLdapParams * | params, |
const char * | bind_dn | ||
) |
Bind DN to use for bindings.
The bindDN DN is the credential that is used to authenticate against an LDAP. If empty, the connection will be Anonymous. eg: cn=ausername,ou=people,dc=bc,dc=com Default value : "".
params | The LinphoneLdapParams object. |
bind_dn | The Bind DN to use for bindings. |
void linphone_ldap_params_set_custom_value | ( | LinphoneLdapParams * | params, |
const char * | key, | ||
const char * | value | ||
) |
Set custom field.
params | The LinphoneLdapParams object. |
key | The key string. |
value | The value string. |
void linphone_ldap_params_set_debug_level | ( | LinphoneLdapParams * | params, |
LinphoneLdapDebugLevel | level | ||
) |
The debug verbosity level from internal LDAP API.
Values are LinphoneLdapDebugLevel Default value: LinphoneLdapDebugLevelOff
params | The LinphoneLdapParams object. |
level | The LinphoneLdapDebugLevel debug level. |
void linphone_ldap_params_set_delay | ( | LinphoneLdapParams * | params, |
int | delay | ||
) |
Delay between each search in milliseconds Default value : 500.
params | The LinphoneLdapParams object. |
delay | The timeout in milliseconds. |
void linphone_ldap_params_set_enabled | ( | LinphoneLdapParams * | params, |
bool_t | enable | ||
) |
If this config is enabled.
Default value : FALSE.
params | The LinphoneLdapParams object. |
enable | Enable or not the LDAP configuration. |
void linphone_ldap_params_set_filter | ( | LinphoneLdapParams * | params, |
const char * | filter | ||
) |
The search is based on this filter to search contacts.
Default value : "(sn=*%s*)".
params | The LinphoneLdapParams object. |
filter | The filter to use. |
void linphone_ldap_params_set_max_results | ( | LinphoneLdapParams * | params, |
int | max_results | ||
) |
The max results when requesting searches.
Default value : 5. This value fit for standard cases where only first results are needed. Also, it avoids latency on each searchs.
params | The LinphoneLdapParams object. |
max_results | The max results when requesting searches. |
void linphone_ldap_params_set_min_chars | ( | LinphoneLdapParams * | params, |
int | min_chars | ||
) |
The minimum characters needed for doing a search on LDAP servers.
Default value : 0.
params | The LinphoneLdapParams object. |
min_chars | The minimum characters needed by a search. |
void linphone_ldap_params_set_name_attribute | ( | LinphoneLdapParams * | params, |
const char * | name_attribute | ||
) |
Check these attributes to build Name Friend, separated by a comma and the first is the highest priority.
Default value : "sn".
params | The LinphoneLdapParams object. |
name_attribute | The comma separated attributes for the search. |
void linphone_ldap_params_set_password | ( | LinphoneLdapParams * | params, |
const char * | password | ||
) |
The password to pass to server when binding.
Default value : "".
params | The LinphoneLdapParams object. |
password | The password to pass to server when binding. |
void linphone_ldap_params_set_server | ( | LinphoneLdapParams * | params, |
const char * | server | ||
) |
LDAP Server.
eg: ldap:/// for a localhost server or ldap://ldap.example.org/ Default value: "ldap:///". This field is required.
You must use 'ldap' scheme. 'ldaps' for LDAP over SSL is non-standardized and deprecated.
params | The LinphoneLdapParams object. |
server | LDAP Server address. |
void linphone_ldap_params_set_server_certificates_verification_mode | ( | LinphoneLdapParams * | params, |
LinphoneLdapCertVerificationMode | verify_server_certificates | ||
) |
Specify whether the tls server certificate must be verified when connecting to a LDAP server.
Values are LinphoneLdapCertVerificationMode Default value : LinphoneLdapCertVerificationDefault (auto)
params | The LinphoneLdapParams object. |
verify_server_certificates | The TLS verification mode from LinphoneLdapCertVerificationMode |
void linphone_ldap_params_set_sip_attribute | ( | LinphoneLdapParams * | params, |
const char * | sip_attribute | ||
) |
Check these attributes to build the SIP username in address of Friend.
Attributes are separated by a comma. Default value : "mobile,telephoneNumber,homePhone,sn".
params | The LinphoneLdapParams object. |
sip_attribute | The comma separated attributes for building Friend. |
void linphone_ldap_params_set_sip_domain | ( | LinphoneLdapParams * | params, |
const char * | sip_domain | ||
) |
Add the domain to the sip address(sip:username).
By default or if it is empty, the domain will be specify while searching on the current proxy account. Default value : "".
params | The LinphoneLdapParams object. |
sip_domain | The SIP domain for the friend. |
void linphone_ldap_params_set_timeout | ( | LinphoneLdapParams * | params, |
int | timeout | ||
) |
Timeout for requests in seconds.
It limits the time for searchs and the value is passed to Ldap with LDAP_OPT_NETWORK_TIMEOUT
. Default value : 5.
params | The LinphoneLdapParams object. |
timeout | The timeout in seconds. |
void linphone_ldap_params_set_timeout_tls_ms | ( | LinphoneLdapParams * | params, |
int | timeout | ||
) |
Timeout for TLS connection in milliseconds.
Default value : 1000.
params | The LinphoneLdapParams object. |
timeout | The timeout in milliseconds. |
bool_t linphone_ldap_params_tls_enabled | ( | const LinphoneLdapParams * | params | ) |
Return if transactions are encrypted by LDAP over TLS(StartTLS).
You must use \'ldap\' scheme. \'ldaps\' for LDAP over SSL is non-standardized and deprecated. StartTLS in an extension to the LDAP protocol which uses the TLS protocol to encrypt communication. It works by establishing a normal - i.e. unsecured - connection with the LDAP server before a handshake negotiation between the server and the web services is carried out. Here, the server sends its certificate to prove its identity before the secure connection is established.
params | The LinphoneLdapParams object. |
void linphone_ldap_params_unref | ( | LinphoneLdapParams * | params | ) |
Release a LinphoneLdapParams.
params | The LinphoneLdapParams object. |
LinphoneLdap* linphone_ldap_ref | ( | LinphoneLdap * | ldap | ) |
Take a reference on a LinphoneLdap.
ldap | The LinphoneLdap object. |
void linphone_ldap_set_index | ( | LinphoneLdap * | ldap, |
int | index | ||
) |
Set the index associated to the LinphoneLdap.
ldap | The LinphoneLdap object. |
The | index of the Ldap. Can be -1 : it will be determined on save. |
void linphone_ldap_set_params | ( | LinphoneLdap * | ldap, |
LinphoneLdapParams * | params | ||
) |
Set the LinphoneLdapParams used by this LinphoneLdap.
The parameters will be saved in the configuration file.
ldap | The LinphoneLdap object. |
params | The LinphoneLdapParams object. |
void linphone_ldap_unref | ( | LinphoneLdap * | ldap | ) |
Release a LinphoneLdap.
ldap | The LinphoneLdap object. |