KLDAPCore::LdapServer
#include <ldapserver.h>
Public Types | |
using | Auth |
using | Security |
using | TLSRequireCertificate |
Detailed Description
A class that contains LDAP server connection settings.
This class holds various parameters that are needed to connect to an LDAP server.
Definition at line 26 of file ldapserver.h.
Member Typedef Documentation
◆ Auth
Describes the authentication method that can be used for the LDAP connection.
Definition at line 71 of file ldapserver.h.
◆ Security
Describes the encryption settings that can be used for the LDAP connection.
Definition at line 61 of file ldapserver.h.
◆ TLSRequireCertificate
Describes the certificate request and check behaviour for TLS/SSL connections.
Definition at line 81 of file ldapserver.h.
Constructor & Destructor Documentation
◆ LdapServer() [1/3]
LdapServer::LdapServer | ( | ) |
Creates an empty LDAP server object.
Definition at line 41 of file ldapserver.cpp.
◆ LdapServer() [2/3]
|
explicit |
Creates a new LDAP server object.
- Parameters
-
url The LDAP url of the server.
Definition at line 47 of file ldapserver.cpp.
◆ LdapServer() [3/3]
LdapServer::LdapServer | ( | const LdapServer & | other | ) |
Creates a new LDAP server object from an other
object.
Definition at line 55 of file ldapserver.cpp.
◆ ~LdapServer()
|
default |
Destroys the LDAP server object.
Member Function Documentation
◆ activities()
|
nodiscard |
Definition at line 426 of file ldapserver.cpp.
◆ auth()
|
nodiscard |
Returns the authentication method of the LDAP connection.
Definition at line 163 of file ldapserver.cpp.
◆ baseDn()
|
nodiscard |
Returns the baseDn of the LDAP connection.
Definition at line 103 of file ldapserver.cpp.
◆ bindDn()
|
nodiscard |
Returns the bindDn of the LDAP connection.
Definition at line 113 of file ldapserver.cpp.
◆ clear()
void LdapServer::clear | ( | ) |
Clears all server settings.
Definition at line 74 of file ldapserver.cpp.
◆ completionWeight()
|
nodiscard |
Definition at line 416 of file ldapserver.cpp.
◆ filter()
|
nodiscard |
Returns the filter string of the LDAP connection.
Definition at line 128 of file ldapserver.cpp.
◆ host()
|
nodiscard |
Returns the host of the LDAP connection.
Definition at line 93 of file ldapserver.cpp.
◆ mech()
|
nodiscard |
Returns the mech of the LDAP connection.
Definition at line 178 of file ldapserver.cpp.
◆ operator=()
LdapServer & LdapServer::operator= | ( | const LdapServer & | other | ) |
Overwrites the values of the LDAP server object with the values from an other
object.
Definition at line 61 of file ldapserver.cpp.
◆ pageSize()
|
nodiscard |
Returns the page size of the LDAP connection.
Definition at line 148 of file ldapserver.cpp.
◆ password()
|
nodiscard |
Returns the password of the LDAP connection.
Definition at line 123 of file ldapserver.cpp.
◆ port()
|
nodiscard |
Returns the port of the LDAP connection.
Definition at line 98 of file ldapserver.cpp.
◆ realm()
|
nodiscard |
Returns the realm of the LDAP connection.
Definition at line 118 of file ldapserver.cpp.
◆ scope()
|
nodiscard |
Returns the search scope of the LDAP connection.
Definition at line 133 of file ldapserver.cpp.
◆ security()
|
nodiscard |
Returns the security mode of the LDAP connection.
Definition at line 158 of file ldapserver.cpp.
◆ setActivities()
void LdapServer::setActivities | ( | const QStringList & | lst | ) |
Definition at line 421 of file ldapserver.cpp.
◆ setAuth()
void LdapServer::setAuth | ( | Auth | authentication | ) |
Sets the authentication
method of the LDAP connection.
If no authentication method is set, Anonymous is used as default.
- Parameters
-
authentication the authentication method to set
Definition at line 258 of file ldapserver.cpp.
◆ setBaseDn()
void LdapServer::setBaseDn | ( | const LdapDN & | baseDn | ) |
Sets the baseDn
of the LDAP connection.
Definition at line 198 of file ldapserver.cpp.
◆ setBindDn()
void LdapServer::setBindDn | ( | const QString & | bindDn | ) |
Sets the bindDn
of the LDAP connection.
Definition at line 208 of file ldapserver.cpp.
◆ setCompletionWeight()
void LdapServer::setCompletionWeight | ( | int | value | ) |
Definition at line 411 of file ldapserver.cpp.
◆ setFilter()
void LdapServer::setFilter | ( | const QString & | filter | ) |
Sets the filter
string of the LDAP connection.
Definition at line 238 of file ldapserver.cpp.
◆ setHost()
void LdapServer::setHost | ( | const QString & | host | ) |
Sets the host of the LDAP connection.
Definition at line 188 of file ldapserver.cpp.
◆ setMech()
void LdapServer::setMech | ( | const QString & | mech | ) |
Sets the mech
of the LDAP connection.
Definition at line 273 of file ldapserver.cpp.
◆ setPageSize()
void LdapServer::setPageSize | ( | int | size | ) |
Sets the page size
of the LDAP connection.
Definition at line 233 of file ldapserver.cpp.
◆ setPassword()
void LdapServer::setPassword | ( | const QString & | password | ) |
Sets the password
of the LDAP connection.
Definition at line 218 of file ldapserver.cpp.
◆ setPort()
void LdapServer::setPort | ( | int | port | ) |
Sets the port of the LDAP connection.
If not port is set, 389 is used as default.
- Parameters
-
port the LDAP port connection to set
Definition at line 193 of file ldapserver.cpp.
◆ setRealm()
void LdapServer::setRealm | ( | const QString & | realm | ) |
Sets the realm
of the LDAP connection.
Definition at line 213 of file ldapserver.cpp.
◆ setScope()
void LdapServer::setScope | ( | LdapUrl::Scope | scope | ) |
Sets the search scope
of the LDAP connection.
Definition at line 243 of file ldapserver.cpp.
◆ setSecurity()
void LdapServer::setSecurity | ( | Security | mode | ) |
Sets the security mode
of the LDAP connection.
If no security is set, None is used as default.
- Parameters
-
mode the security mode to set
Definition at line 253 of file ldapserver.cpp.
◆ setSizeLimit()
void LdapServer::setSizeLimit | ( | int | sizelimit | ) |
Sets the size limit
of the LDAP connection.
Definition at line 228 of file ldapserver.cpp.
◆ setTimeLimit()
void LdapServer::setTimeLimit | ( | int | limit | ) |
Sets the time limit
of the LDAP connection.
Definition at line 223 of file ldapserver.cpp.
◆ setTimeout()
void LdapServer::setTimeout | ( | int | timeout | ) |
Sets the timeout
of the LDAP connection.
Definition at line 278 of file ldapserver.cpp.
◆ setTLSCACertFile()
void LdapServer::setTLSCACertFile | ( | const QString & | caCertFile | ) |
Sets the CA certificate file for TLS/SSL connections.
Definition at line 268 of file ldapserver.cpp.
◆ setTLSRequireCertificate()
void LdapServer::setTLSRequireCertificate | ( | LdapServer::TLSRequireCertificate | reqCert | ) |
Sets the certificate require mode for TLS/SSL connections.
Definition at line 263 of file ldapserver.cpp.
◆ setUrl()
void LdapServer::setUrl | ( | const LdapUrl & | url | ) |
Sets the server parameters from an RFC2255 compliant LDAP url
.
Definition at line 283 of file ldapserver.cpp.
◆ setUser()
void LdapServer::setUser | ( | const QString & | user | ) |
Sets the user
of the LDAP connection.
Definition at line 203 of file ldapserver.cpp.
◆ setVersion()
void LdapServer::setVersion | ( | int | version | ) |
Sets the protocol version
of the LDAP connection.
If no version is set, 3 is used as default.
- Parameters
-
version the protocol version to set
Definition at line 248 of file ldapserver.cpp.
◆ sizeLimit()
|
nodiscard |
Returns the size limit of the LDAP connection.
Definition at line 143 of file ldapserver.cpp.
◆ timeLimit()
|
nodiscard |
Returns the time limit of the LDAP connection.
Definition at line 138 of file ldapserver.cpp.
◆ timeout()
|
nodiscard |
Returns the timeout of the LDAP connection.
Definition at line 183 of file ldapserver.cpp.
◆ tlsCACertFile()
|
nodiscard |
Returns the CA certificate file used for TLS/SSL connections.
Definition at line 173 of file ldapserver.cpp.
◆ tlsRequireCertificate()
|
nodiscard |
Returns the certificate require mode for TLS/SSL connections.
Definition at line 168 of file ldapserver.cpp.
◆ url()
|
nodiscard |
Returns the server parameters as an RFC2255 compliant LDAP Url.
The URL extensions which are supported: Standard: bindname KLDAP extensions: x-tls, x-version, x-sasl, x-mech, x-realm, x-sizelimit, x-timelimit, x-pagesize, x-timeout
Definition at line 366 of file ldapserver.cpp.
◆ user()
|
nodiscard |
Returns the user of the LDAP connection.
Definition at line 108 of file ldapserver.cpp.
◆ version()
|
nodiscard |
Returns the protocol version of the LDAP connection.
Definition at line 153 of file ldapserver.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 11 2024 12:14:23 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.