• Skip to content
  • Skip to link menu
KDE 4.0 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • Sitemap
  • Contact Us
 

KLDAP Library

ldapdefs.h

00001 /*
00002   This file is part of libkldap.
00003   Copyright (c) 2004-2006 Szombathelyi György <gyurco@freemail.hu>
00004 
00005   This library is free software; you can redistribute it and/or
00006   modify it under the terms of the GNU Library General  Public
00007   License as published by the Free Software Foundation; either
00008   version 2 of the License, or (at your option) any later version.
00009 
00010   This library is distributed in the hope that it will be useful,
00011   but WITHOUT ANY WARRANTY; without even the implied warranty of
00012   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013   Library General Public License for more details.
00014 
00015   You should have received a copy of the GNU Library General Public License
00016   along with this library; see the file COPYING.LIB.  If not, write to
00017   the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018   Boston, MA 02110-1301, USA.
00019 */
00020 
00021 #ifndef KLDAP_DEFS_H
00022 #define KLDAP_DEFS_H
00023 
00031 #define KLDAP_SUCCESS                    0x00
00032 
00033 #define KLDAP_RANGE(n,x,y)       (((x) <= (n)) && ((n) <= (y)))
00034 
00035 #define KLDAP_OPERATIONS_ERROR           0x01
00036 #define KLDAP_PROTOCOL_ERROR             0x02
00037 #define KLDAP_TIMELIMIT_EXCEEDED         0x03
00038 #define KLDAP_SIZELIMIT_EXCEEDED         0x04
00039 #define KLDAP_COMPARE_FALSE              0x05
00040 #define KLDAP_COMPARE_TRUE               0x06
00041 #define KLDAP_AUTH_METHOD_NOT_SUPPORTED  0x07
00042 #define KLDAP_STRONG_AUTH_NOT_SUPPORTED  KLDAP_AUTH_METHOD_NOT_SUPPORTED
00043 #define KLDAP_STRONG_AUTH_REQUIRED       0x08
00044 #define KLDAP_STRONGER_AUTH_REQUIRED     KLDAP_STRONG_AUTH_REQUIRED
00045 #define KLDAP_PARTIAL_RESULTS            0x09    /* LDAPv2+ (not LDAPv3) */
00046 
00047 #define KLDAP_REFERRAL                   0x0a /* LDAPv3 */
00048 #define KLDAP_ADMINLIMIT_EXCEEDED        0x0b /* LDAPv3 */
00049 #define KLDAP_UNAVAILABLE_CRITICAL_EXTENSION     0x0c /* LDAPv3 */
00050 #define KLDAP_CONFIDENTIALITY_REQUIRED   0x0d /* LDAPv3 */
00051 #define KLDAP_SASL_BIND_IN_PROGRESS      0x0e /* LDAPv3 */
00052 
00053 #define KLDAP_ATTR_ERROR(n)      KLDAP_RANGE((n),0x10,0x15) /* 16-21 */
00054 
00055 #define KLDAP_NO_SUCH_ATTRIBUTE          0x10
00056 #define KLDAP_UNDEFINED_TYPE             0x11
00057 #define KLDAP_INAPPROPRIATE_MATCHING     0x12
00058 #define KLDAP_CONSTRAINT_VIOLATION       0x13
00059 #define KLDAP_TYPE_OR_VALUE_EXISTS       0x14
00060 #define KLDAP_INVALID_SYNTAX             0x15
00061 
00062 #define KLDAP_NAME_ERROR(n)      KLDAP_RANGE((n),0x20,0x24) /* 32-34,36 */
00063 
00064 #define KLDAP_NO_SUCH_OBJECT             0x20
00065 #define KLDAP_ALIAS_PROBLEM              0x21
00066 #define KLDAP_INVALID_DN_SYNTAX          0x22
00067 #define KLDAP_IS_LEAF                    0x23 /* not LDAPv3 */
00068 #define KLDAP_ALIAS_DEREF_PROBLEM        0x24
00069 
00070 #define KLDAP_SECURITY_ERROR(n)  KLDAP_RANGE((n),0x2F,0x32) /* 47-50 */
00071 
00072 #define KLDAP_PROXY_AUTHZ_FAILURE        0x2F /* LDAPv3 proxy authorization */
00073 #define KLDAP_INAPPROPRIATE_AUTH         0x30
00074 #define KLDAP_INVALID_CREDENTIALS        0x31
00075 #define KLDAP_INSUFFICIENT_ACCESS        0x32
00076 
00077 #define KLDAP_SERVICE_ERROR(n)   KLDAP_RANGE((n),0x33,0x36) /* 51-54 */
00078 
00079 #define KLDAP_BUSY                       0x33
00080 #define KLDAP_UNAVAILABLE                0x34
00081 #define KLDAP_UNWILLING_TO_PERFORM       0x35
00082 #define KLDAP_LOOP_DETECT                0x36
00083 
00084 #define KLDAP_UPDATE_ERROR(n)    KLDAP_RANGE((n),0x40,0x47) /* 64-69,71 */
00085 
00086 #define KLDAP_NAMING_VIOLATION           0x40
00087 #define KLDAP_OBJECT_CLASS_VIOLATION     0x41
00088 #define KLDAP_NOT_ALLOWED_ON_NONLEAF     0x42
00089 #define KLDAP_NOT_ALLOWED_ON_RDN         0x43
00090 #define KLDAP_ALREADY_EXISTS             0x44
00091 #define KLDAP_NO_OBJECT_CLASS_MODS       0x45
00092 #define KLDAP_RESULTS_TOO_LARGE          0x46 /* CLDAP */
00093 #define KLDAP_AFFECTS_MULTIPLE_DSAS      0x47
00094 
00095 #define KLDAP_OTHER                      0x50
00096 
00097 /* LCUP operation codes (113-117) - not implemented */
00098 #define KLDAP_CUP_RESOURCES_EXHAUSTED    0x71
00099 #define KLDAP_CUP_SECURITY_VIOLATION     0x72
00100 #define KLDAP_CUP_INVALID_DATA           0x73
00101 #define KLDAP_CUP_UNSUPPORTED_SCHEME     0x74
00102 #define KLDAP_CUP_RELOAD_REQUIRED        0x75
00103 
00104 /* Cancel operation codes (118-121) */
00105 #define KLDAP_CANCELLED                  0x76
00106 #define KLDAP_NO_SUCH_OPERATION          0x77
00107 #define KLDAP_TOO_LATE                   0x78
00108 
00109 #define KLDAP_CANNOT_CANCEL              0x79
00110 
00111 /* Assertion control (122) */
00112 #define KLDAP_ASSERTION_FAILED           0x7A
00113 
00114 /* Experimental result codes */
00115 #define KLDAP_E_ERROR(n) KLDAP_RANGE((n),0x1000,0x3FFF)
00116 
00117 /* LDAP Sync (4096) */
00118 #define KLDAP_SYNC_REFRESH_REQUIRED      0x1000
00119 
00120 /* Private Use result codes */
00121 #define KLDAP_X_ERROR(n) KLDAP_RANGE((n),0x4000,0xFFFF)
00122 
00123 #define KLDAP_X_SYNC_REFRESH_REQUIRED    0x4100 /* defunct */
00124 #define KLDAP_X_ASSERTION_FAILED         0x410f /* defunct */
00125 
00126 /* for the LDAP No-Op control */
00127 #define KLDAP_X_NO_OPERATION             0x410e
00128 
00134 #define KLDAP_API_ERROR(n)               ((n)<0)
00135 #define KLDAP_API_RESULT(n)              ((n)<=0)
00136 
00137 #define KLDAP_SERVER_DOWN                (-1)
00138 #define KLDAP_LOCAL_ERROR                (-2)
00139 #define KLDAP_ENCODING_ERROR             (-3)
00140 #define KLDAP_DECODING_ERROR             (-4)
00141 #define KLDAP_TIMEOUT                    (-5)
00142 #define KLDAP_AUTH_UNKNOWN               (-6)
00143 #define KLDAP_FILTER_ERROR               (-7)
00144 #define KLDAP_USER_CANCELLED             (-8)
00145 #define KLDAP_PARAM_ERROR                (-9)
00146 #define KLDAP_NO_MEMORY                  (-10)
00147 #define KLDAP_CONNECT_ERROR              (-11)
00148 #define KLDAP_NOT_SUPPORTED              (-12)
00149 #define KLDAP_CONTROL_NOT_FOUND          (-13)
00150 #define KLDAP_NO_RESULTS_RETURNED        (-14)
00151 #define KLDAP_MORE_RESULTS_TO_RETURN     (-15)   /* Obsolete */
00152 #define KLDAP_CLIENT_LOOP                (-16)
00153 #define KLDAP_REFERRAL_LIMIT_EXCEEDED    (-17)
00154 
00155 /*
00156  * KLDAP Specific
00157  */
00158  
00159 #define KLDAP_SASL_ERROR    -0xff
00160 
00161 #endif //KLDAP_DEFS_H

KLDAP Library

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

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • kabc
  • kblog
  • kcal
  • kimap
  • kioslave
  •   imap4
  •   mbox
  • kldap
  • kmime
  • kpimidentities
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.5.5
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal