mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-01 04:29:35 -05:00
new slapadd options
-p : promote : If the ldif file contains syncConsumerSubentries, convert
them to a single syncProviderSubentry. Its contextCSN
attribute has the largest value of the syncreplCookie
attributes of the syncConsumerSubentries.
syncProviderSubentry in the ldif file is retained.
-p -w : promote : Recalculate contextCSN based on entryCSN of each entry.
create Existing syncConsumerSubentries and syncProviderSubentry
are ignored and not added to the directory.
-r : demote : If the ldif file contains syncProviderSubentry, convert it
to a syncConsumerSubentry having the default syncrepl id
of 0. syncConsumerSubentries in the ldif file are retained.
-r -w : demote : Recalculate syncreplCookie based on entryCSN of each entry.
create Existing syncConsumerSubentries and syncProviderSubentry
are ignored and not added to the directory. The default
syncrepl id of 0 will be used for the new
syncConsumerSubentry.
-r -w -i %d[,%d]* : Using the comma separated list followed by the -i option,
it is possible to create multiple syncConsumerSubentries
having the syncrepl ids specified in the list.
syncreplCookie values of these sycnConsumerSubentries
will have the same value, either from the maximum
entryCSN value or from the contextCSN value of the
syncProviderSubentry.
87 lines
2.9 KiB
Makefile
87 lines
2.9 KiB
Makefile
# $OpenLDAP$
|
|
## Copyright 1998-2003 The OpenLDAP Foundation, All Rights Reserved.
|
|
## COPYING RESTRICTIONS APPLY, see COPYRIGHT file
|
|
#-----------------------------------------------------------------------------
|
|
# Portions Copyright (c) 1995 Regents of the University of Michigan.
|
|
# All rights reserved.
|
|
#
|
|
# Redistribution and use in source and binary forms are permitted
|
|
# provided that this notice is preserved and that due credit is given
|
|
# to the University of Michigan at Ann Arbor. The name of the University
|
|
# may not be used to endorse or promote products derived from this
|
|
# software without specific prior written permission. This software
|
|
# is provided ``as is'' without express or implied warranty.
|
|
#
|
|
# Stand alone LDAP server tools makefile
|
|
#
|
|
#-----------------------------------------------------------------------------
|
|
|
|
LDAP_INCDIR= ../../../include
|
|
LDAP_LIBDIR= ../../../libraries
|
|
|
|
SLAP_DIR=../
|
|
XDEFS = $(MODULES_CPPFLAGS)
|
|
XLDFLAGS = $(MODULES_LDFLAGS)
|
|
|
|
XLIBS = $(SLAPD_L) $(LDBM_LIBS)
|
|
XXLIBS = $(SLAPD_LIBS) \
|
|
$(LDBM_LIBS) $(SECURITY_LIBS) \
|
|
$(LDIF_LIBS) $(LUTIL_LIBS)
|
|
XXXLIBS = $(LTHREAD_LIBS)
|
|
SLAPI_DEP_LIBS = $(LIBS) @LIBSLAPITOOLS@ @SLAPI_LIBS@ $(MODULES_LIBS)
|
|
|
|
STATIC_DEPENDS=@SLAPD_NO_STATIC@ ../libbackends.a
|
|
|
|
PROGRAMS=slapadd slapcat slapindex slappasswd
|
|
|
|
SRCS = mimic.c slapcommon.c \
|
|
slapadd.c slapcat.c slapindex.c slappasswd.c
|
|
|
|
SLAPD_OBJS = ../globals.o ../config.o ../ch_malloc.o ../cr.o ../backend.o \
|
|
../module.o ../aclparse.o ../filterentry.o ../schema.o \
|
|
../schema_check.o ../schema_init.o ../schema_prep.o \
|
|
../schemaparse.o ../ad.o ../at.o ../mr.o ../oc.o \
|
|
../syntax.o ../acl.o ../phonetic.o ../attr.o ../value.o \
|
|
../entry.o ../dn.o ../filter.o ../str2filter.o ../ava.o \
|
|
../init.o ../controls.o ../kerberos.o ../passwd.o \
|
|
../index.o ../extended.o ../starttls.o ../sets.o ../mra.o \
|
|
../referral.o ../backglue.o ../oidm.o ../mods.o ../operation.o \
|
|
../cancel.o ../sl_malloc.o ../backover.o ../ctxcsn.o ../syncrepl.o
|
|
|
|
SLAPOBJS = $(SLAPD_OBJS) slapcommon.o mimic.o
|
|
|
|
all-local: build-progs
|
|
|
|
build-progs: $(PROGRAMS)
|
|
|
|
#
|
|
# SLAP Tools
|
|
#
|
|
slapadd: slapadd.o $(STATIC_DEPENDS) $(SLAPOBJS) $(SLAPD_L)
|
|
$(LTLINK) -o $@ slapadd.o $(SLAPOBJS) $(STATIC_DEPENDS) \
|
|
$(SLAPI_DEP_LIBS)
|
|
|
|
slapcat: slapcat.o $(STATIC_DEPENDS) $(SLAPOBJS) $(SLAPD_L)
|
|
$(LTLINK) -o $@ slapcat.o $(SLAPOBJS) $(STATIC_DEPENDS) \
|
|
$(SLAPI_DEP_LIBS)
|
|
|
|
slapindex: slapindex.o $(STATIC_DEPENDS) $(SLAPOBJS) $(SLAPD_L)
|
|
$(LTLINK) -o $@ slapindex.o $(SLAPOBJS) $(STATIC_DEPENDS) \
|
|
$(SLAPI_DEP_LIBS)
|
|
|
|
slappasswd: slappasswd.o $(SLAPD_L)
|
|
$(LTLINK) -o $@ slappasswd.o $(LIBS)
|
|
|
|
clean-local: FORCE
|
|
$(RM) $(PROGRAMS) $(XPROGRAMS) $(XSRCS) *.o core .libs/* *.exe
|
|
|
|
depend-local: FORCE
|
|
$(MKDEP) $(DEFS) $(DEFINES) $(SRCS)
|
|
|
|
install-local: FORCE
|
|
-$(MKDIR) $(DESTDIR)$(sbindir)
|
|
@for bin in $(PROGRAMS); do \
|
|
$(LTINSTALL) $(INSTALLFLAGS) -s -m 755 \
|
|
$$bin$(EXEEXT) $(DESTDIR)$(sbindir); \
|
|
done
|
|
|