]> git.sur5r.net Git - openldap/commitdiff
add support for retcode overlay (configure needs be regenerated)
authorPierangelo Masarati <ando@openldap.org>
Sun, 19 Jun 2005 22:43:00 +0000 (22:43 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sun, 19 Jun 2005 22:43:00 +0000 (22:43 +0000)
configure.in
include/portable.h.in
tests/run.in
tests/scripts/conf.sh
tests/scripts/defines.sh

index 1755722d87e93ca2770a9f585d1f8031b1a5785c..eb1f52fb7c3c792b8aa5629421b39198ece7783c 100644 (file)
@@ -243,7 +243,7 @@ OL_ARG_ENABLE(sql,[    --enable-sql   enable sql backend no|yes|mod],
 dnl ----------------------------------------------------------------
 dnl SLAPD Overlay Options
 Overlays="accesslog denyop dyngroup dynlist glue lastmod ppolicy proxycache \
-       refint rwm syncprov translucent unique"
+       refint retcode rwm syncprov translucent unique"
 
 AC_ARG_WITH(xxslapoverlays,[
 SLAPD Overlay Options:])
@@ -268,6 +268,8 @@ OL_ARG_ENABLE(proxycache,[    --enable-proxycache     Proxy Cache overlay no|yes|m
        no, [no yes mod])
 OL_ARG_ENABLE(refint,[    --enable-refint        Referential Integrity overlay no|yes|mod],
        no, [no yes mod])
+OL_ARG_ENABLE(retcode,[    --enable-retcode      Return Code testing overlay no|yes|mod],
+       no, [no yes mod])
 OL_ARG_ENABLE(rwm,[    --enable-rwm              Rewrite/Remap overlay no|yes|mod],
        no, [no yes mod])
 OL_ARG_ENABLE(syncprov,[    --enable-syncprov    Syncrepl Provider overlay no|yes|mod],
@@ -533,6 +535,7 @@ BUILD_LASTMOD=no
 BUILD_PPOLICY=no
 BUILD_PROXYCACHE=no
 BUILD_REFINT=no
+BUILD_RETCODE=no
 BUILD_RWM=no
 BUILD_SYNCPROV=no
 BUILD_TRANSLUCENT=no
@@ -2877,6 +2880,18 @@ if test "$ol_enable_refint" != no ; then
        AC_DEFINE_UNQUOTED(SLAPD_OVER_REFINT,$MFLAG,[define for Referential Integrity overlay])
 fi
 
+if test "$ol_enable_retcode" != no ; then
+       BUILD_RETCODE=$ol_enable_retcode
+       if test "$ol_enable_retcode" = mod ; then
+               MFLAG=SLAPD_MOD_DYNAMIC
+               SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
+       else
+               MFLAG=SLAPD_MOD_STATIC
+               SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
+       fi
+       AC_DEFINE_UNQUOTED(SLAPD_OVER_RETCODE,$MFLAG,[define for Referential Integrity overlay])
+fi
+
 if test "$ol_enable_rwm" != no ; then
        BUILD_REWRITE=yes
        BUILD_RWM=$ol_enable_rwm
@@ -2991,6 +3006,7 @@ dnl overlays
   AC_SUBST(BUILD_PPOLICY)
   AC_SUBST(BUILD_PROXYCACHE)
   AC_SUBST(BUILD_REFINT)
+  AC_SUBST(BUILD_RETCODE)
   AC_SUBST(BUILD_RWM)
   AC_SUBST(BUILD_SYNCPROV)
   AC_SUBST(BUILD_TRANSLUCENT)
index 9fb57e6f93fa84d99bbca6ae0b8a4b496277e0f9..516d9cc3f5a6942826feccf1e2e0caa3f744e390 100644 (file)
 /* define for Referential Integrity overlay */
 #undef SLAPD_OVER_REFINT
 
+/* define for Return Code testing overlay */
+#undef SLAPD_OVER_RETCODE
+
 /* define for Rewrite/Remap overlay */
 #undef SLAPD_OVER_RWM
 
index 57adb1c58745ea3260d5403600f3cb40aa4b5134..f4a46d47ce078b391d17ab5fcaa94648eceb2ea0 100644 (file)
@@ -37,6 +37,7 @@ AC_glue=glue@BUILD_GLUE@
 AC_pcache=pcache@BUILD_PROXYCACHE@
 AC_ppolicy=ppolicy@BUILD_PPOLICY@
 AC_refint=refint@BUILD_REFINT@
+AC_retcode=retcode@BUILD_RETCODE@
 AC_translucent=translucent@BUILD_TRANSLUCENT@
 AC_unique=unique@BUILD_UNIQUE@
 AC_rwm=rwm@BUILD_RWM@
@@ -48,7 +49,7 @@ AC_WITH_TLS=@WITH_TLS@
 AC_WITH_MODULES_ENABLED=@WITH_MODULES_ENABLED@
 
 export AC_bdb AC_hdb AC_ldap AC_ldbm AC_meta AC_monitor AC_relay AC_sql 
-export AC_glue AC_pcache AC_ppolicy AC_refint AC_unique AC_rwm AC_syncprov
+export AC_glue AC_pcache AC_ppolicy AC_refint AC_retcode AC_rwm AC_unique AC_syncprov
 export AC_translucent AC_WITH_SASL AC_WITH_TLS AC_WITH_MODULES_ENABLED
 
 if test ! -x ../servers/slapd/slapd ; then
index 06cbe3120594bb894b4d40906c1a73b4226622ed..2eb536b29b3702d11713e1a11ee834cb1791f683 100755 (executable)
@@ -35,36 +35,37 @@ fi
 sed -e "s/@BACKEND@/${BACKEND}/"                       \
        -e "s/^#${BACKEND}#//"                          \
        -e "s/@RELAY@/${RELAY}/"                        \
-       -e "s/^#relay-${RELAY}#//"                              \
+       -e "s/^#relay-${RELAY}#//"                      \
        -e "s/^#${BACKENDTYPE}#//"                      \
-       -e "s/^#${AC_glue}#//"                          \
        -e "s/^#${AC_ldap}#//"                          \
        -e "s/^#${AC_meta}#//"                          \
        -e "s/^#${AC_relay}#//"                         \
        -e "s/^#${AC_sql}#//"                           \
                -e "s/^#${RDBMS}#//"                    \
+       -e "s/^#${AC_glue}#//"                          \
        -e "s/^#${AC_pcache}#//"                        \
        -e "s/^#${AC_ppolicy}#//"                       \
        -e "s/^#${AC_refint}#//"                        \
+       -e "s/^#${AC_retcode}#//"                       \
+       -e "s/^#${AC_rwm}#//"                           \
        -e "s/^#${AC_syncprov}#//"                      \
-       -e "s/^#${AC_translucent}#//"           \
+       -e "s/^#${AC_translucent}#//"                   \
        -e "s/^#${AC_unique}#//"                        \
-       -e "s/^#${AC_rwm}#//"                   \
        -e "s/^#${MON}#//"                              \
        -e "s/^#${MONMOD}#//"                           \
        -e "s/^#${SASL}#//"                             \
-       -e "s;@URI1@;${URI1};"  \
-       -e "s;@URI2@;${URI2};"  \
-       -e "s;@URI3@;${URI3};"  \
-       -e "s;@URI4@;${URI4};"  \
-       -e "s;@URI5@;${URI5};"  \
-       -e "s;@URI6@;${URI6};"  \
-       -e "s;@PORT1@;${PORT1};"        \
-       -e "s;@PORT2@;${PORT2};"        \
-       -e "s;@PORT3@;${PORT3};"        \
-       -e "s;@PORT4@;${PORT4};"        \
-       -e "s;@PORT5@;${PORT5};"        \
-       -e "s;@PORT6@;${PORT6};"        \
-       -e "s/@SASL_MECH@/${SASL_MECH}/"        \
+       -e "s;@URI1@;${URI1};"                          \
+       -e "s;@URI2@;${URI2};"                          \
+       -e "s;@URI3@;${URI3};"                          \
+       -e "s;@URI4@;${URI4};"                          \
+       -e "s;@URI5@;${URI5};"                          \
+       -e "s;@URI6@;${URI6};"                          \
+       -e "s;@PORT1@;${PORT1};"                        \
+       -e "s;@PORT2@;${PORT2};"                        \
+       -e "s;@PORT3@;${PORT3};"                        \
+       -e "s;@PORT4@;${PORT4};"                        \
+       -e "s;@PORT5@;${PORT5};"                        \
+       -e "s;@PORT6@;${PORT6};"                        \
+       -e "s/@SASL_MECH@/${SASL_MECH}/"                \
        -e "s/@CACHETTL@/${CACHETTL}/"                  \
        -e "s/@ENTRY_LIMIT@/${CACHE_ENTRY_LIMIT}/"
index 2596181bbfc06979301bcf783d7d2d4f473c4932..71c2ef77d4cbf0351dc5faa08abb5aace56a84cd 100755 (executable)
@@ -24,6 +24,7 @@ GLUE=${AC_glue-glueno}
 PROXYCACHE=${AC_pcache-pcacheno}
 PPOLICY=${AC_ppolicy-ppolicyno}
 REFINT=${AC_refint-refintno}
+RETCODE=${AC_retcode-retcodeno}
 RWM=${AC_rwm-rwmno}
 TRANSLUCENT=${AC_translucent-translucentno}
 UNIQUE=${AC_unique-uniqueno}
@@ -72,6 +73,7 @@ REFSLAVECONF=$DATADIR/slapd-ref-slave.conf
 SCHEMACONF=$DATADIR/slapd-schema.conf
 GLUECONF=$DATADIR/slapd-glue.conf
 REFINTCONF=$DATADIR/slapd-refint.conf
+RETCODECONF=$DATADIR/slapd-retcode.conf
 UNIQUECONF=$DATADIR/slapd-unique.conf
 LIMITSCONF=$DATADIR/slapd-limits.conf
 DNCONF=$DATADIR/slapd-dn.conf
@@ -191,6 +193,7 @@ BABSDN="cn=Barbara Jensen,ou=Information Technology DivisioN,OU=People,dc=exampl
 BJORNSDN="cn=Bjorn Jensen,ou=Information Technology DivisioN,OU=People,dc=example,dc=com"
 JAJDN="cn=James A Jones 1,ou=Alumni Association,ou=People,dc=example,dc=com"
 REFINTDN="cn=Manager,o=refint"
+RETCODEDN="ou=RetCodes,$BASEDN"
 UNIQUEDN="cn=Manager,o=unique"
 EMPTYDNDN="cn=Manager,c=US"
 TRANSLUCENTROOT="o=translucent"