mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-09 16:34:45 -05:00
add back-meta to relay testing; disabled by now, needs work to line up with the rwm overlay
This commit is contained in:
parent
7b6d707d92
commit
407e58343b
6 changed files with 67 additions and 18 deletions
|
|
@ -28,6 +28,8 @@ argsfile ./test-db/slapd.args
|
|||
#relaymod#moduleload back_relay.la
|
||||
#ldapmod#modulepath ../servers/slapd/back-ldap/
|
||||
#ldapmod#moduleload back_ldap.la
|
||||
#metamod#modulepath ../servers/slapd/back-meta/
|
||||
#metamod#moduleload back_meta.la
|
||||
#monitormod#modulepath ../servers/slapd/back-monitor/
|
||||
#monitormod#moduleload back_monitor.la
|
||||
#rwmmod#modulepath ../servers/slapd/overlays/
|
||||
|
|
@ -52,15 +54,21 @@ suffix "o=Example,c=US"
|
|||
#ldap#uri "@URI1@"
|
||||
#ldap#overlay rwm
|
||||
#ldap#rwm-suffixmassage "dc=example,dc=com"
|
||||
#meta#uri "@URI1@o=Example,c=US"
|
||||
#meta#suffixmassage "o=Example,c=US" "dc=example,dc=com"
|
||||
|
||||
database @RELAY@
|
||||
suffix "o=Esempio,c=IT"
|
||||
### back-ldap needs URI
|
||||
#ldap#uri "@URI1@"
|
||||
### use this alternate form of back-relay, without the "relay" directive,
|
||||
### which causes the target database to be selected after DN massaging
|
||||
overlay rwm
|
||||
rwm-suffixmassage "dc=example,dc=com"
|
||||
#relay#overlay rwm
|
||||
#relay#rwm-suffixmassage "dc=example,dc=com"
|
||||
### back-ldap needs URI
|
||||
#ldap#uri "@URI1@"
|
||||
#ldap#overlay rwm
|
||||
#ldap#rwm-suffixmassage "dc=example,dc=com"
|
||||
#meta#uri "@URI1@o=Esempio,c=IT"
|
||||
#meta#suffixmassage "o=Esempio,c=IT" "dc=example,dc=com"
|
||||
|
||||
database @RELAY@
|
||||
suffix "o=Beispiel,c=DE"
|
||||
|
|
@ -70,5 +78,7 @@ suffix "o=Beispiel,c=DE"
|
|||
#ldap#uri "@URI1@"
|
||||
#ldap#overlay rwm
|
||||
#ldap#rwm-suffixmassage "dc=example,dc=com"
|
||||
#meta#uri "@URI1@o=Beispiel,c=DE"
|
||||
#meta#suffixmassage "o=Beispiel,c=DE" "dc=example,dc=com"
|
||||
|
||||
#monitor#database monitor
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ AC_bdb=@BUILD_BDB@
|
|||
AC_hdb=@BUILD_HDB@
|
||||
AC_ldap=ldap@BUILD_LDAP@
|
||||
AC_ldbm=@BUILD_LDBM@
|
||||
AC_meta=meta@BUILD_META@
|
||||
AC_monitor=@BUILD_MONITOR@
|
||||
AC_relay=relay@BUILD_RELAY@
|
||||
AC_sql=sql@BUILD_SQL@
|
||||
|
|
@ -45,7 +46,7 @@ AC_WITH_SASL=@WITH_SASL@
|
|||
AC_WITH_TLS=@WITH_TLS@
|
||||
AC_WITH_MODULES_ENABLED=@WITH_MODULES_ENABLED@
|
||||
|
||||
export AC_bdb AC_hdb AC_ldap AC_ldbm AC_monitor AC_relay AC_sql
|
||||
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_WITH_SASL AC_WITH_TLS AC_WITH_MODULES_ENABLED
|
||||
|
||||
|
|
|
|||
|
|
@ -38,6 +38,7 @@ sed -e "s/@BACKEND@/${BACKEND}/" \
|
|||
-e "s/^#${RELAY}#//" \
|
||||
-e "s/^#${BACKENDTYPE}#//" \
|
||||
-e "s/^#${AC_ldap}#//" \
|
||||
-e "s/^#${AC_meta}#//" \
|
||||
-e "s/^#${AC_relay}#//" \
|
||||
-e "s/^#${AC_sql}#//" \
|
||||
-e "s/^#${RDBMS}#//" \
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@
|
|||
|
||||
MONITORDB=${AC_monitor-no}
|
||||
BACKLDAP=${AC_ldap-ldapno}
|
||||
BACKMETA=${AC_meta-metano}
|
||||
BACKRELAY=${AC_relay-relayno}
|
||||
BACKSQL=${AC_sql-sqlno}
|
||||
RDBMS=${SLAPD_USE_SQL-rdbmsno}
|
||||
|
|
|
|||
|
|
@ -13,12 +13,8 @@
|
|||
## top-level directory of the distribution or, alternatively, at
|
||||
## <http://www.OpenLDAP.org/license.html>.
|
||||
|
||||
if test $RWM = rwmno ; then
|
||||
echo "Rewrite/remap overlay not available, test skipped"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
mkdir -p $TESTDIR $DBDIR1
|
||||
echo "Testing virtual naming context mapping with $RELAY backend..."
|
||||
echo ""
|
||||
|
||||
echo "Starting slapd on TCP/IP port $PORT1..."
|
||||
. $CONFFILTER $BACKEND $MONITORDB < $RWMCONF > $CONF1
|
||||
|
|
@ -309,6 +305,3 @@ fi
|
|||
|
||||
test $KILLSERVERS != no && kill -HUP $KILLPIDS
|
||||
|
||||
echo ">>>>> Test succeeded"
|
||||
exit 0
|
||||
|
||||
|
|
|
|||
|
|
@ -16,11 +16,54 @@
|
|||
echo "running defines.sh"
|
||||
. $SRCDIR/scripts/defines.sh
|
||||
|
||||
if test $BACKRELAY = relayno ; then
|
||||
echo "relay backend not available, test skipped"
|
||||
if test $RWM = rwmno ; then
|
||||
echo "Rewrite/remap overlay not available, test skipped"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
RELAY=relay
|
||||
. $SRCDIR/scripts/relay
|
||||
echo ""
|
||||
|
||||
RELAYS=
|
||||
# back-relay
|
||||
if test $BACKRELAY = relayno ; then
|
||||
echo "relay backend not available, test skipped"
|
||||
else
|
||||
RELAYS="$RELAYS relay"
|
||||
fi
|
||||
|
||||
# back-ldap
|
||||
if test $BACKLDAP = ldapno ; then
|
||||
echo "ldap backend not available, test skipped"
|
||||
else
|
||||
RELAYS="$RELAYS ldap"
|
||||
fi
|
||||
|
||||
# back-meta - disable by now, needs work to line up with rwm
|
||||
if test $BACKMETA = metano ; then
|
||||
echo "meta backend not available, test skipped"
|
||||
else
|
||||
# RELAYS="$RELAYS meta"
|
||||
echo "==> back-meta disabled by now, needs work"
|
||||
echo ""
|
||||
fi
|
||||
|
||||
first=1
|
||||
for RELAY in $RELAYS ; do
|
||||
if test $first = 1 ; then
|
||||
first=0
|
||||
else
|
||||
echo ">>>>> waiting 10 seconds for things to exit"
|
||||
sleep 10
|
||||
echo ""
|
||||
|
||||
rm -rf $TESTDIR
|
||||
fi
|
||||
|
||||
mkdir -p $TESTDIR $DBDIR1
|
||||
|
||||
. $SRCDIR/scripts/relay
|
||||
done
|
||||
|
||||
echo ">>>>> Test succeeded"
|
||||
exit 0
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue