From 10a3a1b9c954dd16138f17a0b4b3a7b8d952b1d6 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Wed, 15 May 2002 05:17:08 +0000 Subject: [PATCH] Patch: back-shell/searchexample.* nitpicks (ITS#1816) ================ Written by Hallvard B. Furuseth and placed into the public domain. This software is not subject to any license of the University of Oslo. ================ searchexample.conf needs core.schema, otherwise it fails on the suffix DN. searchexample.sh has a spurious 'sleep', probably from testing. Also, I suggest 'chmod +x searchexample.sh'. Hallvard B. Furuseth , May 2002. --- servers/slapd/back-shell/searchexample.conf | 2 ++ servers/slapd/back-shell/searchexample.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/servers/slapd/back-shell/searchexample.conf b/servers/slapd/back-shell/searchexample.conf index cd787b4b5a..41fda5e5d0 100644 --- a/servers/slapd/back-shell/searchexample.conf +++ b/servers/slapd/back-shell/searchexample.conf @@ -2,6 +2,8 @@ ## Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved. ## COPYING RESTRICTIONS APPLY, see COPYRIGHT file +include /usr/local/etc/openldap/schema/core.schema + database shell suffix "dc=example,dc=com" search /usr/local/etc/searchexample.sh diff --git a/servers/slapd/back-shell/searchexample.sh b/servers/slapd/back-shell/searchexample.sh index b4c0adb0a1..f93ac5e769 100644 --- a/servers/slapd/back-shell/searchexample.sh +++ b/servers/slapd/back-shell/searchexample.sh @@ -23,7 +23,7 @@ LOGIN=`echo $FILTER | sed -e 's/.*=\(.*\))/\1/'` PWLINE=`grep -i "^$LOGIN" /etc/passwd` -sleep 60 +#sleep 60 # if we found an entry that matches if [ $? = 0 ]; then echo $PWLINE | awk -F: '{ -- 2.39.5