LdapParams

public class LdapParams : LinphoneObject

Object that is used to set the different parameters of a Ldap.

  • Undocumented

    Declaration

    Swift

    public static func getSwiftObject(cObject: OpaquePointer) -> LdapParams
  • Undocumented

    Declaration

    Swift

    public var getCobject: OpaquePointer? { get }
  • Get the authentification method. Check LdapAuthMethod for authentification values.

    Declaration

    Swift

    public var authMethod: LdapAuthMethod { get set }

    Return Value

    The LdapAuthMethod.

  • 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.

    Declaration

    Swift

    public var baseObject: String { get set }

    Return Value

    The specification.

  • 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

    Declaration

    Swift

    public var bindDn: String { get set }

    Return Value

    The Bind DN to use for bindings.

  • Return the debug verbosity level.

    Declaration

    Swift

    public var debugLevel: LdapDebugLevel { get set }

    Return Value

    The LdapDebugLevel debug level.

  • Get the delay between each search in milliseconds.

    Declaration

    Swift

    public var delay: Int { get set }

    Return Value

    The delay in milliseconds.

  • Return if the configuration is enabled.

    Declaration

    Swift

    public var enabled: Bool { get set }

    Return Value

    Enable or not the LDAP configuration.

  • Get the search is based on this filter to search contacts.

    Declaration

    Swift

    public var filter: String { get set }

    Return Value

    The filter to use.

  • Get the max results when requesting searches.

    Declaration

    Swift

    public var maxResults: Int { get set }

    Return Value

    The max results when requesting searches.

  • Get the minimum characters needed for doing a search on LDAP servers.

    Declaration

    Swift

    public var minChars: Int { get set }

    Return Value

    The minimum characters needed by a search.

  • Get the attributes to build Name Friend, separated by a comma and the first is the highest priority.

    Declaration

    Swift

    public var nameAttribute: String { get set }

    Return Value

    The comma separated attributes for the search.

  • Get the password to pass to server when binding.

    Declaration

    Swift

    public var password: String { get set }

    Return Value

    The password to pass to server when binding.

  • 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.

    Declaration

    Swift

    public var salEnabled: Bool { get set }

    Return Value

    Enable or not the use of sal.

  • Get the LDAP Server.

    Declaration

    Swift

    public var server: String { get set }

    Return Value

    LDAP Server address.

  • Return whether the tls server certificate must be verified when connecting to a LDAP server.

    Declaration

    Swift

    public var serverCertificatesVerificationMode: LdapCertVerificationMode { get set }

    Return Value

    The TLS verification mode from LdapCertVerificationMode

  • Get the attributes to build the SIP username in address of Friend. Attributes are separated by a comma.

    Declaration

    Swift

    public var sipAttribute: String { get set }

    Return Value

    The comma separated attributes for building Friend.

  • Get the domain to the sip address(sip:username@domain).

    Declaration

    Swift

    public var sipDomain: String { get set }

    Return Value

    The SIP domain for the friend.

  • Get the timeout in seconds.

    Declaration

    Swift

    public var timeout: Int { get set }

    Return Value

    The timeout in seconds.

  • 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.

    Declaration

    Swift

    public var tlsEnabled: Bool { get set }

    Return Value

    Enable or not the use of TLS.

  • Check parameters and return what are wrong.

    Declaration

    Swift

    public func check() -> Int

    Return Value

    The LdapCheck values. LinphoneLdapCheckOk if everything is ok.

  • Instantiate a new LdapParams with values from source.

    Declaration

    Swift

    public func clone() -> LdapParams?

    Return Value

    The newly created LdapParams object.

  • Get the value from field.

    Declaration

    Swift

    public func getCustomValue(key: String) -> String

    Parameters

    key

    The key string.

    Return Value

    The Value associated to the key.

  • Set custom field.

    Declaration

    Swift

    public func setCustomValue(key: String, value: String?)

    Parameters

    key

    The key string.

    value

    The value string.