• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.10.5 API Reference
  • KDE Home
  • Contact Us
 

KLDAP Library

  • kldap
ldapserver.h
1 /*
2  This file is part of libkldap.
3  Copyright (c) 2004-2006 Szombathelyi György <gyurco@freemail.hu>
4 
5  This library is free software; you can redistribute it and/or
6  modify it under the terms of the GNU Library General Public
7  License as published by the Free Software Foundation; either
8  version 2 of the License, or (at your option) any later version.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Library General Public License for more details.
14 
15  You should have received a copy of the GNU Library General Public License
16  along with this library; see the file COPYING.LIB. If not, write to
17  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  Boston, MA 02110-1301, USA.
19 */
20 
21 #ifndef KLDAP_LDAPSERVER_H
22 #define KLDAP_LDAPSERVER_H
23 
24 #include <QtCore/QString>
25 
26 #include "ldapurl.h"
27 #include "ldapdn.h"
28 #include "kldap_export.h"
29 
30 namespace KLDAP {
31 
38 class KLDAP_EXPORT LdapServer
39 {
40  public:
44  LdapServer();
45 
51  LdapServer( const LdapUrl &url );
52 
56  LdapServer( const LdapServer &other );
57 
62  LdapServer &operator=( const LdapServer &other );
63 
67  virtual ~LdapServer();
68 
73  typedef enum {
74  None,
75  TLS,
76  SSL
77  } Security;
78 
83  typedef enum {
84  Anonymous,
85  Simple,
86  SASL
87  } Auth;
88 
92  void clear();
93 
97  void setHost( const QString &host );
98 
102  QString host() const;
103 
108  void setPort( int port );
109 
113  int port() const;
114 
118  void setBaseDn( const LdapDN &baseDn );
119 
123  LdapDN baseDn() const;
124 
128  void setUser( const QString &user );
129 
133  QString user() const;
134 
138  void setBindDn( const QString &bindDn );
139 
143  QString bindDn() const;
144 
148  void setRealm( const QString &realm );
149 
153  QString realm() const;
154 
158  void setPassword( const QString &password );
159 
163  QString password() const;
164 
169  void setVersion( int version );
170 
174  int version() const;
175 
180  void setSecurity( Security mode );
181 
185  Security security() const;
186 
191  void setAuth( Auth authentication );
192 
196  Auth auth() const;
197 
201  void setMech( const QString &mech );
202 
206  QString mech() const;
207 
211  void setTimeout( int timeout );
212 
216  int timeout() const;
217 
221  void setScope( LdapUrl::Scope scope );
222 
226  LdapUrl::Scope scope() const;
227 
231  void setTimeLimit( int limit );
232 
236  int timeLimit() const;
237 
241  void setSizeLimit( int sizelimit );
242 
246  int sizeLimit() const;
247 
251  void setPageSize( int size );
252 
256  int pageSize() const;
257 
261  void setFilter( const QString &filter );
262 
266  QString filter() const;
267 
271  void setUrl( const LdapUrl &url );
272 
280  LdapUrl url() const;
281 
282  private:
283  class LdapServerPrivate;
284  LdapServerPrivate *const d;
285 };
286 
287 }
288 
289 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sat Jul 13 2013 01:27:14 by doxygen 1.8.3.1 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KLDAP Library

Skip menu "KLDAP Library"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • Related Pages

kdepimlibs-4.10.5 API Reference

Skip menu "kdepimlibs-4.10.5 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal