Back to index

openldap  2.4.31
Classes | Defines | Typedefs | Functions | Variables
ldap-int.h File Reference
#include "../liblber/lber-int.h"
#include "lutil.h"
#include <ac/time.h>
#include "ldap_log.h"
#include "ldap.h"
#include "ldap_pvt.h"

Go to the source code of this file.

Classes

struct  ldapmsg
struct  ldaplist
struct  ldapoptions
struct  ldap_conn
struct  ldapreq
struct  ldapcache
struct  ldapreqinfo
struct  ldap_common
struct  ldap

Defines

#define TV2MILLISEC(tv)   (((tv)->tv_sec * 1000) + ((tv)->tv_usec/1000))
#define LDAP_INT_GLOBAL_OPT()   (&ldap_int_global_options)
#define ldap_debug   ((LDAP_INT_GLOBAL_OPT())->ldo_debug)
#define DebugTest(level)   (0 == 1)
#define Debug(level, fmt, arg1, arg2, arg3)   ((void)0)
#define LDAP_Debug(subsystem, level, fmt, arg1, arg2, arg3)   ((void)0)
#define LDAP_DEPRECATED   1
#define LDAP_URL_PREFIX   "ldap://"
#define LDAP_URL_PREFIX_LEN   STRLENOF(LDAP_URL_PREFIX)
#define LDAPS_URL_PREFIX   "ldaps://"
#define LDAPS_URL_PREFIX_LEN   STRLENOF(LDAPS_URL_PREFIX)
#define LDAPI_URL_PREFIX   "ldapi://"
#define LDAPI_URL_PREFIX_LEN   STRLENOF(LDAPI_URL_PREFIX)
#define LDAP_URL_URLCOLON   "URL:"
#define LDAP_URL_URLCOLON_LEN   STRLENOF(LDAP_URL_URLCOLON)
#define LDAP_REF_STR   "Referral:\n"
#define LDAP_REF_STR_LEN   STRLENOF(LDAP_REF_STR)
#define LDAP_LDAP_REF_STR   LDAP_URL_PREFIX
#define LDAP_LDAP_REF_STR_LEN   LDAP_URL_PREFIX_LEN
#define LDAP_DEFAULT_REFHOPLIMIT   5
#define LDAP_BOOL_REFERRALS   0
#define LDAP_BOOL_RESTART   1
#define LDAP_BOOL_TLS   3
#define LDAP_BOOL_CONNECT_ASYNC   4
#define LDAP_BOOL_SASL_NOCANON   5
#define LDAP_BOOLEANS   unsigned long
#define LDAP_BOOL(n)   ((LDAP_BOOLEANS)1 << (n))
#define LDAP_BOOL_GET(lo, bool)   ((lo)->ldo_booleans & LDAP_BOOL(bool) ? -1 : 0)
#define LDAP_BOOL_SET(lo, bool)   ((lo)->ldo_booleans |= LDAP_BOOL(bool))
#define LDAP_BOOL_CLR(lo, bool)   ((lo)->ldo_booleans &= ~LDAP_BOOL(bool))
#define LDAP_BOOL_ZERO(lo)   ((lo)->ldo_booleans = 0)
#define LDAP_UNINITIALIZED   0x0
#define LDAP_INITIALIZED   0x1
#define LDAP_VALID_SESSION   0x2
#define LDAP_TRASHED_SESSION   0xFF
#define LDAP_LDO_MUTEX_NULLARG
#define LDAP_CONNST_NEEDSOCKET   1
#define LDAP_CONNST_CONNECTING   2
#define LDAP_CONNST_CONNECTED   3
#define LDAP_REQST_COMPLETED   0
#define LDAP_REQST_INPROGRESS   1
#define LDAP_REQST_CHASINGREFS   2
#define LDAP_REQST_NOTCONNECTED   3
#define LDAP_REQST_WRITING   4
#define LDAP_CACHE_BUCKETS   31 /* cache hash table size */
#define LDAP_CACHE_OPT_CACHENOERRS   0x00000001
#define LDAP_CACHE_OPT_CACHEALLERRS   0x00000002
#define ld_sb   ldc->ldc_sb
#define ld_options   ldc->ldc_options
#define ld_valid   ld_options.ldo_valid
#define ld_debug   ld_options.ldo_debug
#define ld_deref   ld_options.ldo_deref
#define ld_timelimit   ld_options.ldo_timelimit
#define ld_sizelimit   ld_options.ldo_sizelimit
#define ld_defbinddn   ld_options.ldo_defbinddn
#define ld_defbase   ld_options.ldo_defbase
#define ld_defhost   ld_options.ldo_defhost
#define ld_defport   ld_options.ldo_defport
#define ld_refhoplimit   ld_options.ldo_refhoplimit
#define ld_sctrls   ld_options.ldo_sctrls
#define ld_cctrls   ld_options.ldo_cctrls
#define ld_rebind_proc   ld_options.ldo_rebind_proc
#define ld_rebind_params   ld_options.ldo_rebind_params
#define ld_nextref_proc   ld_options.ldo_nextref_proc
#define ld_nextref_params   ld_options.ldo_nextref_params
#define ld_urllist_proc   ld_options.ldo_urllist_proc
#define ld_urllist_params   ld_options.ldo_urllist_params
#define ld_version   ld_options.ldo_version
#define ld_lberoptions   ldc->ldc_lberoptions
#define ld_msgid   ldc->ldc_msgid
#define ld_requests   ldc->ldc_requests
#define ld_responses   ldc->ldc_responses
#define ld_nabandoned   ldc->ldc_nabandoned
#define ld_abandoned   ldc->ldc_abandoned
#define ld_cache   ldc->ldc_cache
#define ld_defconn   ldc->ldc_defconn
#define ld_conns   ldc->ldc_conns
#define ld_selectinfo   ldc->ldc_selectinfo
#define ld_ldcrefcnt   ldc->ldc_refcnt
#define LDAP_VALID(ld)   ( (ld)->ld_valid == LDAP_VALID_SESSION )
#define LDAP_TRASHED(ld)   ( (ld)->ld_valid == LDAP_TRASHED_SESSION )
#define LDAP_TRASH(ld)   ( (ld)->ld_valid = LDAP_TRASHED_SESSION )
#define LDAP_MUTEX_LOCK(mutex)   ((void) 0)
#define LDAP_MUTEX_UNLOCK(mutex)   ((void) 0)
#define LDAP_ASSERT_MUTEX_OWNER(mutex)   ((void) 0)
#define LDAP_NEXT_MSGID(ld, id)
#define LDAP_MALLOC(s)   (ber_memalloc_x((s),NULL))
#define LDAP_CALLOC(n, s)   (ber_memcalloc_x((n),(s),NULL))
#define LDAP_REALLOC(p, s)   (ber_memrealloc_x((p),(s),NULL))
#define LDAP_FREE(p)   (ber_memfree_x((p),NULL))
#define LDAP_VFREE(v)   (ber_memvfree_x((void **)(v),NULL))
#define LDAP_STRDUP(s)   (ber_strdup_x((s),NULL))
#define LDAP_STRNDUP(s, l)   (ber_strndup_x((s),(l),NULL))
#define LDAP_MALLOCX(s, x)   (ber_memalloc_x((s),(x)))
#define LDAP_CALLOCX(n, s, x)   (ber_memcalloc_x((n),(s),(x)))
#define LDAP_REALLOCX(p, s, x)   (ber_memrealloc_x((p),(s),(x)))
#define LDAP_FREEX(p, x)   (ber_memfree_x((p),(x)))
#define LDAP_VFREEX(v, x)   (ber_memvfree_x((void **)(v),(x)))
#define LDAP_STRDUPX(s, x)   (ber_strdup_x((s),(x)))
#define LDAP_STRNDUPX(s, l, x)   (ber_strndup_x((s),(l),(x)))

Typedefs

typedef struct ldaplist ldaplist
typedef struct ldap_conn LDAPConn
typedef struct ldapreq LDAPRequest
typedef struct ldapcache LDAPCache
typedef struct ldapreqinfo LDAPreqinfo

Functions

 ldap_int_bisect_find (ber_int_t *v, ber_len_t n, ber_int_t id, int *idxp)
 ldap_int_bisect_insert (ber_int_t **vp, ber_len_t *np, int id, int idx)
 ldap_int_bisect_delete (ber_int_t **vp, ber_len_t *np, int id, int idx)
 LDAP_V (struct ldapoptions) ldap_int_global_options
 LDAP_F (void) ldap_int_initialize LDAP_P((struct ldapoptions *
 LDAP_F (int) ldap_log_printf LDAP_P((LDAP *ld
int const char LDAP_GCCATTR ((format(printf, 3, 4)))
 LDAP_V (int) ldap_int_tblsize
 LDAP_F (void *) ldap_new_select_info(void)
 LDAP_F (ber_int_t) ldap_send_initial_request(LDAP *ld
 LDAP_F (BerElement *) ldap_alloc_ber_with_options(LDAP *ld)
 LDAP_F (LDAPConn *) ldap_new_connection(LDAP *ld
 LDAP_F (LDAPRequest *) ldap_find_request_by_msgid(LDAP *ld
 LDAP_F (const char *) ldap_int_msgtype2str(ber_tag_t tag)
 LDAP_F (LDAPURLDesc *) ldap_url_dup LDAP_P((LDAPURLDesc *ludp))
 LDAP_F (char *) ldap_url_list2hosts LDAP_P((LDAPURLDesc *ludlist))
 LDAP_F (char **) ldap_value_dup LDAP_P((char *const *vals))

Variables

int level
int const char * fmt
ber_tag_t msgtype
ber_tag_t BerElement * request
LDAPMessage * result
LDAPControl *constctrls
LDAPControl *const BerElement * ber
LDAPControl ** ctrlp
ber_len_tblenp
ber_len_t char *** toksp
LDAPConnconn
LDAPConn LDAPURLDescsrvlist
LDAPConn LDAPURLDesc int async
ber_socket_t sd
struct timeval * tm
Sockbuf * sb
Sockbuf int proto
Sockbuf int LDAPURLDescsrv
ber_socket_t s
ber_socket_t struct timeval * tvp
struct timeval * timeout
Sockbuf ber_socket_t
LDAPURLDesc struct sockaddr * 
addr
ber_tag_t const char * dn
ber_tag_t const char
BerElement ber_int_t 
msgid
BerElement ber_int_t LDAPRequestparentreq
BerElement ber_int_t
LDAPRequest LDAPURLDesc
LDAPConn
lc
BerElement ber_int_t
LDAPRequest LDAPURLDesc
LDAPConn LDAPreqinfo
bind
BerElement ber_int_t
LDAPRequest LDAPURLDesc
LDAPConn LDAPreqinfo int 
noconn
BerElement ber_int_t
LDAPRequest LDAPURLDesc
LDAPConn LDAPreqinfo int int 
m_res
LDAPURLDesc int use_ldsb
LDAPURLDesc int int connect
LDAPURLDesc int int LDAPreqinfo int m_req
LDAPRequestlr
LDAPRequest int freeit
LDAPConn int force
LDAPConn int int unbind
LDAPConnlconns
LDAPConn int all
LDAPRequest char ** errstrp
LDAPRequest char int sref
LDAPRequest char int inthadrefp
LDAPRequest char ** refs
LDAPRequest char int char ** referralsp
const char * base
const char ber_int_t scope
const char ber_int_t const char * filter
const char ber_int_t const
char char ** 
attrs
const char ber_int_t const
char char ber_int_t 
attrsonly
const char ber_int_t const
char char ber_int_t
LDAPControl ** 
sctrls
const char ber_int_t const
char char ber_int_t
LDAPControl LDAPControl ** 
cctrls
const char ber_int_t const
char char ber_int_t
LDAPControl LDAPControl
ber_int_t 
timelimit
const char ber_int_t const
char char ber_int_t
LDAPControl LDAPControl
ber_int_t ber_int_t 
sizelimit
const char ber_int_t const
char char ber_int_t
LDAPControl LDAPControl
ber_int_t ber_int_t ber_int_t 
deref
const char ber_int_t const
char char ber_int_t
LDAPControl LDAPControl
ber_int_t ber_int_t ber_int_t
ber_int_t * 
msgidp
int close
const char * hosts
const char int port
LDAPConn const char * host
LDAPConn const char * authid
LDAPConn const char ber_len_t ssf
int option
int voidarg
const char const char
LDAPControl LDAPControl
unsigned 
flags
const char const char
LDAPControl LDAPControl
unsigned
LDAP_SASL_INTERACT_PROC * 
interact
const char const char
LDAPControl LDAPControl
unsigned
LDAP_SASL_INTERACT_PROC void
defaults
const char const char
LDAPControl LDAPControl
unsigned
LDAP_SASL_INTERACT_PROC void
LDAPMessage const char ** 
rmech
intcode

Class Documentation

struct ldapmsg

Definition at line 145 of file ldap-int.h.

Collaboration diagram for ldapmsg:
Class Members
BerElement * lm_ber
struct ldapmsg * lm_chain
struct ldapmsg * lm_chain_tail
ber_int_t lm_msgid
ber_tag_t lm_msgtype
struct ldapmsg * lm_next
time_t lm_time
struct ldaplist

Definition at line 169 of file ldap-int.h.

Collaboration diagram for ldaplist:
Class Members
void * ll_data
struct ldaplist * ll_next
struct ldapoptions

Definition at line 180 of file ldap-int.h.

Collaboration diagram for ldapoptions:
Class Members
LDAP_BOOLEANS ldo_booleans
LDAPControl ** ldo_cctrls
ldaplist * ldo_conn_cbs
int ldo_debug
char * ldo_defbase
char * ldo_defbinddn
LDAPURLDesc * ldo_defludp
int ldo_defport
ber_int_t ldo_deref
ber_int_t ldo_keepalive_idle
ber_int_t ldo_keepalive_interval
ber_int_t ldo_keepalive_probes
void * ldo_nextref_params
LDAP_NEXTREF_PROC * ldo_nextref_proc
void * ldo_rebind_params
LDAP_REBIND_PROC * ldo_rebind_proc
int ldo_refhoplimit
LDAPControl ** ldo_sctrls
ber_int_t ldo_sizelimit
ber_int_t ldo_timelimit
void * ldo_urllist_params
LDAP_URLLIST_PROC * ldo_urllist_proc
short ldo_valid
ber_int_t ldo_version
struct ldap_conn

Definition at line 290 of file ldap-int.h.

Collaboration diagram for ldap_conn:
Class Members
BerElement * lconn_ber
time_t lconn_created
time_t lconn_lastused
struct ldap_conn * lconn_next
int lconn_rebind_inprogress
char *** lconn_rebind_queue
int lconn_refcnt
Sockbuf * lconn_sb
LDAPURLDesc * lconn_server
int lconn_status
struct ldapreq

Definition at line 318 of file ldap-int.h.

Collaboration diagram for ldapreq:
Class Members
int lr_abandoned
BerElement * lr_ber
struct ldapreq * lr_child
LDAPConn * lr_conn
ber_int_t lr_msgid
struct ldapreq * lr_next
ber_int_t lr_origid
int lr_outrefcnt
struct ldapreq * lr_parent
int lr_parentcnt
struct ldapreq * lr_prev
int lr_refcnt
struct ldapreq * lr_refnext
ber_int_t lr_res_errno
char * lr_res_error
char * lr_res_matched
ber_tag_t lr_res_msgtype
int lr_status
struct ldapcache

Definition at line 349 of file ldap-int.h.

Class Members
LDAPMessage * lc_buckets
int lc_enabled
ber_len_t lc_maxmem
ber_len_t lc_memused
unsigned long lc_options
LDAPMessage * lc_requests
long lc_timeout
struct ldapreqinfo

Definition at line 364 of file ldap-int.h.

Class Members
ber_len_t ri_msgid
int ri_request
char * ri_url
struct ldap_common

Definition at line 374 of file ldap-int.h.

Collaboration diagram for ldap_common:
Class Members
ber_int_t * ldc_abandoned
LDAPCache * ldc_cache
LDAPConn * ldc_conns
LDAPConn * ldc_defconn
unsigned short ldc_lberoptions
ber_len_t ldc_msgid
ber_len_t ldc_nabandoned
unsigned int ldc_refcnt
LDAPRequest * ldc_requests
LDAPMessage * ldc_responses
Sockbuf * ldc_sb
void * ldc_selectinfo
struct ldap

Definition at line 468 of file ldap-int.h.

Collaboration diagram for ldap:
Class Members
ber_int_t ld_errno
char * ld_error
char * ld_matched
char ** ld_referrals
struct ldap_common * ldc

Define Documentation

#define Debug (   level,
  fmt,
  arg1,
  arg2,
  arg3 
)    ((void)0)

Definition at line 93 of file ldap-int.h.

#define DebugTest (   level)    (0 == 1)

Definition at line 92 of file ldap-int.h.

#define ld_abandoned   ldc->ldc_abandoned

Definition at line 442 of file ldap-int.h.

#define ld_cache   ldc->ldc_cache

Definition at line 446 of file ldap-int.h.

#define ld_cctrls   ld_options.ldo_cctrls

Definition at line 397 of file ldap-int.h.

#define ld_conns   ldc->ldc_conns

Definition at line 454 of file ldap-int.h.

#define ld_debug   ld_options.ldo_debug

Definition at line 383 of file ldap-int.h.

#define ld_defbase   ld_options.ldo_defbase

Definition at line 390 of file ldap-int.h.

#define ld_defbinddn   ld_options.ldo_defbinddn

Definition at line 389 of file ldap-int.h.

#define ld_defconn   ldc->ldc_defconn

Definition at line 452 of file ldap-int.h.

#define ld_defhost   ld_options.ldo_defhost

Definition at line 391 of file ldap-int.h.

#define ld_defport   ld_options.ldo_defport

Definition at line 392 of file ldap-int.h.

#define ld_deref   ld_options.ldo_deref

Definition at line 385 of file ldap-int.h.

#define ld_lberoptions   ldc->ldc_lberoptions

Definition at line 411 of file ldap-int.h.

#define ld_ldcrefcnt   ldc->ldc_refcnt

Definition at line 465 of file ldap-int.h.

#define ld_msgid   ldc->ldc_msgid

Definition at line 415 of file ldap-int.h.

#define ld_nabandoned   ldc->ldc_nabandoned

Definition at line 441 of file ldap-int.h.

#define ld_nextref_params   ld_options.ldo_nextref_params

Definition at line 401 of file ldap-int.h.

#define ld_nextref_proc   ld_options.ldo_nextref_proc

Definition at line 400 of file ldap-int.h.

#define ld_options   ldc->ldc_options

Definition at line 380 of file ldap-int.h.

#define ld_rebind_params   ld_options.ldo_rebind_params

Definition at line 399 of file ldap-int.h.

#define ld_rebind_proc   ld_options.ldo_rebind_proc

Definition at line 398 of file ldap-int.h.

#define ld_refhoplimit   ld_options.ldo_refhoplimit

Definition at line 394 of file ldap-int.h.

#define ld_requests   ldc->ldc_requests

Definition at line 422 of file ldap-int.h.

#define ld_responses   ldc->ldc_responses

Definition at line 423 of file ldap-int.h.

#define ld_sb   ldc->ldc_sb

Definition at line 376 of file ldap-int.h.

#define ld_sctrls   ld_options.ldo_sctrls

Definition at line 396 of file ldap-int.h.

#define ld_selectinfo   ldc->ldc_selectinfo

Definition at line 456 of file ldap-int.h.

#define ld_sizelimit   ld_options.ldo_sizelimit

Definition at line 387 of file ldap-int.h.

#define ld_timelimit   ld_options.ldo_timelimit

Definition at line 386 of file ldap-int.h.

#define ld_urllist_params   ld_options.ldo_urllist_params

Definition at line 403 of file ldap-int.h.

#define ld_urllist_proc   ld_options.ldo_urllist_proc

Definition at line 402 of file ldap-int.h.

#define ld_valid   ld_options.ldo_valid

Definition at line 382 of file ldap-int.h.

#define ld_version   ld_options.ldo_version

Definition at line 405 of file ldap-int.h.

#define LDAP_ASSERT_MUTEX_OWNER (   mutex)    ((void) 0)

Definition at line 502 of file ldap-int.h.

#define LDAP_BOOL (   n)    ((LDAP_BOOLEANS)1 << (n))

Definition at line 132 of file ldap-int.h.

#define LDAP_BOOL_CLR (   lo,
  bool 
)    ((lo)->ldo_booleans &= ~LDAP_BOOL(bool))

Definition at line 136 of file ldap-int.h.

#define LDAP_BOOL_CONNECT_ASYNC   4

Definition at line 128 of file ldap-int.h.

#define LDAP_BOOL_GET (   lo,
  bool 
)    ((lo)->ldo_booleans & LDAP_BOOL(bool) ? -1 : 0)

Definition at line 133 of file ldap-int.h.

#define LDAP_BOOL_REFERRALS   0

Definition at line 125 of file ldap-int.h.

#define LDAP_BOOL_RESTART   1

Definition at line 126 of file ldap-int.h.

#define LDAP_BOOL_SASL_NOCANON   5

Definition at line 129 of file ldap-int.h.

#define LDAP_BOOL_SET (   lo,
  bool 
)    ((lo)->ldo_booleans |= LDAP_BOOL(bool))

Definition at line 135 of file ldap-int.h.

#define LDAP_BOOL_TLS   3

Definition at line 127 of file ldap-int.h.

#define LDAP_BOOL_ZERO (   lo)    ((lo)->ldo_booleans = 0)

Definition at line 137 of file ldap-int.h.

#define LDAP_BOOLEANS   unsigned long

Definition at line 131 of file ldap-int.h.

#define LDAP_CACHE_BUCKETS   31 /* cache hash table size */

Definition at line 348 of file ldap-int.h.

#define LDAP_CACHE_OPT_CACHEALLERRS   0x00000002

Definition at line 358 of file ldap-int.h.

#define LDAP_CACHE_OPT_CACHENOERRS   0x00000001

Definition at line 357 of file ldap-int.h.

#define LDAP_CALLOC (   n,
  s 
)    (ber_memcalloc_x((n),(s),NULL))

Definition at line 535 of file ldap-int.h.

#define LDAP_CALLOCX (   n,
  s,
 
)    (ber_memcalloc_x((n),(s),(x)))

Definition at line 543 of file ldap-int.h.

#define LDAP_CONNST_CONNECTED   3

Definition at line 307 of file ldap-int.h.

#define LDAP_CONNST_CONNECTING   2

Definition at line 306 of file ldap-int.h.

#define LDAP_CONNST_NEEDSOCKET   1

Definition at line 305 of file ldap-int.h.

#define ldap_debug   ((LDAP_INT_GLOBAL_OPT())->ldo_debug)

Definition at line 71 of file ldap-int.h.

#define LDAP_Debug (   subsystem,
  level,
  fmt,
  arg1,
  arg2,
  arg3 
)    ((void)0)

Definition at line 94 of file ldap-int.h.

#define LDAP_DEFAULT_REFHOPLIMIT   5

Definition at line 123 of file ldap-int.h.

#define LDAP_DEPRECATED   1

Definition at line 98 of file ldap-int.h.

#define LDAP_FREE (   p)    (ber_memfree_x((p),NULL))

Definition at line 537 of file ldap-int.h.

#define LDAP_FREEX (   p,
 
)    (ber_memfree_x((p),(x)))

Definition at line 545 of file ldap-int.h.

#define LDAP_INITIALIZED   0x1

Definition at line 183 of file ldap-int.h.

#define LDAP_INT_GLOBAL_OPT ( )    (&ldap_int_global_options)

Definition at line 68 of file ldap-int.h.

Definition at line 120 of file ldap-int.h.

Definition at line 121 of file ldap-int.h.

Definition at line 192 of file ldap-int.h.

#define LDAP_MALLOC (   s)    (ber_memalloc_x((s),NULL))

Definition at line 534 of file ldap-int.h.

#define LDAP_MALLOCX (   s,
 
)    (ber_memalloc_x((s),(x)))

Definition at line 542 of file ldap-int.h.

#define LDAP_MUTEX_LOCK (   mutex)    ((void) 0)

Definition at line 500 of file ldap-int.h.

#define LDAP_MUTEX_UNLOCK (   mutex)    ((void) 0)

Definition at line 501 of file ldap-int.h.

#define LDAP_NEXT_MSGID (   ld,
  id 
)
Value:
do { \
       LDAP_MUTEX_LOCK( &(ld)->ld_msgid_mutex ); \
       (id) = ++(ld)->ld_msgid; \
       LDAP_MUTEX_UNLOCK( &(ld)->ld_msgid_mutex ); \
} while (0)

Definition at line 505 of file ldap-int.h.

#define LDAP_REALLOC (   p,
  s 
)    (ber_memrealloc_x((p),(s),NULL))

Definition at line 536 of file ldap-int.h.

#define LDAP_REALLOCX (   p,
  s,
 
)    (ber_memrealloc_x((p),(s),(x)))

Definition at line 544 of file ldap-int.h.

#define LDAP_REF_STR   "Referral:\n"

Definition at line 118 of file ldap-int.h.

Definition at line 119 of file ldap-int.h.

#define LDAP_REQST_CHASINGREFS   2

Definition at line 323 of file ldap-int.h.

#define LDAP_REQST_COMPLETED   0

Definition at line 321 of file ldap-int.h.

#define LDAP_REQST_INPROGRESS   1

Definition at line 322 of file ldap-int.h.

#define LDAP_REQST_NOTCONNECTED   3

Definition at line 324 of file ldap-int.h.

#define LDAP_REQST_WRITING   4

Definition at line 325 of file ldap-int.h.

#define LDAP_STRDUP (   s)    (ber_strdup_x((s),NULL))

Definition at line 539 of file ldap-int.h.

#define LDAP_STRDUPX (   s,
 
)    (ber_strdup_x((s),(x)))

Definition at line 547 of file ldap-int.h.

#define LDAP_STRNDUP (   s,
  l 
)    (ber_strndup_x((s),(l),NULL))

Definition at line 540 of file ldap-int.h.

#define LDAP_STRNDUPX (   s,
  l,
 
)    (ber_strndup_x((s),(l),(x)))

Definition at line 548 of file ldap-int.h.

#define LDAP_TRASH (   ld)    ( (ld)->ld_valid = LDAP_TRASHED_SESSION )

Definition at line 481 of file ldap-int.h.

#define LDAP_TRASHED (   ld)    ( (ld)->ld_valid == LDAP_TRASHED_SESSION )

Definition at line 480 of file ldap-int.h.

#define LDAP_TRASHED_SESSION   0xFF

Definition at line 185 of file ldap-int.h.

#define LDAP_UNINITIALIZED   0x0

Definition at line 182 of file ldap-int.h.

#define LDAP_URL_PREFIX   "ldap://"

Definition at line 105 of file ldap-int.h.

Definition at line 106 of file ldap-int.h.

#define LDAP_URL_URLCOLON   "URL:"

Definition at line 115 of file ldap-int.h.

Definition at line 116 of file ldap-int.h.

#define LDAP_VALID (   ld)    ( (ld)->ld_valid == LDAP_VALID_SESSION )

Definition at line 479 of file ldap-int.h.

#define LDAP_VALID_SESSION   0x2

Definition at line 184 of file ldap-int.h.

#define LDAP_VFREE (   v)    (ber_memvfree_x((void **)(v),NULL))

Definition at line 538 of file ldap-int.h.

#define LDAP_VFREEX (   v,
 
)    (ber_memvfree_x((void **)(v),(x)))

Definition at line 546 of file ldap-int.h.

#define LDAPI_URL_PREFIX   "ldapi://"

Definition at line 109 of file ldap-int.h.

Definition at line 110 of file ldap-int.h.

#define LDAPS_URL_PREFIX   "ldaps://"

Definition at line 107 of file ldap-int.h.

Definition at line 108 of file ldap-int.h.

#define TV2MILLISEC (   tv)    (((tv)->tv_sec * 1000) + ((tv)->tv_usec/1000))

Definition at line 50 of file ldap-int.h.


Typedef Documentation

typedef struct ldapcache LDAPCache
typedef struct ldap_conn LDAPConn
typedef struct ldaplist ldaplist
typedef struct ldapreqinfo LDAPreqinfo
typedef struct ldapreq LDAPRequest

Function Documentation

LDAP_F ( void  )
LDAP_F ( int  )
LDAP_F ( void )
LDAP_F ( ber_int_t  )
LDAP_F ( BerElement *  )
LDAP_F ( LDAPConn )
LDAP_F ( const char *  )
LDAP_F ( char *  )

Definition at line 30 of file kerberos.c.

                                             {KERBEROS}");
LDAP_F ( char **  ) const
int const char LDAP_GCCATTR ( (format(printf, 3, 4))  )
ldap_int_bisect_delete ( ber_int_t **  vp,
ber_len_t np,
int  id,
int  idx 
)

Definition at line 427 of file abandon.c.

{
       ber_int_t     *v;
       ber_len_t     i, n;

       assert( vp != NULL );
       assert( np != NULL );
       assert( idx >= 0 );
       assert( (unsigned) idx < *np );

       v = *vp;

       assert( v[ idx ] == id );

       --(*np);
       n = *np;

       for ( i = idx; i < n; i++ ) {
              v[ i ] = v[ i + 1 ];
       }

       return 0;
}

Here is the caller graph for this function:

ldap_int_bisect_find ( ber_int_t *  v,
ber_len_t  n,
ber_int_t  id,
int idxp 
)

Definition at line 328 of file abandon.c.

{
       int           begin,
                     end,
                     rc = 0;

       assert( id >= 0 );

       begin = 0;
       end = n - 1;

              if ( n <= 0 || id < v[ begin ] ) {
                     *idxp = 0;

              } else if ( id > v[ end ] ) {
                     *idxp = n;

              } else {
                     int           pos;
                     ber_int_t     curid;
       
                     do {
                            pos = (begin + end)/2;
                            curid = v[ pos ];
       
                            if ( id < curid ) {
                                   end = pos - 1;
       
                            } else if ( id > curid ) {
                                   begin = ++pos;
       
                            } else {
                                   /* already abandoned? */
                                   rc = 1;
                                   break;
                            }
                     } while ( end >= begin );
       
                     *idxp = pos;
              }

       return rc;
}

Here is the caller graph for this function:

ldap_int_bisect_insert ( ber_int_t **  vp,
ber_len_t np,
int  id,
int  idx 
)

Definition at line 386 of file abandon.c.

{
       ber_int_t     *v;
       ber_len_t     n;
       int           i;

       assert( vp != NULL );
       assert( np != NULL );
       assert( idx >= 0 );
       assert( (unsigned) idx <= *np );

       n = *np;

       v = ber_memrealloc( *vp, sizeof( ber_int_t ) * ( n + 1 ) );
       if ( v == NULL ) {
              return -1;
       }
       *vp = v;

       for ( i = n; i > idx; i-- ) {
              v[ i ] = v[ i - 1 ];
       }
       v[ idx ] = id;
       ++(*np);

       return 0;
}

Here is the call graph for this function:

Here is the caller graph for this function:

LDAP_V ( struct ldapoptions  )
LDAP_V ( int  )

Variable Documentation

Sockbuf ber_socket_t LDAPURLDesc struct sockaddr* addr

Definition at line 632 of file ldap-int.h.

Definition at line 659 of file ldap-int.h.

int const char* arg

Definition at line 739 of file ldap-int.h.

Definition at line 597 of file ldap-int.h.

const char ber_int_t const char char** attrs

Definition at line 678 of file ldap-int.h.

const char ber_int_t const char char ber_int_t attrsonly

Definition at line 678 of file ldap-int.h.

Definition at line 735 of file ldap-int.h.

const char* base

Definition at line 678 of file ldap-int.h.

BerElement * ber

Definition at line 579 of file ldap-int.h.

Definition at line 650 of file ldap-int.h.

Definition at line 589 of file ldap-int.h.

Definition at line 678 of file ldap-int.h.

Definition at line 696 of file ldap-int.h.

Definition at line 762 of file ldap-int.h.

Definition at line 597 of file ldap-int.h.

Definition at line 653 of file ldap-int.h.

Definition at line 584 of file ldap-int.h.

Definition at line 579 of file ldap-int.h.

const char const char LDAPControl LDAPControl unsigned LDAP_SASL_INTERACT_PROC void* defaults

Definition at line 747 of file ldap-int.h.

const char ber_int_t const char char ber_int_t LDAPControl LDAPControl ber_int_t ber_int_t ber_int_t deref

Definition at line 678 of file ldap-int.h.

ber_tag_t const char* dn

Definition at line 645 of file ldap-int.h.

Definition at line 661 of file ldap-int.h.

const char ber_int_t const char* filter

Definition at line 678 of file ldap-int.h.

Definition at line 747 of file ldap-int.h.

int const char* fmt

Definition at line 564 of file ldap-int.h.

Definition at line 658 of file ldap-int.h.

Definition at line 656 of file ldap-int.h.

LDAPRequest char int char int * hadrefp

Definition at line 661 of file ldap-int.h.

Definition at line 730 of file ldap-int.h.

const char* hosts

Definition at line 717 of file ldap-int.h.

const char const char LDAPControl LDAPControl unsigned LDAP_SASL_INTERACT_PROC* interact

Definition at line 747 of file ldap-int.h.

Definition at line 650 of file ldap-int.h.

Definition at line 659 of file ldap-int.h.

Definition at line 564 of file ldap-int.h.

Definition at line 656 of file ldap-int.h.

Definition at line 653 of file ldap-int.h.

Definition at line 650 of file ldap-int.h.

const char const char LDAPControl LDAPControl unsigned LDAP_SASL_INTERACT_PROC void LDAPMessage const char int* msgid

Definition at line 645 of file ldap-int.h.

const char ber_int_t const char char ber_int_t LDAPControl LDAPControl ber_int_t ber_int_t ber_int_t ber_int_t* msgidp

Definition at line 678 of file ldap-int.h.

ber_tag_t msgtype

Definition at line 569 of file ldap-int.h.

Definition at line 650 of file ldap-int.h.

Definition at line 739 of file ldap-int.h.

BerElement ber_int_t LDAPRequest* parentreq

Definition at line 650 of file ldap-int.h.

const char int port

Definition at line 717 of file ldap-int.h.

Sockbuf int proto

Definition at line 610 of file ldap-int.h.

char ** referralsp

Definition at line 663 of file ldap-int.h.

LDAPRequest char** refs

Definition at line 663 of file ldap-int.h.

ber_tag_t BerElement* request

Definition at line 569 of file ldap-int.h.

const char const char LDAPControl LDAPControl unsigned LDAP_SASL_INTERACT_PROC void LDAPMessage * result

Definition at line 571 of file ldap-int.h.

const char const char LDAPControl LDAPControl unsigned LDAP_SASL_INTERACT_PROC void LDAPMessage const char** rmech

Definition at line 747 of file ldap-int.h.

struct berval * s

Definition at line 612 of file ldap-int.h.

Sockbuf* sb

Definition at line 610 of file ldap-int.h.

const char ber_int_t scope

Definition at line 678 of file ldap-int.h.

Sockbuf LDAPControl** sctrls

Definition at line 678 of file ldap-int.h.

ber_socket_t sd

Definition at line 598 of file ldap-int.h.

const char ber_int_t const char char ber_int_t LDAPControl LDAPControl ber_int_t ber_int_t sizelimit

Definition at line 678 of file ldap-int.h.

Definition at line 661 of file ldap-int.h.

Definition at line 610 of file ldap-int.h.

Definition at line 597 of file ldap-int.h.

Definition at line 735 of file ldap-int.h.

const char ber_int_t const char char ber_int_t LDAPControl LDAPControl ber_int_t timelimit

Definition at line 678 of file ldap-int.h.

struct timeval* timeout

Definition at line 621 of file ldap-int.h.

struct timeval* tm

Definition at line 609 of file ldap-int.h.

ber_len_t char*** toksp

Definition at line 589 of file ldap-int.h.

ber_socket_t struct timeval* tvp

Definition at line 613 of file ldap-int.h.

Definition at line 658 of file ldap-int.h.

Definition at line 653 of file ldap-int.h.