r3743: auto-support the RH schema location as well
authorAndrew Tridgell <tridge@samba.org>
Mon, 15 Nov 2004 00:31:32 +0000 (00:31 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:05:49 +0000 (13:05 -0500)
source/lib/ldb/tests/test-ldap.sh

index 3e285a39a95bb29b588399a22dd8c81a780f1bc4..37827219c01d91d4f3f7661afa0a6f6300b21ab3 100755 (executable)
@@ -10,6 +10,10 @@ for f in $SCHEMA_NEEDED; do
            ln -s /etc/ldap/schema/$f.schema tests/schema/$f.schema
            continue;
        fi
+       if [ -r /etc/openldap/schema/$f.schema ]; then
+           ln -s /etc/openldap/schema/$f.schema tests/schema/$f.schema
+           continue;
+       fi
 
        echo "ERROR: you need the following OpenLDAP schema files in tests/schema/"
        for f in $SCHEMA_NEEDED; do