#include "lber.h"
#include "ldap.h"
+
+#if LDAP_VERSION < LDAP_VERSION3
+/* quick fix until we have ldap_set_options */
+#include "../libraries/libldap/ldap-int.h"
+#endif
+
#include <ldapconfig.h>
#define USER 0
#include <lber.h>
#include <ldap.h>
+#if LDAP_VERSION < LDAP_VERSION3
+/* quick fix until we have ldap_set_options */
+#include "../libraries/libldap/ldap-int.h"
+#endif
+
#include <ldapconfig.h>
#define DEFAULT_PORT 79
#include "lber.h"
#include "ldap.h"
+
+#if LDAP_VERSION < LDAP_VERSION3
+/* quick fix until we have ldap_set_options */
+#include "../libraries/libldap/ldap-int.h"
+#endif
+
#include "disptmpl.h"
#include "ldapconfig.h"
#include "ldapconfig.h"
#include "lber.h"
#include "ldap.h"
+
+#if LDAP_VERSION < LDAP_VERSION3
+/* quick fix until we have ldap_set_options */
+#include "../libraries/libldap/ldap-int.h"
+#endif
+
#include "disptmpl.h"
int debug;
#include "lber.h"
#include "ldap.h"
+
+#if LDAP_VERSION < LDAP_VERSION3
+/* quick fix until we have ldap_set_options */
+#include "../libraries/libldap/ldap-int.h"
+#endif
+
#include "disptmpl.h"
#include "ldapconfig.h"
#include "lber.h"
#include "ldap.h"
+
+#if LDAP_VERSION < LDAP_VERSION3
+/* quick fix until we have ldap_set_options */
+#include "../libraries/libldap/ldap-int.h"
+#endif
+
#include "ldapconfig.h"
#define USER 0x01
#include "lber.h"
#include "ldap.h"
+
+#if LDAP_VERSION < LDAP_VERSION3
+/* quick fix until we have ldap_set_options */
+#include "../libraries/libldap/ldap-int.h"
+#endif
+
#include "disptmpl.h"
#include "rcpt500.h"
#include <lber.h>
#include <ldap.h>
+
#include <ldapconfig.h>
#include "ud.h"
#include "portable.h"
+#if LDAP_VERSION < LDAP_VERSION3
+/* quick fix until we have ldap_set_options */
+#include "../libraries/libldap/ldap-int.h"
+#endif
+
#ifdef DOS
#define MAX_VALUES 8
#else
typedef struct sockbuf Sockbuf;
#define READBUFSIZ 8192
+typedef struct seqorset Seqorset;
+#define NULLSEQORSET ((Seqorset *) 0)
+
/* structure for returning a sequence of octet strings + length */
struct berval {
unsigned long bv_len;
#define LDAP_OPT_SUCCESS 0
#define LDAP_OPT_ERROR (-1)
-LDAP_F int ldap_get_option LDAP_P((LDAP *ld, int option, void *outvalue));
-LDAP_F int ldap_set_option LDAP_P((LDAP *ld, int option, void *invalue));
+extern int ldap_debug;
typedef struct ldapapiinfo {
int ldapai_info_version; /* version of LDAPAPIInfo (1) */
char ldctl_iscritical;
} LDAPControl, *PLDAPControl;
-LDAP_F void ldap_control_free LDAP_P(( LDAPControl *ctrl ));
-LDAP_F void ldap_controls_free LDAP_P(( LDAPControl **ctrls ));
-
-
#define LDAP_MAX_ATTR_LEN 100
/*
in function param list warning */
typedef struct timeval LDAPtv;
+LDAP_F int ldap_get_option LDAP_P((LDAP *ld, int option, void *outvalue));
+LDAP_F int ldap_set_option LDAP_P((LDAP *ld, int option, void *invalue));
+
+LDAP_F void ldap_control_free LDAP_P(( LDAPControl *ctrl ));
+LDAP_F void ldap_controls_free LDAP_P(( LDAPControl **ctrls ));
+
/*
* in abandon.c:
*/
LDAP_END_DECL
-#endif /* _LDAP_H */
+#endif /* _LDAP_LOG_H */
LDAP_BEGIN_DECL
-typedef struct berelement {
+struct berelement {
char *ber_buf;
char *ber_ptr;
char *ber_end;
char *ber_rwptr;
BERTranslateProc ber_encode_translate_proc;
BERTranslateProc ber_decode_translate_proc;
-} BerElement;
+};
#define NULLBER ((BerElement *) 0)
-typedef struct sockbuf {
+struct sockbuf {
#ifndef MACOS
int sb_sd;
#else /* MACOS */
#define LBER_NO_READ_AHEAD 0x08 /* read only as much as requested */
int sb_fd;
long sb_max_incoming;
-} Sockbuf;
+};
#define READBUFSIZ 8192
-typedef struct seqorset {
+struct seqorset {
BerElement *sos_ber;
unsigned long sos_clen;
unsigned long sos_tag;
char *sos_first;
char *sos_ptr;
struct seqorset *sos_next;
-} Seqorset;
+};
#define NULLSEQORSET ((Seqorset *) 0)
#endif /* _LBER_INT_H */
* ldap-int.h - defines & prototypes internal to the LDAP library
*/
+#ifndef _LDAP_INT_H
+#define _LDAP_INT_H 1
#include "../liblber/lber-int.h"
#include "ldap_log.h"
* where a response has multiple messages.
*/
-typedef struct ldapmsg {
+struct ldapmsg {
int lm_msgid; /* the message id */
int lm_msgtype; /* the message type */
BerElement *lm_ber; /* the ber encoded message contents */
struct ldapmsg *lm_chain; /* for search - next msg in the resp */
struct ldapmsg *lm_next; /* next response */
unsigned int lm_time; /* used to maintain cache */
-} LDAPMessage;
+};
/*
* structure representing an ldap connection
*/
-typedef struct ldap {
+struct ldap {
Sockbuf ld_sb; /* socket descriptor & buffer */
char *ld_host;
int ld_version;
char **passwdp, int *authmethodp, int freeit );
/* routine to get info needed for re-bind */
#endif /* LDAP_REFERRALS */
-} LDAP;
+};
/*
* in cache.c
LDAP_END_DECL
#endif /* STR_TRANSLATION && LDAP_DEFAULT_CHARSET */
+
+#endif /* _LDAP_INT_H */
#include <fcntl.h>
-#include "lber.h"
-#include "ldap.h"
-
/* including the "internal" defs is legit and nec. since this test routine has
* a-priori knowledge of libldap internal workings.
* hodges@stanford.edu 5-Feb-96
#include <stdio.h>
#include <stdlib.h>
-#include <ac/socket.h>
-#include <ac/string.h>
#include <ac/ctype.h>
+#include <ac/string.h>
#include <ac/time.h>
#ifdef HAVE_SYS_FILE_H
#endif
#include "lber.h"
-#include "ldap.h"
+#include "ldap-int.h"
+#include "ldap_log.h"
#include "disptmpl.h"
#include "ldapconfig.h"
#include "avl.h"
#include "lber.h"
#include "ldap.h"
+#include "ldap_log.h"
+
+#include "../libraries/libldap/ldap-int.h"
+
#include "lthread.h"
#include "lthread_rdwr.h"
#include "ldif.h"
#include "lber.h"
#include "ldap.h"
+#include "ldap_log.h"
+#include "../libraries/libldap/ldap-int.h"
#include "lthread.h"
#include "ldapconfig.h"
#include "ldif.h"