##
PROGRAMS=ldapd
XPROGRAMS=sldapd
-SRCS = main.c detach.c setproctitle.c request.c bind.c result.c error.c \
+SRCS = main.c detach.c request.c bind.c result.c error.c \
search.c util.c compare.c message.c add.c delete.c modrdn.c modify.c \
abandon.c syntax.c association.c kerberos.c certificate.c
-OBJS = main.o detach.o setproctitle.o request.o bind.o result.o error.o \
+OBJS = main.o detach.o request.o bind.o result.o error.o \
search.o util.o compare.o message.o add.o delete.o modrdn.o modify.o \
abandon.o syntax.o association.o kerberos.o LDAP_tables.o \
certificate.o
sldapd: version.o
$(CC) $(LDFLAGS) -static -o $@ $(OBJS) version.o $(LDFLAGS) $(LIBS) -lresolv
-version.c: $(OBJS) $(LDIR)/liblber/liblber.a
+version.c: $(OBJS) $(LDAP_LIBDIR)/liblber/liblber.a
$(RM) $@
(u=$${USER-root} v=`$(CAT) $(VERSIONFILE)` d=`$(PWD)` h=`$(HOSTNAME)` \
t=`$(DATE)`; $(SED) -e "s|%WHEN%|$${t}|" \
#include <stdio.h>
#include <ac/socket.h>
+#include <ac/string.h> /* get SAFEMEMCPY */
#include <quipu/commonarg.h>
#include <quipu/attrvalue.h>
#define DEFAULT_REFERRAL_TIMEOUT 900 /* DSA connections */
#include "proto-ldapd.h"
+#include "ldap_log.h"
#endif
#include "portable.h"
#include <stdio.h>
+/* ac/socket.h must precede ISODE #includes or p_type must be #undeffed
+ * after it is included. (Because ISODE uses p_type as a field name, and
+ * SunOS 5.5:sys/vtype.h defines it (and ac/socket.h indirectly includes it) */
+#include <ac/socket.h>
#include <quipu/commonarg.h>
#include <quipu/attrvalue.h>
#include <quipu/dap2.h>
#include <quipu/dua.h>
-#include <ac/socket.h>
-
#include "lber.h"
#include "ldap.h"
#include "common.h"
#include "lber.h"
#include "ldap.h"
+#include "ldap_log.h"
void
print_error( struct DSError *e )
#include <quipu/ds_error.h>
#include "lber.h"
+#include "../../libraries/liblber/lber-int.h" /* get struct sockbuf */
#include "ldap.h"
#include "common.h"
#include <ac/ctype.h>
#include <ac/socket.h>
+#include <ac/string.h> /* get SAFEMEMCPY */
#include <quipu/commonarg.h>
#include <quipu/attrvalue.h>
#include <quipu/dua.h>
#include "lber.h"
+#include "../../libraries/liblber/lber-int.h" /* get struct berelement */
#include "ldap.h"
#include "common.h"
* and then the actual request choice.
*/
- ber_init( &ber, 0 );
+ ber_init_w_nullc( &ber, 0 );
if ( (tag = ber_get_next( clientsb, &len, &ber )) == LBER_DEFAULT ) {
Debug( LDAP_DEBUG_ANY, "ber_get_next failed\n", 0, 0, 0 );
log_and_exit( 1 );
#include <quipu/dua.h>
#include "lber.h"
+#include "../../libraries/liblber/lber-int.h" /* get struct berelement */
#include "ldap.h"
#include "common.h"
#include <quipu/dua.h>
#include "lber.h"
+#include "../../libraries/liblber/lber-int.h" /* get struct berelement */
#include "ldap.h"
#include "common.h"
#include <quipu/dua.h>
#include "lber.h"
+#include "../../libraries/liblber/lber-int.h" /* get struct berelement */
#include "ldap.h"
#include "common.h"