KLdap
ldapconfigwidget.cpp
117 mPassword->setRevealPasswordMode(KAuthorized::authorize(QStringLiteral("lineedit_reveal_password")) ? KPassword::RevealMode::OnlyNew
243 mAnonymous = new QRadioButton(i18nc("@option:radio anonymous authentication", "Anonymous"), authbox);
306 connect(&search, &KLDAPCore::LdapSearch::data, mParent, [this](KLDAPCore::LdapSearch *s, const KLDAPCore::LdapObject &obj) {
334 KMessageBox::error(mParent, i18nc("%1 is a url to ldap server", "Unknown error connecting %1", _url.toDisplayString()));
362void LdapConfigWidget::LdapConfigWidgetPrivate::loadData(KLDAPCore::LdapSearch *, const KLDAPCore::LdapObject &object)
367 for (KLDAPCore::LdapAttrMap::ConstIterator it = object.attributes().constBegin(); it != end; ++it) {
477LdapConfigWidget::LdapConfigWidget(LdapConfigWidget::WinFlags flags, QWidget *parent, Qt::WindowFlags fl)
static Q_INVOKABLE bool authorize(const QString &action)
This class starts a search operation on a LDAP server and returns the search values via a Qt signal.
Definition ldapsearch.h:33
QString errorString() const
Returns the error description of the search operation.
Definition ldapsearch.cpp:331
void result(KLDAPCore::LdapSearch *search)
Emitted when the searching finished.
int error() const
Returns the error code of the search operation (0 if no error).
Definition ldapsearch.cpp:326
void data(KLDAPCore::LdapSearch *search, const KLDAPCore::LdapObject &obj)
Emitted for each result object.
bool search(const LdapServer &server, const QStringList &attributes=QStringList(), int count=0)
Starts a search operation on the LDAP server.
Definition ldapsearch.cpp:275
A class that contains LDAP server connection settings.
Definition ldapserver.h:27
Security security() const
Returns the security mode of the LDAP connection.
Definition ldapserver.cpp:160
void setSecurity(Security mode)
Sets the security mode of the LDAP connection.
Definition ldapserver.cpp:255
void setSizeLimit(int sizelimit)
Sets the size limit of the LDAP connection.
Definition ldapserver.cpp:230
LdapUrl url() const
Returns the server parameters as an RFC2255 compliant LDAP Url.
Definition ldapserver.cpp:368
QString filter() const
Returns the filter string of the LDAP connection.
Definition ldapserver.cpp:130
void setVersion(int version)
Sets the protocol version of the LDAP connection.
Definition ldapserver.cpp:250
void setPassword(const QString &password)
Sets the password of the LDAP connection.
Definition ldapserver.cpp:220
void setTimeLimit(int limit)
Sets the time limit of the LDAP connection.
Definition ldapserver.cpp:225
void setRealm(const QString &realm)
Sets the realm of the LDAP connection.
Definition ldapserver.cpp:215
int version() const
Returns the protocol version of the LDAP connection.
Definition ldapserver.cpp:155
void setUrl(const LdapUrl &url)
Sets the server parameters from an RFC2255 compliant LDAP url.
Definition ldapserver.cpp:285
void setAuth(Auth authentication)
Sets the authentication method of the LDAP connection.
Definition ldapserver.cpp:260
void setBindDn(const QString &bindDn)
Sets the bindDn of the LDAP connection.
Definition ldapserver.cpp:210
void setBaseDn(const LdapDN &baseDn)
Sets the baseDn of the LDAP connection.
Definition ldapserver.cpp:200
Auth auth() const
Returns the authentication method of the LDAP connection.
Definition ldapserver.cpp:165
void setFilter(const QString &filter)
Sets the filter string of the LDAP connection.
Definition ldapserver.cpp:240
void hostNameChanged(const QString &)
void setUrl(const KLDAPCore::LdapUrl &url)
Set up the widget via an LDAP Url.
Definition ldapconfigwidget.cpp:493
void setSecurity(Security security)
Sets the security type (None, SSL, TLS).
Definition ldapconfigwidget.cpp:744
~LdapConfigWidget() override
Destructs a configuration widget.
KLDAPCore::LdapServer server() const
Returns an LdapServer object constructed from the settings given.
Definition ldapconfigwidget.cpp:500
KLDAPCore::LdapUrl url() const
Returns a LDAP Url constructed from the settings given.
Definition ldapconfigwidget.cpp:488
LdapConfigWidget(QWidget *parent=nullptr, Qt::WindowFlags fl={})
Constructs an empty configuration widget.
Definition ldapconfigwidget.cpp:471
void setAuth(Auth auth)
Sets the authentication type (Anonymous, Simple, SASL).
Definition ldapconfigwidget.cpp:770
void setServer(const KLDAPCore::LdapServer &server)
Set up the widget via an LdapServer object.
Definition ldapconfigwidget.cpp:558
void setRevealPasswordMode(KPassword::RevealMode revealPasswordMode)
QString i18nc(const char *context, const char *text, const TYPE &arg...)
QString i18n(const char *text, const TYPE &arg...)
void catchReturnKey(QObject *lineEdit)
void error(QWidget *parent, const QString &text, const QString &title, const KGuiItem &buttonOk, Options options=Notify)
const QList< QKeySequence > & end()
void setChecked(bool)
void clicked(bool checked)
void toggled(bool checked)
void setSpecialValueText(const QString &txt)
void addItem(const QIcon &icon, const QString &text, const QVariant &userData)
void addRow(QLayout *layout)
void textChanged(const QString &text)
ConstIterator
qsizetype count() const const
ConstIterator
const QObjectList & children() const const
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
QObject * parent() const const
T qobject_cast(QObject *object)
void setObjectName(QAnyStringView name)
void setRange(int minimum, int maximum)
void setSuffix(const QString &suffix)
void setValue(int val)
QString fromUtf8(QByteArrayView str)
bool isEmpty() const const
QString trimmed() const const
typedef WindowFlags
QWidget(QWidget *parent, Qt::WindowFlags f)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:03:36 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:03:36 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.