Liblinphone
5.3.0
|
Object that represents a Linphone Ldap. More...
#include <ldap.hh>
Public Types | |
enum | DebugLevel { DebugLevel::Off = 0, DebugLevel::Verbose = 1 } |
Enum Debug verbosity for OpenLdap. More... | |
enum | AuthMethod { AuthMethod::Anonymous = 0, AuthMethod::Simple = 1 } |
Enum describing how the authentification will be made. More... | |
enum | CertVerificationMode { CertVerificationMode::Default = -1, CertVerificationMode::Disabled = 0, CertVerificationMode::Enabled = 1 } |
Enum describing server certificates verification modes. More... | |
enum | Check { Check::Ok = 0, Check::ServerEmpty = 1, Check::ServerNotUrl = 2, Check::ServerNoScheme = 4, Check::ServerNotLdap = 8, Check::ServerLdaps = 16, Check::BaseObjectEmpty = 32, Check::MissingFields = 64 } |
Enum describing errors in LDAP parameters. More... | |
Public Member Functions | |
LINPHONECXX_PUBLIC | Ldap (void *ptr, bool takeRef=true) |
LINPHONECXX_PUBLIC _LinphoneLdap * | cPtr () |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::Core > | getCore () |
Get the Core object to which is associated the Ldap. More... | |
LINPHONECXX_PUBLIC int | getIndex () const |
Get the index of the Ldap. More... | |
LINPHONECXX_PUBLIC void | setIndex (int index) |
Set the index associated to the Ldap. | |
LINPHONECXX_PUBLIC std::shared_ptr< const linphone::LdapParams > | getParams () |
Get the LdapParams as read-only object. More... | |
LINPHONECXX_PUBLIC void | setParams (const std::shared_ptr< linphone::LdapParams > ¶ms) |
Set the LdapParams used by this Ldap. More... | |
Static Public Member Functions | |
static LINPHONECXX_PUBLIC std::shared_ptr< linphone::Ldap > | newWithParams (const std::shared_ptr< linphone::Core > &lc, const std::shared_ptr< linphone::LdapParams > ¶ms) |
Create a new Ldap, associate it with the LdapParams and store it into the configuration file. More... | |
Object that represents a Linphone Ldap.
Use a LdapParams object to configure it.
|
strong |
|
strong |
|
strong |
Enum describing errors in LDAP parameters.
|
strong |
LINPHONECXX_PUBLIC std::shared_ptr<linphone::Core> linphone::Ldap::getCore | ( | ) |
LINPHONECXX_PUBLIC int linphone::Ldap::getIndex | ( | ) | const |
LINPHONECXX_PUBLIC std::shared_ptr<const linphone::LdapParams> linphone::Ldap::getParams | ( | ) |
Get the LdapParams as read-only object.
To make changes, clone the returned object using LdapParams::clone() method, make your changes on it and apply them using with setParams().
|
static |
Create a new Ldap, associate it with the LdapParams and store it into the configuration file.
lc | The Core object. |
params | The LdapParams object. |
LINPHONECXX_PUBLIC void linphone::Ldap::setParams | ( | const std::shared_ptr< linphone::LdapParams > & | params | ) |
Set the LdapParams used by this Ldap.
The parameters will be saved in the configuration file.
params | The LdapParams object. |