Commit Graph

168 Commits

Author SHA1 Message Date
Howard Chu
52249ffc34 Added test for backend glue. Tests using slapadd/ldapsearch then starts
over using ldapadd/ldapsearch. Order of results is significant, and
differs from order in data/test-ordered.ldif (thus data/test-glued.ldif
is needed.)
2002-01-11 09:26:01 +00:00
Kurt Zeilenga
f555d36eb2 Minor cleanup 2001-12-25 20:02:13 +00:00
Kurt Zeilenga
39bc94082a Fix minor error in error text handling
Fix invalid structural object class chains in test schema
2001-12-19 23:41:31 +00:00
Howard Chu
db1dce650b One more seeAlso DN to squash. 2001-12-06 13:21:36 +00:00
Howard Chu
32a5c16f75 Strip whitespace from DN-valued attributes. 2001-12-06 07:18:18 +00:00
Howard Chu
95b173fbb0 Turn off syslog on slapd 2001-12-06 06:42:56 +00:00
Howard Chu
f0b56c3444 Stripped whitespace between entry DN components. 2001-12-06 06:40:09 +00:00
Kurt Zeilenga
3787c4c7d7 Allow an object class to be provided in an attribute description list,
treated as a request for all required and allowed attributes of the class.
This allows:
	ldapsearch (objectClass=*) inetOrgPerson
	(requests return of all attributes of inetOrgPerson)
and
	ldapsearch (objectClass=*) extensibleObject
	(requests return of all attributes, e.g., "+" "*")
2001-12-06 01:02:11 +00:00
Pierangelo Masarati
754258af38 better strip of diff marks 2001-12-05 09:35:31 +00:00
Pierangelo Masarati
b3b4baeb3f illegal extra space in DN ... (right?) 2001-12-04 20:12:49 +00:00
Kurt Zeilenga
99a6d0a552 Use -h URL, not -p port 2001-11-28 02:20:36 +00:00
Pierangelo Masarati
b6ff5c4d50 cleanup 2001-11-05 08:52:01 +00:00
Pierangelo Masarati
7c846b4cc9 more meaningful subtree replication test 2001-11-03 16:59:06 +00:00
Pierangelo Masarati
f65d9b3085 Subtree replication test 2001-11-02 15:39:43 +00:00
Pierangelo Masarati
7f79cd0047 there's a bug in the test, because the 'multilinedescription' attribute is not defined anywhere; I trimmed it and added modrdn tests as well 2001-10-09 18:11:05 +00:00
Kurt Zeilenga
2f80480ef0 Tru64 diff does support "diff foo /dev/null",
replace with "diff foo - < /dev/null"
2001-10-02 08:27:18 +00:00
Howard Chu
4eaad48247 Added optional 3rd parameter, to make the script display the slapd pid
and wait. User must hit <NewLine> to continue. This gives the opportunity
to attach a debugger to the slapd before proceeding with the test.
2001-09-22 05:34:22 +00:00
Kurt Zeilenga
733d6296a6 Fix undefined filter parsing 2001-06-16 02:20:48 +00:00
Kurt Zeilenga
4c3ab6bf69 Don't set directory in backend LDBM for now 2001-06-07 18:00:16 +00:00
Kurt Zeilenga
8dda2d0290 Disable #ldbm# options for now (as DBHOME stuff needs rethinking) 2001-06-07 17:57:13 +00:00
Kurt Zeilenga
85571183cc s/#LDBM#/#ldbm#/ and back out non-portable /i change to conf.sh 2001-06-06 21:55:22 +00:00
Kurt Zeilenga
6fb6088888 use case ignore matching for $BACKEND subs 2001-06-06 21:25:29 +00:00
Kurt Zeilenga
3a87993570 Append log 2001-05-07 19:30:22 +00:00
Kurt Zeilenga
2e4e524da2 Add scripts to start a master server 2001-05-06 20:33:13 +00:00
Kurt Zeilenga
777cf6e3a3 Use KILL to kill slurpd.
Not sure why its not shutting down with -INT under FreeBSD 4,
but I have no time to figure this out.
2001-05-04 22:03:45 +00:00
Kurt Zeilenga
0d41df6ff8 Use kill -INT to kill slurpd 2001-05-04 04:05:56 +00:00
Kurt Zeilenga
f417a66feb Add extra spaces to babs' DN. 2000-10-21 03:26:49 +00:00
Kurt Zeilenga
659e5dac55 Use $MANAGERDN to update one of the passwords (to test proxy support) 2000-10-11 02:14:57 +00:00
Kurt Zeilenga
0c3344eef3 Fix typo in last commit 2000-10-01 22:49:07 +00:00
Kurt Zeilenga
b8091cee87 Hack test environment to support multiple backends using
one set of slapd.conf files.
2000-10-01 22:46:52 +00:00
Kurt Zeilenga
d4dee7c427 Don't fail if backend doesn't support indexing 2000-09-28 02:29:04 +00:00
Kurt Zeilenga
c1aeb0b9ed Use ordered input to slapadd(8) as required by back-bdb 2000-09-26 20:28:55 +00:00
Kurt Zeilenga
08d397f65d Use root-dse to verify schema files 2000-09-13 14:31:22 +00:00
Kurt Zeilenga
e651635801 Just catch error, don't explain it 2000-09-13 01:16:10 +00:00
Randy Kunkee
b8569b2b1d Grep for PRNG message in $SEARCHOUT to make sure error is caught. 2000-09-10 19:38:21 +00:00
Kurt Zeilenga
6c6b4d2895 Add a root dse test to flush out misc problems (like TLS PRNG) 2000-09-08 05:38:08 +00:00
Kurt Zeilenga
d7f3cdfc7b Update based upon ldappasswd(1) usage change 2000-09-06 18:55:31 +00:00
Kurt Zeilenga
57deefc94f Working slapindex! 2000-07-26 19:48:02 +00:00
Kurt Zeilenga
c49960df72 Add infrastructure for reindex testing 2000-07-26 18:24:44 +00:00
Kurt Zeilenga
a73b210d5f Rename LDIF2LDBM to SLAPADD 2000-07-26 18:13:38 +00:00
Kurt Zeilenga
d76bbdab91 Replace diff -q with diff >/dev/null for portability reasons 2000-07-20 02:23:00 +00:00
Kurt Zeilenga
1e562b0d1f Make it all work. 2000-07-16 00:14:08 +00:00
Kurt Zeilenga
daacf23672 Report return code on failure 2000-07-04 22:11:12 +00:00
Kurt Zeilenga
20e6dcec3b Improved but still broken client tools. 2000-07-04 21:49:00 +00:00
Kurt Zeilenga
7ced460520 Update slurpd to use LDAPv3 w/ ManageDSAit
Remove slurpd kbind support as this requires LDAPv2
Backout back-ldbm/referrals.c update_ndn hack
2000-06-25 22:45:28 +00:00
Kurt Zeilenga
6020fe58e8 Modified slapd to be slurpd friendly.
Slurpd incorrectly sends a separate attribute for each value of an
	attribute which caused slapd to complain.  Hacked slapd/add.c
	to merge values.
	Slurpd uses version 2 and hence cannot set ManageDSAit.  Hack
	slapd/back-ldbm/referral.c such that if update_ndn matches
	o_ndn, no referrals are returned.
Fix replication tests
	ldapmodify must be made against master as no rebind proc exists
	final ldapsearch should not chase
Fix referral tests
	Use -C option as needed
2000-06-25 20:07:40 +00:00
Kurt Zeilenga
5f20cf1ed5 Modify ldapsearch(1) significantly. Now handles LDAPv3 search
references, extended results, and extended partial results.  LDIF
extended to support these new features and reported version 2.
-L now limits output to LDIFv1 for compatibility reasons.  No
-L is now LDIFv2.  Old alternative form is no longer supported.

Use LDAP_TMPDIR (in ldap_config.h) instead of hardcoded /tmp
Use LDAP_FILE_URI_PREFIX (in ldap_config.h) instead of hardcoded
	file://tmp/
2000-06-25 00:35:17 +00:00
Kurt Zeilenga
d0afc90110 Use $CMP, not cmp 2000-05-28 19:53:37 +00:00
Kurt Zeilenga
df5bbc2d1d Use "diff -i -q" instead of "cmp" 2000-05-27 17:17:47 +00:00
Kurt Zeilenga
570204c9e2 s/cmp/$CMP/ define CMP to cmp (to allow cmp replacements)
Add -n option to slapd
2000-05-27 17:16:10 +00:00
Kurt Zeilenga
b5fab0c88e Use -b "" instead of -b "cn=monitor" as monitor is not yet
implemented in SLAPD_SCHEMA_NOT_COMPAT
2000-05-26 02:48:24 +00:00
Kurt Zeilenga
3bb1b752c6 Remove dependency upon umichPilotPerson (use just newPilotPerson) 2000-05-23 21:36:44 +00:00
Kurt Zeilenga
af7f636c3d s/rfc822mailgroup/groupofnames/ as we don't have a LDAPv3 mailgroup spec 2000-05-23 19:47:54 +00:00
Kurt Zeilenga
971f968d09 ITS#437: use portable syntax to export environment variable 2000-02-03 22:26:00 +00:00
Kurt Zeilenga
7c28aa058c Add password check and generation check.
Modify tests to use -h "ldap://localhost:port/" instead of -p port.
1999-12-12 18:45:06 +00:00
Ben Collins
bf260f1d95 * tests/scripts/defines.sh: add ${LD_LIBRARY_PATH} to the LD_LIBRARY_PATH
export so we don't clobber anything the user already has set
1999-09-29 01:01:13 +00:00
Ben Collins
b7dd47c4cb * configure.in: add --enable-dynamic option for linking our local binaries
with the shared libraries instead of static, defaults to no
* build/lib-shared.mk: if LINK_BINS_DYNAMIC is set we create a symlink to
  the .so and .so.# file along with the .a and .la files
* build/lib.mk: make sure the above links get removed on clean target
* build/top.mk: add define for LINK_BINS_DYNAMIC
* tests/scripts/defines.sh: add export for LD_LIBRARY_PATH so that tests will
  run without requiring installation of libraries when we use --enable-dynamic
  (LD_LIBRARY_PATH is always set, since it can't really hurt).
1999-09-29 00:56:43 +00:00
Kurt Zeilenga
1c52d43149 Fix shbang magic "#! /bin/sh" (correct) vs "#!/bin/sh" (incorrect) 1999-09-10 02:15:03 +00:00
Kurt Zeilenga
41e57c041f Add OpenLDAP RCS id 1999-09-02 00:52:43 +00:00
Kurt Zeilenga
68744ced8d fix dn2id delete bug... breaks modrdn. 1999-08-26 00:51:27 +00:00
Kurt Zeilenga
05532e03f9 Update test005-modrdn to handle success without entries 1999-08-26 00:22:05 +00:00
Kurt Zeilenga
59d3e50ae3 s/ldif2ldbm/slapadd/ 1999-08-22 17:10:23 +00:00
Kurt Zeilenga
c0aa6fa4e6 Rename test001 from test001-ldif2ldbm to test001-slapadd (repo move). 1999-08-22 17:08:41 +00:00
Kurt Zeilenga
e4f6d54877 New dn2id format with base/one/subtree indices (ldbm/bdb2)
New id2entry (id-less) format (ldbm/bdb2)
Removed id2children (ldbm/bdb2)
Added nextid database (ldbm)
Broke ldbmtest
Removed ldif2* tools (ldbm/bdb2)
Added slap tools (slapadd, slapcat, slapindex)
1999-08-17 19:00:59 +00:00
Kurt Zeilenga
ecbb75f930 Update the sleep to 10 seconds (last commit only changed the echo) 1999-08-03 21:47:35 +00:00
Kurt Zeilenga
64be0a23bb 5 seconds just isn't long enough 1999-08-03 21:46:44 +00:00
Hallvard Furuseth
eaf331f4aa Use $SLURPD_DEBUG 1999-08-01 21:33:37 +00:00
Kurt Zeilenga
07b734035d Kludge ldapmodify to accept "version: 1" in LDIF input. 1999-07-31 00:35:30 +00:00
Kurt Zeilenga
b73b0c6158 Enhance LDIF handling
ldapsearch:
    use draft guidelines for determining when to use
    -t only writes binary attributes to files
    -tt writes all attributes to files
    output now lists URL instead of path to such files
    -T dir can be used to specify directory to create temp files in
    -V urlprefix can be used to change the URL prefix
    LDIF is now commented (can be disabled using -LL)
    LDIF now contains version attribute (can be disabled with -LLL)
LDIF:
    put interface changed to allow caller to specify how to encode
    put interface uses draft guidelines for determine when to base64 encode
    wrapping kludged to match old off by one bug
Tests:
    removed trailing space from some attributes (to avoid base64 encoding)
    enabled -LLL in defines.sh (should sed output to remove
        wrapping/comments/redundant separators)
Misc:
    updated codes outputting LDIF to use new put interface
TODO:
    handling of version attribute on input
    handling of URLs on input (ie: fetch URL)
1999-07-30 23:00:02 +00:00
Kurt Zeilenga
17a975b6fb Very crude LDIF changes:
add MODRDN newSuperior support
	add '#' support to ldapmodify (but not slurpd and ldbm tools)
1999-07-29 21:25:39 +00:00
Kurt Zeilenga
73276e84ae Import experimental referral implementation from OPENLDAP_DEVEL_REFERRALS.
Includes support for update referral for each replicated backend.
	Reworked replication test to use update referral.
Includes major rewrite of response encoding codes (result.c).
Includes reworked alias support and eliminates old suffix alias codes
(can be emulated using named alias).
Includes (untested) support for the Manage DSA IT control.
Works in LDAPv2 world.  Still testing in LDAPv3 world.
Added default referral (test009) test.
1999-07-16 02:45:46 +00:00
Hallvard Furuseth
eb9f0359ef fix typo in rm command 1999-07-14 23:13:34 +00:00
Kurt Zeilenga
bf8eaf1f1e ldapmodify/add: Fix -P option
tests: use "ldapadd" instead of "ldapmodify -a"
1999-06-29 01:17:58 +00:00
Kurt Zeilenga
33dd61f035 Add support for "env LDAP_PROTO=n make ldbm" where n is 2 or 3.
3 doesn't work YET.
1999-06-28 23:46:16 +00:00
Juan Gomez
81f47aba80 Add special case tests to avoid regressions. 1999-05-27 00:56:43 +00:00
Juan Gomez
ae2fa90929 Add new output file name. 1999-05-27 00:31:30 +00:00
Juan Gomez
f8e47da5ed Fixed path to ldif file 1999-05-26 23:52:27 +00:00
Juan Gomez
1084618dd2 Point to new dir for ldif file. 1999-05-26 23:27:03 +00:00
Juan Gomez
96092b4d5a Access x added! 1999-05-26 19:18:05 +00:00
Juan Gomez
336e6e604e Trying to change access to this file... 1999-05-26 19:15:57 +00:00
Juan Gomez
5ddc8d4fd8 Make it executable. 1999-05-26 18:46:04 +00:00
Kurt Zeilenga
7d2f6580c0 Filter timestamps, etc., from all test inputs before compare. 1999-05-21 16:50:51 +00:00
Kurt Zeilenga
b1d315c51f Add CLIENTDIR to alllow easy selection of alternative clients directory. 1999-05-21 00:14:38 +00:00
Juan Gomez
6cf71210f7 Script that starts a server with NIS schema and sample database. 1999-05-12 03:22:48 +00:00
Kurt Zeilenga
f23019c37a Disable compare for now. Need to plug in passwd and
expected output files.
1999-04-29 07:03:18 +00:00
Kurt Zeilenga
9b8a5036dd Update back-passwd based on patches from howard.chu@platinum.com.
Modified by me to dn_*() and attr_*() functions and to use
uidObject and to handle search scopes better.  Could use some
more work.  A fun project for anyone wanting to learn how
backends work.
Modified dn_parent and dn_rdn to accept be=NULL (to bypass
be_issuffix check).  These functions should be generalized
and moved to -lldap.  A project for another day.
1999-04-29 06:50:00 +00:00
Kurt Zeilenga
06b5db46eb Backout last change 1999-04-23 20:11:15 +00:00
Kurt Zeilenga
2a92589ecd sh portability changes 1999-04-21 05:59:01 +00:00
Kurt Zeilenga
6585d34a0f 'make test' now tests both BDB2 and LDBM backends.
'make bdb2' tests only BDB2
'make ldbm' tests only LDBM
Fix up scripts (previous changes broke BDB2 testing)
1999-04-10 04:42:33 +00:00
Kurt Zeilenga
21f49f3b27 Fix VPATH support. 1999-04-08 02:27:39 +00:00
Kurt Zeilenga
80b8691eac Fix VPATH support. 1999-04-08 02:18:54 +00:00
Hallvard Furuseth
adab14395b Define env.variable SLAPD_DEBUG to override the default debug level 1999-04-02 05:55:58 +00:00
Kurt Spanier
80400aba52 Fix ldbmcat crash problem: first use the key before deleting it! 1999-03-29 16:01:59 +00:00
Kurt Zeilenga
3550bc48c0 Add slapd -a address support. Allows you to bind to a specific
address.  Useful for running multiple servers in a virtual hosting
environment.
Modified test001-ldif2ldbm to verify this functionality.  Assumes
localhost is 127.0.0.1.
1999-03-17 03:56:25 +00:00
Juan Gomez
4be6bf9e9b Added tests for modrdn and the proper operation of the deleteoldrdn field. 1999-03-10 22:31:26 +00:00
Juan Gomez
63f5f5b4a3 Defined LDAPMODRDN in preparation to add tests for LDAP v2 modrdn. 1999-03-10 21:08:21 +00:00
Kurt Spanier
2889c67adf Client programs for test008-concurrency moved to subdir tests/progs.
Building tests/progs/*.c in the main build process.
==> Test-suite must be called by 'make test', or 'make test-bdb2'
1999-02-22 11:28:01 +00:00
Hallvard Furuseth
d66726da21 slapd-tester should be ./slapd-tester 1999-02-20 07:49:12 +00:00
Kurt Spanier
3a9f96ec0d Code clean-up. 1999-02-18 15:33:15 +00:00
Kurt Spanier
ac4cb22f1c Elimination of entry- and cache-level locking in back-bdb2.
Slight adaption of concurrency-test to enable even more writers/readers.
1999-02-17 11:13:22 +00:00