#!/bin/sh
#
# $OpenBSD: mod_auth_ldap-enable,v 1.1.1.1 2003/05/04 23:09:01 henning Exp $

MODULE=/usr/local/lib/auth_ldap.so

if [ `id -u` -ne 0 ]; then
    echo "You must be root to run this script."
    exit
fi

if [ ! -f ${MODULE} ]; then
    echo "Cannot find auth_ldap module (${MODULE})"
    exit 1
else
    echo "Enabling LDAP Authentication module..."
    /usr/sbin/apxs -i -a -n auth_ldap ${MODULE}
fi
