}
}
- if (!modules) { /* no modules in the options, look for @MODULES in the db */
+ if (!modules && strcmp("ldap", ldb->modules->ops->name)) { /* no modules in the options, look for @MODULES in the db (not for ldap) */
int ret, j, k;
char * attrs[] = { "@MODULE" };
struct ldb_message **msg;
int count, msg_count;
LDAPMessage *ldapres, *msg;
+ if (base == NULL) {
+ base = "";
+ }
+
lldb->last_rc = ldap_search_s(lldb->ldap, base, (int)scope,
expression,
discard_const_p(char *, attrs),
-#!/bin/sh
-
-export PATH=/usr/sbin:$PATH
+#!/bin/sh
rm -rf tests/tmp/db
mkdir -p tests/tmp/db
allow update_anon bind_anon_dn
-modulepath /usr/lib/ldap
-moduleload back_bdb
+#modulepath /usr/lib/ldap
+#moduleload back_bdb
defaultsearchbase "o=University of Michigan,c=US"
#!/bin/sh
-export PATH=/usr/sbin:$PATH
-
mkdir -p tests/tmp/db
slapd -f tests/slapd.conf -h "`tests/ldapi_url.sh`" $*
+#!/bin/sh
+
echo "LDB_URL: $LDB_URL"
echo "Adding base elements"
#!/bin/sh
+export PATH=/usr/local/sbin:/usr/sbin:/sbin:$PATH
SCHEMA_NEEDED="core nis cosine inetorgperson openldap"
# setup needed schema files