Commit Graph

277 Commits

Author SHA1 Message Date
Kurt Zeilenga
d69c41fc0f Add a referrals/manageDsaIT test (depends on order of reference return) 2002-10-21 19:11:27 +00:00
Kurt Zeilenga
5684ee0df7 s/umich.edu/example.com/ 2002-10-04 20:58:20 +00:00
Kurt Zeilenga
77911fc829 Alter a few DNs to ensure normalization works in groups 2002-09-30 18:43:18 +00:00
Howard Chu
615af63d04 Added group ACL tests 2002-09-13 15:04:04 +00:00
Kurt Zeilenga
4d2b4e47ca Add in extra white space 2002-08-31 22:24:05 +00:00
Kurt Zeilenga
d912c2c711 Rework client control parsing... need to implement
common controls across all tools.
2002-08-29 21:36:36 +00:00
Pierangelo Masarati
0549f16e6c test extended filter and values return filter 2002-08-29 19:31:02 +00:00
Kurt Zeilenga
b63ca6bc51 back out last commit 2002-08-29 02:32:58 +00:00
Kurt Zeilenga
923d033c99 Finish adding subclassing indexing support 2002-08-29 02:27:15 +00:00
Kurt Zeilenga
4fa2b12342 Trim subordinate classes from input (and expected output). 2002-08-27 21:41:37 +00:00
Kurt Zeilenga
1c0c6cee80 backout last change... too tired to make this work right now. 2002-08-12 22:33:43 +00:00
Kurt Zeilenga
c9565e7530 Rewrite master/slave ports 2002-08-12 21:49:27 +00:00
Kurt Zeilenga
7bc35541e4 Add simple CN v cn test case for ITS#1997 2002-08-07 19:12:59 +00:00
Kurt Zeilenga
ef3d895cb8 More ACL to dn="" bug fixing... and add test006-acl check 2002-07-11 01:45:22 +00:00
Kurt Zeilenga
1990cad7c3 Add monitor test.
Need to hide cn=Monitor from namingContext
2002-06-19 06:00:48 +00:00
Kurt Zeilenga
42ea8ef9cd Cannot set rootpw when rootdn is not under suffix 2002-06-08 18:49:14 +00:00
Kurt Zeilenga
07465f3e5a Some cleanup 2002-03-24 01:55:11 +00:00
Kurt Zeilenga
ff8b039a4e Clean up schema checking 2002-03-10 17:39:08 +00:00
Kurt Zeilenga
8575e0a050 Add some undefined assertion tests 2002-03-01 18:58:11 +00:00
Kurt Zeilenga
7879b177c4 Add manager to expected output as it a person, not a pilotPerson 2002-02-09 23:08:40 +00:00
Kurt Zeilenga
ecdfc66a13 Add to different parents 2002-01-29 22:41:43 +00:00
Kurt Zeilenga
8057b1a0a8 Language Tag and Range Support <draft-zeilenga-ldap-rfc2596-xx.txt>
Based upon code submitted by Steve Omrani <somrani@us.ibm.com> (ITS#1525)
2002-01-26 23:14:51 +00:00
Kurt Zeilenga
5e3db3d05b Add a fourth add thread 2002-01-18 17:55:05 +00:00
Kurt Zeilenga
929abbc97f Run the lock detector 2002-01-17 05:36:47 +00:00
Kurt Zeilenga
3ad2bd3f56 Add a third entry... 2002-01-17 05:08:26 +00:00
Kurt Zeilenga
dedc813a7e Add section add. 2002-01-17 04:43:39 +00:00
Kurt Zeilenga
70382ac66a Misc cleanup 2002-01-14 03:42:24 +00:00
Howard Chu
e43fe62485 Renamed subdirectories to hide rm warnings 2002-01-13 23:52:17 +00:00
Kurt Zeilenga
82e4bcefe4 Use supertype index 2002-01-13 20:49:10 +00:00
Howard Chu
5ac6b4b76a Added config and data files for testing backend glue 2002-01-11 09:23:31 +00:00
Kurt Zeilenga
0a194f2fa1 Remove references to dead schema 2002-01-10 13:13:32 +00:00
Kurt Zeilenga
d8aef083ac Use conforming filters 2002-01-03 18:31:18 +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
Kurt Zeilenga
d46252fb21 Port reference scope fix from back-ldbm 2001-12-07 22:41:43 +00:00
Howard Chu
0b581db82f Squash some whitespace in a DN. (trivial) 2001-12-07 01:54:53 +00:00
Kurt Zeilenga
2c07200a3a pretty DNs 2001-12-06 07:32:53 +00:00
Howard Chu
0be3cbfb46 Strip whitespace from DN-valued attributes 2001-12-06 07:15:48 +00:00
Howard Chu
f0b56c3444 Stripped whitespace between entry DN components. 2001-12-06 06:40:09 +00:00
Howard Chu
b45fb4f5c5 Revert 1.11, the extra clause breaks test009-referral for back-bdb. 2001-11-27 04:05:06 +00:00
Pierangelo Masarati
a5f5d53f74 same typo in more data files (was it intended ? :) 2001-11-05 08:51:29 +00:00
Pierangelo Masarati
e331b7a49f typo in data (already fixed in test-ordered.ldif) 2001-11-05 08:28:26 +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
Kurt Zeilenga
82fad7d0c8 First stable an implementing latest namedref specification.
Includes rewriting of URLs where the DN of the referral object
and the DN of the ref attribute attribute are not the same.
Also, always returns explicit DN and scope.
Currently, back-ldbm only.  Needs to be ported to back-bdb.
2001-10-26 02:05:14 +00:00
Kurt Zeilenga
fcd1ce0e28 Use defined Root DSE attributes.
Developed by Julius Enarusai/IBM
Copyright IBM Corp. 2001

Use of this source code is subject to the terms of The OpenLDAP
Public License Version 2.7, 7 September 2001.  No trademarks of the
IBM Corporation are to be used to identify, endorse or promote any
products derived from this code without the prior written consent
of IBM.
2001-10-23 23:29:41 +00:00
Kurt Zeilenga
3225c05cd5 Add BDB index directives 2001-10-03 21:27:37 +00:00
Kurt Zeilenga
2c9a238571 Allow dn.base="" 2001-09-01 05:01:31 +00:00
Kurt Zeilenga
3a1b634ee2 Updates for back-bdb testing 2001-08-01 04:50:47 +00:00
Kurt Zeilenga
4b22216d77 Add extraneous database to slapd.conf
Remove ssf from slapd-schema.conf
2001-07-14 01:28:19 +00:00
Kurt Zeilenga
1229cfcc3f Backout directory config option 2001-06-22 21:00:24 +00:00
Kurt Zeilenga
4c3ab6bf69 Don't set directory in backend LDBM for now 2001-06-07 18:00:16 +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
351e436dcf Add an LDBM backend "directory" directive (in addition to
the existing database "directory" directive) to allow setting
of a DB_ENV directory.  Should likely be database specific.
2001-05-29 01:51:37 +00:00
Kurt Zeilenga
383391b460 detect and use fcntl (for BSD/OS)
detect inet_ntop (for MacOSX)
2001-05-03 05:53:34 +00:00
Kurt Zeilenga
0fc62be316 Rework security restrictions for SASL bind 2001-02-03 03:17:22 +00:00
Kurt Zeilenga
fba163fe24 Add objectClass eq as need 2001-01-17 19:56:01 +00:00
Kurt Zeilenga
b65fe6a66d Remove defaultaccess directive 2000-10-21 03:26:24 +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
20e8ca0ebe Remove cruft 2000-09-15 18:44:38 +00:00
Kurt Zeilenga
66e3b39001 Use o=OpenLDAP Project, remove unneed options 2000-09-13 20:14:45 +00:00
Kurt Zeilenga
08d397f65d Use root-dse to verify schema files 2000-09-13 14:31:22 +00:00
Kurt Zeilenga
fb1d935348 Remove entry +x, not needed. 2000-09-05 21:53:26 +00:00
Kurt Zeilenga
cee040a321 Bring UCdata infrastructure. 2000-09-03 23:48:35 +00:00
Kurt Zeilenga
32c7186b9c Add frontend support for "any" substrings assertions.
Needs to be tied into index mask and backend search code.
2000-08-22 02:23:52 +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
8f8c483a8b Add 'index objectClass eq' 2000-07-26 01:06:27 +00:00
Kurt Zeilenga
9bfad46de6 Use substring indices 2000-07-19 01:08:42 +00:00
Kurt Zeilenga
c0bbb090b7 Fix substring indices and enable in tests. 2000-07-18 22:59:34 +00:00
Kurt Zeilenga
a42351c40f Fix an interaction error on multiple step binds.
Add additional notices.  Likely need to add a quiet mode.
2000-07-14 00:54:08 +00:00
Kurt Zeilenga
5fc22599e2 Update SASL code to reuse context through life of session.
Replace 'negotiated' with 'interactive' bind
Add hooks for SASL/EXTERNAL
Disable SASL security layers
Rework SASL command line and config file parameters
2000-07-13 22:54:38 +00:00
Kurt Zeilenga
9d1e2ef7e2 Rename local variable 'sun' to 'sa' to avoid clash on Sun computers... 2000-07-04 17:57:21 +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
5290f6f289 Move BDB2 to Attic 2000-06-17 17:50:17 +00:00
Kurt Zeilenga
466b281426 Additional use of new ACL styles 2000-06-13 17:35:30 +00:00
Kurt Zeilenga
772b458cd8 Partially test new ACL styles. 2000-06-13 03:24:12 +00:00
Kurt Zeilenga
c81cc806ab Move old schema files to Attic.
SLAPD_SCHEMA_COMPAT *should* be able to use schema files
2000-06-05 07:17:51 +00:00
Kurt Zeilenga
ea069cb7c2 New indexer/filter codes (test suite works) with cheats
Updated NT Project files (with Cyrus SASL library depend)
2000-06-04 22:59:38 +00:00
Kurt Zeilenga
1605a04509 Must work with trailing / on URI 2000-06-01 20:55:36 +00:00
Kurt Zeilenga
9ede22dcd3 Don't need openldap.schema anymore to run tests 2000-05-31 00:13:37 +00:00
Kurt Zeilenga
6b06525c2c Trim '/' off of referral URL. 2000-05-29 21:16:45 +00:00
Kurt Zeilenga
64f028a6ab New schema code is now the default.
Use -DSLAPD_SCHEMA_COMPAT to use 1.x compatible schema (deprecated).
2000-05-29 16:39:16 +00:00
Kurt Zeilenga
b76043013d Resolve streetaddress vs. street through deletion 2000-05-27 19:18:08 +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
18f31148be Working (but likely not robust) DNS SRV backend! 2000-05-10 22:43:08 +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
Kurt Zeilenga
7db89cb1c0 Use $$ and other oddities. 1999-10-26 22:52:53 +00:00
Kurt Zeilenga
5cb377302b Add simple test for additive acl. 1999-10-21 23:17:17 +00:00
Kurt Zeilenga
2644018bc2 Add basic flow control tests 1999-10-21 21:23:43 +00:00
Kurt Zeilenga
5e459c4cf8 Use implicit 'by * none' and =rs 1999-10-21 21:16:18 +00:00
Kurt Zeilenga
3f9ba7e05a Minor acl optimizations. 1999-10-21 18:48:16 +00:00
Kurt Zeilenga
35655c056f Reimplement LDBM_SYNC/LDBM_NOSYNC code (dbnosync).
Old code applied sync flags to store(), however supported DBMs
require such flags to be specified during open().  The new
code now applies flags in ldbm_cache_open (which calls ldbm_open).
ldbm_cache_close() now calls ldbm_sync().  This will force
a updating of on-disk contents after each LDAP operation.
The old code either failed to sync the on-disk contents until
close or synced on every store.   Per LDBM operation syncing
*should* be safe enough... real data safety requires transactions.
Removed nosync option from BDB2 as it is not compatible with
txn support.
Also added code to disable DBM level locking as slapd is only
process acessing the databases (dbnolocking).
1999-09-23 19:49:20 +00:00
Kurt Zeilenga
e642a1b9cd Add OpenLDAP RCSid 1999-09-08 22:52:19 +00:00
Kurt Zeilenga
0197ec6f04 Remove use of quipu object classes 1999-08-31 17:09:17 +00:00
Kurt Zeilenga
375995be50 Another bogus postalcode removed 1999-08-17 18:46:08 +00:00
Kurt Zeilenga
4e60147654 Strip bogus postcode from entry 1999-08-17 18:44:53 +00:00
Kurt Zeilenga
44b4bda011 base64 encode userPassword 1999-08-05 00:56:54 +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
9c61bc561f Return LDAP_CONSTRAINT_VIOLATION if user attempts to modify
a non-user-mod attribute (such as timeStamps).
Move generation of add_modify_attrs to frontend.
update of add_modify_attrs on modrdn needs work (currently
not updated to maintain consistency with replicas).
1999-07-27 20:00:31 +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
Kurt Zeilenga
b8edef2b2c Copy LDBM bind "ACL_AUTH" and SASL framework to bdb2. 1999-07-07 18:47:51 +00:00
Kurt Zeilenga
51d1c90887 unifdef -DSLAPD_ACLGROUPS -DSLAPD_ACLAUTH 1999-07-05 06:26:26 +00:00
Kurt Zeilenga
6380786169 Add '^' and '$' to ACLs RE's. 1999-06-15 19:41:42 +00:00
Juan Gomez
fac246b834 Sync this files for this example to work properly. 1999-06-10 01:25:55 +00:00
Juan Gomez
96929b07a5 Need output for various tests in differen files so we know which specific
part fails if it does.
1999-05-27 00:29:39 +00:00
Juan Gomez
b372720819 Added nis ldif in the right place. 1999-05-27 00:20:41 +00:00
Juan Gomez
385dab9176 Point to new dir. 1999-05-26 23:18:50 +00:00
Juan Gomez
314b69f6f1 Change conf for nis test. 1999-05-26 18:49:09 +00:00
Juan Gomez
a5cf0bf36b Config files that use the NIS related schema. 1999-05-12 01:03:51 +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
6da69382f7 Use 'cachesize 0' for repl and acl tests.
Remove disable write sync (dbcachenowsync) in master (for concurrency test).
1999-04-10 01:40:33 +00:00
Juan Gomez
0df308410f Expected output for modrdn tests. 1999-03-10 22:27:58 +00:00
Kurt Spanier
5d2699b7ce Introduction of first version of transaction processing (TP) into BDB2. 1999-03-01 11:30:18 +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
Kurt Spanier
39f0066db4 Addition of a new Concurrency Test fro testing slapd performance and
correctness of locking schemas in backends.
In back-bdb2 open NEXTID during startup and close at shutdown.
1999-02-15 10:49:20 +00:00
Kurt Spanier
42f6e78dd4 Integration of the BDB2 backend into the new init/startup/shutdown schema.
Integration into ./configure ( --enable-bdb2 ).
Adaptation of the test-suite ( 'make' -> ldbm; 'make bdb2-local' -> bdb2 ).
Minor fixes in slapd/libldbm.
1999-02-08 11:42:14 +00:00
Kurt Spanier
314f3f6ed7 Introduction of a backend startup/shutdown function to make backend-specific
initialization after reading slapd.conf, and before starting the daemon
1999-02-01 17:37:43 +00:00
Kurt Zeilenga
695ad44694 Place the arg and pid files into the test-* directories. 1999-01-21 18:08:33 +00:00
Kurt Spanier
68a8798594 Definition of slapd pid and args files as slapd.conf general parameters;
introduction of pid/agrs parameters to the test-suite slapd.conf files;
creation of sub-directory test/var for storage of pid/args files during test;
update of the slapd and slapd.conf man pages.
(The change reduces dependency on ldapconfig.h, since SLAPD_PIDEXT
 and SLAPD_ARGSEXT are deleted from the code.)
1999-01-21 15:53:54 +00:00
Kurt Zeilenga
e2a15115b0 Update slap_conn to maintain client provided dn and bound dn.
Update slap_op to maintain dn and ndn (derived from conn->c_dn).
Update ldbm_back_bind to return actual bound dn (including rootdn)
	for use in slapd_conn.  Other backends use client dn.
Modify other codes to use ndn (normalized uppercase dn) most everywhere.
Aliasing, Suffixing and modrdn could use more work.
Applied suffixing to compare and modrdn.
1999-01-19 05:10:50 +00:00
Kurt Zeilenga
60b6d7185c Enable dbcachenoWsync for replica. 1999-01-02 23:29:06 +00:00
Kurt Zeilenga
cfa450d078 Fix schema check bug... actually charray needs to dup strings on
add/merge as we now free strings agressively.  Improved debug
message to include name of missing required attribute and added
check for 'operational attributes'.  This check should be used
everywhere we need to test for operational attributes (add/modify).
Also, enabled schema checking for tests (and fixed resulting
problems by adjusting oc.conf).
1998-12-28 23:43:04 +00:00
Kurt Zeilenga
6c2949ed86 Change cache.c assert logic based on Hallvard's suggestion.
"Check that the entry has no writers before removing it from the
  cache" sounds more sensible to me than "check that it *has* writers"
  before removing it.
I've also changed the default cachesize for tests to 4.  This
should help discover such problems.
1998-12-10 19:20:15 +00:00
Kurt Zeilenga
2ec25ef881 Merged files from branch REGEX_REMOVAL. Despite name, this merge
adds POSIX RegEx (and removes BSD re_comp/re_exec) support.
* POSIX RegEx is not currently included in the distribution, however
	we will probably add Henry Spencer's REGEX library soon.
* ACL Group functionality is also included in this merge!
1998-08-21 06:33:42 +00:00
Kurt Zeilenga
42e0d83cb3 Initial revision 1998-08-09 00:43:13 +00:00