]> git.sur5r.net Git - openldap/commitdiff
Patch: back-shell/searchexample.* nitpicks (ITS#1816)
authorKurt Zeilenga <kurt@openldap.org>
Wed, 15 May 2002 05:17:08 +0000 (05:17 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 15 May 2002 05:17:08 +0000 (05:17 +0000)
================
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 <h.b.furuseth@usit.uio.no>, May 2002.

servers/slapd/back-shell/searchexample.conf
servers/slapd/back-shell/searchexample.sh

index cd787b4b5a3f5a668746a3fc545b5c254cdee625..41fda5e5d029ebf11cb8156a00d0caac7358f832 100644 (file)
@@ -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
index b4c0adb0a18bb413edf79aabb64d55240012d64c..f93ac5e769f5bebff6a5218ff910da76d2408dd3 100644 (file)
@@ -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: '{