19 lines
411 B
Bash
19 lines
411 B
Bash
#!/bin/sh
|
|
#
|
|
# $OpenBSD: mod_auth_ldap-enable,v 1.1.1.1 2003/05/04 23:09:01 henning Exp $
|
|
|
|
MODULE=!!PREFIX!!/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
|