3 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
5 ## Copyright 1998-2006 The OpenLDAP Foundation.
6 ## All rights reserved.
8 ## Redistribution and use in source and binary forms, with or without
9 ## modification, are permitted only as authorized by the OpenLDAP
12 ## A copy of this license is available in the file LICENSE in the
13 ## top-level directory of the distribution or, alternatively, at
14 ## <http://www.OpenLDAP.org/license.html>.
25 . $SRCDIR/scripts/defines.sh $SRCDIR $BDB2
27 # Sample NIS database in LDIF format
28 NIS_LDIF=$SRCDIR/data/nis_sample.ldif
30 # Sample configuration file for your LDAP server
31 if test "$BACKEND" = "bdb2" ; then
32 NIS_CONF=$DATADIR/slapd-bdb2-nis-master.conf
34 NIS_CONF=$DATADIR/slapd-nis-master.conf
37 echo "Cleaning up in $DBDIR..."
41 echo "Running slapadd to build slapd database..."
42 $SLAPADD -f $NIS_CONF -l $NIS_LDIF
45 echo "slapadd failed!"
49 echo "Starting slapd on TCP/IP port $PORT..."
50 $SLAPD -f $NIS_CONF -p $PORT -d $LVL $TIMING > $MASTERLOG 2>&1 &
53 echo ">>>>> LDAP server with NIS schema is up! PID=$PID"