#!/bin/bash
#<!--$AUUGid: www/data/saauug/events/2005/meetings/ldap/files/bin/addfile,v 1.1 2005/08/05 11:56:57 benjsc Exp $-->

if [ "x$#" = "x0" ]; then
  echo "usage: "`basename ${0}`" ldif-file-name"
  exit 0
fi

if [ "x${1}" = "x-l" ]; then
  grep ldapadd $0
  exit 0
fi

if [ ! -f ${1} ]; then
  echo "file not found: "${1}
  echo "usage: "`basename ${0}`" ldif-file-name"
  exit 0
fi

ldapadd -v -h ldap4 -x -D cn=Manager,dc=shellgrit,dc=com -w secretmaster -f ${1}

