if [ "X$LDIF2LDBM" = "X" ]; then
if [ -x /usr/local/etc/ldif2ldbm ]; then
LDIF2LDBM="/usr/local/etc/ldif2ldbm"
elif [ -x /usr/local/sbin/ldif2ldbm ]; then
LDIF2LDBM="/usr/local/sbin/ldif2ldbm"
elif [ -x /usr/sbin/ldif2ldbm ]; then
LDIF2LDBM="/usr/sbin/ldif2ldbm"
elif [ -x "$NSHOME/bin/slapd/server/ns-slapd" ]; then
LDIF2LDBM="$NSHOME/bin/slapd/server/ns-slapd ldif2db -f $NSHOME/slapd-$serverID"
elif [ -x /usr/iplanet/servers/bin/slapd/server/dsimport ]; then
LDIF2LDBM="/usr/iplanet/servers/bin/slapd/server/dsimport"
elif [ -x /usr/local/sbin/slapadd ]; then
SLAPADD="/usr/local/sbin/slapadd"
elif [ -x /usr/sbin/slapadd ]; then
SLAPADD="/usr/sbin/slapadd"
else
echo "Can't find ldif2ldbm or slapadd!"
exit 2
fi
fi