• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.9.3 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  {
75  None,
76  TLS,
77  SSL
78  } Security;
79 
84  typedef enum
85  {
86  Anonymous,
87  Simple,
88  SASL
89  } Auth;
90 
94  void clear();
95 
99  void setHost( const QString &host );
100 
104  QString host() const;
105 
110  void setPort( int port );
111 
115  int port() const;
116 
120  void setBaseDn( const LdapDN &baseDn );
121 
125  LdapDN baseDn() const;
126 
130  void setUser( const QString &user );
131 
135  QString user() const;
136 
140  void setBindDn( const QString &bindDn );
141 
145  QString bindDn() const;
146 
150  void setRealm( const QString &realm );
151 
155  QString realm() const;
156 
160  void setPassword( const QString &password );
161 
165  QString password() const;
166 
171  void setVersion( int version );
172 
176  int version() const;
177 
182  void setSecurity( Security mode );
183 
187  Security security() const;
188 
193  void setAuth( Auth authentication );
194 
198  Auth auth() const;
199 
203  void setMech( const QString &mech );
204 
208  QString mech() const;
209 
213  void setTimeout( int timeout );
214 
218  int timeout() const;
219 
223  void setScope( LdapUrl::Scope scope );
224 
228  LdapUrl::Scope scope() const;
229 
233  void setTimeLimit( int limit );
234 
238  int timeLimit() const;
239 
243  void setSizeLimit( int sizelimit );
244 
248  int sizeLimit() const;
249 
253  void setPageSize( int size );
254 
258  int pageSize() const;
259 
263  void setFilter( const QString &filter );
264 
268  QString filter() const;
269 
273  void setUrl( const LdapUrl &url );
274 
282  LdapUrl url() const;
283 
284  private:
285  class LdapServerPrivate;
286  LdapServerPrivate *const d;
287 };
288 
289 }
290 
291 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon Nov 26 2012 16:48:10 by doxygen 1.8.1.2 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.9.3 API Reference

Skip menu "kdepimlibs-4.9.3 API Reference"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • 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