Kurt Zeilenga
8032f5885d
ITS#357: at_cn == NULL causes crash
1999-11-17 22:43:07 +00:00
Kurt Zeilenga
6f497089f5
Do not maintain a presence search on 'objectclass' as all entries
...
*should* have an 'objectclass' attribute present.
1999-11-02 23:13:40 +00:00
Howard Chu
bacc581531
Removed explicit include of <ac/param.h> because it must be included
...
after <stdlib.h>, but <stdlib.h> is included in slap.h. Moved <ac/param.h>
include into slap.h.
1999-11-02 19:39:56 +00:00
Kurt Zeilenga
14f107e9ed
Changes to support NT single debug
1999-11-01 22:17:06 +00:00
Kurt Zeilenga
b7af076fee
Use centralized output directories.
...
Update single debug/release not to use service manager nor event manager.
Likely breaks MINGW32 port.
1999-11-01 21:25:22 +00:00
Howard Chu
0db4dcecb0
Specifies the symbols that slapd must export, for Mingw32 support
...
See README 1.27 log
1999-10-28 07:20:07 +00:00
Howard Chu
8efb675f3e
Added numsubordinates operational attribute
1999-10-28 07:09:30 +00:00
Kurt Zeilenga
3fbee54fa5
Remove lint
1999-10-27 04:40:56 +00:00
Kurt Zeilenga
f6829ee903
Initial commit of new ACL engine. Engine supports descrete access
...
privs, additive/substractive rules, and rule continuation. Existing
rules that use 'defaultaccess none' should be 100% compatible. Rules
that rely other defaultaccess settings will require addition of
explicit clauses granting the access.
Needs additional testing and tuning of logs
1999-10-21 17:53:56 +00:00
Kurt Zeilenga
5c876f85e6
bind should not return noSuchObject
1999-09-24 02:19:31 +00:00
Kurt Zeilenga
7a0b0b2bbf
In preparation for adding dn_rewrite()...
...
s/dn_normalize/dn_validate/
s/dn_normalize_case/dn_normalize/
1999-09-24 01:46:37 +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
6b0ccd4a5d
Add experimental detection of BerkeleyDB2 DB_THREAD.
...
If not available, LDBM uses big mutex and BDB2 is disabled.
Should add BerkeleyDB version detection...
1999-09-20 20:55:54 +00:00
Howard Chu
f991ef04e6
Added mixed-case as well as up-cased DN argument. The behavior of back-bdb2
...
and back-ldbm are preserved, they only use the up-cased DNs. back-passwd
uses the mixed-case DN. All others are using mixed-case DN, may need more
fixing.
1999-09-18 23:40:03 +00:00
Kurt Zeilenga
e642a1b9cd
Add OpenLDAP RCSid
1999-09-08 22:52:19 +00:00
Kurt Zeilenga
403f4479bc
Add OpenLDAP RCSid to *.[ch] in clients, libraries, and servers.
...
Replace old Id as needed (back-tcl).
Leave updating of contribWare to contributors (for now).
1999-09-08 19:06:24 +00:00
Kurt Zeilenga
1cfeeaade0
db2 flags should be u_int32_t, not int.
1999-09-08 17:28:02 +00:00
Kurt Zeilenga
2e86c0516b
Remove #if 0 used to hide dn subtree index problem. Fixed
...
by Hallvard's IDL changes!
1999-09-04 01:19:58 +00:00
Hallvard Furuseth
1cde481298
Move `#include "ldap_defaults.h"' into slap.h, which #ifdefs on it.
1999-09-03 23:10:05 +00:00
Hallvard Furuseth
dc6754c781
Remove incorrect use of <matched> entry
1999-09-03 20:25:58 +00:00
Hallvard Furuseth
5b6c6b5855
Fix SAFEMEMCPY bug from revision 1.32 in idl_insert()
1999-09-03 11:01:18 +00:00
Kurt Zeilenga
5bb08cba85
Backout rev 1.37 change which was committed by mistake.
1999-09-03 05:31:43 +00:00
Hallvard Furuseth
7cb866642d
Fix Debug printf format
1999-09-02 08:11:54 +00:00
Hallvard Furuseth
c09a2c63e7
Cleanup:
...
Fix printf formats, remove unused variables, add missing prototypes in slapd,
add static/const, add some return types or change to void return type.
1999-09-02 08:05:17 +00:00
Kurt Zeilenga
41e57c041f
Add OpenLDAP RCS id
1999-09-02 00:52:43 +00:00
Kurt Zeilenga
6b80f345a4
Fix idl_insert_key() return codes.
1999-09-01 18:30:13 +00:00
Hallvard Furuseth
8bbaca258f
Fix uninitialized variable
1999-09-01 06:54:33 +00:00
Kurt Zeilenga
03ea068193
Disable removal of subtree indices upon delete. This allows
...
modrdn to run, but masks the underlying subtree index bug (which
I haven't found yet).
Apply modrdn/dn2id changes to BDB2.
1999-08-26 22:43:08 +00:00
Kurt Zeilenga
4c19272651
Assert ID != NOID when fetching from the datastore.
...
Add additional abandon point to modrdn.
test005-modrdn still shows error. Likely in dn2id, index, or idl codes.
1999-08-26 21:00:22 +00:00
Kurt Zeilenga
60033b38ac
Use NULL pointer to indicate values need not be freed instead of
...
relying on developer selecting the right goto label.
1999-08-26 19:12:15 +00:00
Kurt Zeilenga
c71fcf58fa
Remove use of uninitialized variable.
1999-08-26 19:10:28 +00:00
Kurt Zeilenga
a40b1f3126
Backout delete before add rdn index change.
1999-08-26 01:48:47 +00:00
Kurt Zeilenga
e455a7d486
Defer updating dn2id until after rdn checks... (test005 still broken)
1999-08-26 01:33:57 +00:00
Kurt Zeilenga
ed3df0a729
Delete old rdn before adding new rdn.
1999-08-26 01:07:24 +00:00
Kurt Zeilenga
68744ced8d
fix dn2id delete bug... breaks modrdn.
1999-08-26 00:51:27 +00:00
Kurt Zeilenga
406f33eb12
This fixes dn2id delete bug... but breaks modrdn.
1999-08-26 00:48:24 +00:00
Kurt Zeilenga
255e36df0b
Backout fetch_one copy change
1999-08-20 22:37:30 +00:00
Kurt Zeilenga
2a74677799
const'fication
1999-08-20 19:00:44 +00:00
Kurt Zeilenga
e8af46f2a7
More unifdef -DSLAP_CLEANUP
1999-08-19 19:15:45 +00:00
Kurt Zeilenga
e1630c79cd
unifdef -DSLAP_CLEANUP
1999-08-19 18:55:01 +00:00
Kurt Zeilenga
0e502ed0b2
Fix dn_parent memory leak.
1999-08-19 16:51:43 +00:00
Kurt Zeilenga
0ced1a9b1e
Fix SLAP_CLEANUP (this #ifdef should really be removed)
1999-08-19 16:51:23 +00:00
Kurt Zeilenga
8ead8c5fd9
Clean up debug messages.
1999-08-19 00:40:18 +00:00
Hallvard Furuseth
aad3c488da
Add <ac/string.h>
1999-08-17 21:21:43 +00:00
Kurt Zeilenga
b01f6de098
Update MSVC project and remove lint
1999-08-17 21:10:52 +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
Howard Chu
d620793b6f
Make init_module return a success/fail value.
1999-08-17 00:28:01 +00:00
Hallvard Furuseth
3b5b9e1e5f
back-ldbm: Kill ldbm_ignore_nextid_file, replace with slapMode==SLAP_TOOL_MODE
1999-08-16 07:09:28 +00:00
Kurt Zeilenga
aec2f1f17e
Fix add to topless root.
1999-08-14 01:19:29 +00:00
Kurt Zeilenga
7015167974
Add DN_INDICES search filter and has_children support. Move id2children
...
behind -UDN_INDICES.
1999-08-13 00:55:08 +00:00
Kurt Zeilenga
00ba798bd4
Left DN_INDICES defines by mistake... it's not ready for prime time yet.
...
Change prefixes to make eyeballing .dbb files easier
1999-08-12 01:05:33 +00:00
Kurt Zeilenga
1ffe5122b7
Implement DN_PARENT_PREFIX and framework for DN_SUBTREE_PREFIX.
1999-08-11 20:59:28 +00:00
Kurt Zeilenga
49207930cf
Modify replace_values not to merge in new values when no value is
...
was provided.
1999-08-11 19:05:40 +00:00
Kurt Zeilenga
82ac9547c9
Removed redundant dn_normalization(strdup(ndn)) from dn2id codes.
...
Added initial DN_INDICES code behind #ifdef DN_INDICES.
Generates only equality index. Will add parent and subtree indices next.
1999-08-11 02:57:07 +00:00
Kurt Zeilenga
65ed23a120
limit maxindirect to 9
...
ifdef CONT_POSTFIX, swap index and old key in new key. Not defined as
it would cause more grief than good (but should be enabled on next major
index change).
1999-08-09 18:51:02 +00:00
Howard Chu
638f37743b
Fix explicit backend dependencies. Wildcard was unreliable.
1999-08-09 01:29:27 +00:00
Hallvard Furuseth
9f67a2e6c9
Separate put_nextid() out from next_id_write() in back-ldbm/nextid.c.
...
Use it in tools/ldif2id2entry.c instead of making the NEXTID file "by hand".
1999-08-08 07:28:44 +00:00
Kurt Zeilenga
5ecf77c034
Eliminate a bubble move.
1999-08-07 23:25:48 +00:00
Kurt Zeilenga
136bb9c231
Use a cursor to step through ID_BLOCKS.
1999-08-07 21:14:24 +00:00
Howard Chu
366e8fd5ad
Final round of module changes
1999-08-07 11:37:43 +00:00
Kurt Zeilenga
9c3ed0310b
Add copyright notices.
1999-08-06 23:07:46 +00:00
Howard Chu
03b58cc9cf
For dynamic modules, must explicitly zero BackendInfo structure in
...
init_module. Since it's a local var, you have no idea what kind of
garbage is sitting in important function pointers...
1999-08-06 13:16:26 +00:00
Kurt Zeilenga
9ea7a42b99
Add copyright notice and a few comments here and there
1999-08-04 23:59:13 +00:00
Kurt Zeilenga
df8f7cbb9b
s/exit(1)/exit(EXIT_FAILURE)/
...
s/exit(0)/exit(EXIT_SUCCESS)/
add <ac/stdlib.h> where needed and other minor header adjustments
1999-08-03 18:14:24 +00:00
Hallvard Furuseth
a49590eab7
Missed an instance of s/struct attrinfo/AttrInfo/
1999-08-01 20:25:15 +00:00
Kurt Zeilenga
6fb50094d8
Experimental fix to ITS#179 fix.
1999-07-31 03:37:40 +00:00
Kurt Zeilenga
79e28bda6f
Fix modlist bug in last commit
1999-07-29 18:19:06 +00:00
Kurt Zeilenga
51d16c18a9
Save attributes until we've completed schema check and
...
modified indices.
1999-07-29 04:41:49 +00:00
Kurt Zeilenga
de8a1d518a
Slightly better ITS#238 fix than last commit... has Debug
...
message, doesn't bother to open/close index files...
1999-07-28 23:19:16 +00:00
Kurt Zeilenga
0e4e5c7a13
Fix index_change_vals NULL vals bug (ITS#238)
1999-07-28 22:57:52 +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
44e15153e7
Fix "dn" index. Only "sub" was being generated instead of "eq,sub".
1999-07-27 00:51:19 +00:00
Kurt Zeilenga
a39cf6f93d
Add support for LDAP_ALL_OPERATIONAL_ATTRIBUTES ("+") (based on
...
LDAPext discussions).
Add attrs and attrsonly support to monitor/config info.
Add rdn attributes to schema/monitor/config.
Add extensibleObject objectclass to schema/monitor/config.
Add top objectclass to rootdse/monitor/config.
Remove opattrs option from send_search_entry().
1999-07-24 03:39:23 +00:00
Kurt Zeilenga
766b78765f
Typo made all missed all aliasedobjectname values.
1999-07-22 19:17:16 +00:00
Kurt Zeilenga
68d561a97b
Add limited LDAP_INVALID_DN_SYNTAX support. dn_normalize{,_case}() now returns
...
NULL does not meet basic syntax rules.
1999-07-22 17:14:42 +00:00
Kurt Zeilenga
0ed1a76d27
Release writer lock on new parent.
1999-07-22 03:42:02 +00:00
Kurt Zeilenga
170836751a
Namespace changes
...
added slap_ and ldbm_ to many structures
added typedefs to many structures
used typedefs
New main.c argument parsing with ldap url support (replacing -a address).
New sockaddr_in handling and support for multiple listeners.
1999-07-19 19:40:33 +00:00
Kurt Zeilenga
12f481d657
Import patches mistakenly applied to OPENLDAP_DEVEL_REFERRALS.
...
ldap_modify: delete of last attribute value should delete attribute (ITS#229)
thr_nt: use sleep to yield
1999-07-18 00:33:30 +00:00
Kurt Zeilenga
f92d01c2bb
fix substring_comp_candidates logic if intersection of candidates
...
is ever empty. See ITS#228.
1999-07-16 22:26:57 +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
e9c2895472
Add support for unsolicited notifications.
1999-07-07 18:51:39 +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
49f39bc4cf
o_dn/o_ndn must not be NULL. Set to "" upon receiving bind request.
1999-07-04 19:37:25 +00:00
Kurt Zeilenga
106eef41d8
HEADS UP: connections are forced to "anonymous" status upon receiving
...
of a bind request and, upon failure, are left "anonymous."
Rework ACL code to hide access testing within macros to facilate additions
and eventual redesign.
Addition of #ifdef SLAPD_ACLAUTH to conditional include EXPERIMENTAL
"auth" access controls. Adds ACL_AUTH "auth" access level (above none,
below "compare"). bind requires anonymous access at this level or above access
to "entry"/"userPassword"/"krbName". This allows administrators to restrict
which entries can be bound to. (This will likely become default behavior
after testing has completed).
1999-07-04 18:46:24 +00:00
Kurt Zeilenga
9225707a06
Modify lutil_passwd to accept a third argument char** methods to
...
specific which methods may be used. This will facilate development
of a slapd config directive "passwordMethod ..." to specify which
methods should be allowed.
1999-06-29 22:24:53 +00:00
Kurt Zeilenga
fe00263875
expose oc_check_operational from schema.c
...
Use everywhere.
Apply search ACLs to operational attributes.
Only provide operational attributes when explicitly requested.
1999-06-29 04:52:55 +00:00
Kurt Zeilenga
a7dfc2aada
Add sasl "mech" argument to backend bind routines.
1999-06-29 03:29:26 +00:00
Kurt Zeilenga
1ee85df297
Add framework for sasl and controls.
1999-06-29 03:17:22 +00:00
Bastiaan Bakker
5a470f8959
Merged dynamic module support patch (see ITS #196 ). To enable, run ./configure w
...
ith --enable-modules. GLib v1.2 or higher is required.
1999-06-24 17:06:34 +00:00
Bastiaan Bakker
e2b5b21155
Added connection initialisation and destruction notification. Now backends can register functions in backend_info.bi_connection_init and backend_info.bi_connection_destroy that will be called when a connection is initialized or destroyed.
1999-06-23 12:31:35 +00:00
Kurt Zeilenga
f9a560114a
Allow adding of dn: o=foo if suffix is "" and rootdn.
1999-06-19 04:26:17 +00:00
Kurt Zeilenga
669b8f4047
ber_int_t, ber_tag_t, ber_socket_t, ber_len_t
...
added lber_types.h.nt, lber_types.h.in
removal of NULLxxx internal macros (in favor of NULL).
ch_free added to slapd,slurpd/ch_malloc.c
#define free ch_free (should be removed after s/free/ch_free/g) in proto-slap.h
ch_malloc and friends use ber_memalloc and friends
1999-06-18 23:53:05 +00:00
Gary Williams
e2a1216bda
change DIRSEP to LDAP_DIRSEP
1999-06-18 21:21:32 +00:00
Kurt Zeilenga
21e081dc5b
Separate autoconf generated values from "defaults".
...
ldap_defaults.h incorporates non-generated ldapconfig.h values.
ldap_config.h.in is new template for autoconf generated defaults
(namely directories and paths)
ldap_config.h.nt, NT template (must be manually copied)
s/<ldapconfig.h>/<ldap_defaults.h>/
s/DIRSEP/LDAP_DIRSEP/ & s/DEFAULT_/LDAP_/
1999-06-17 03:54:25 +00:00
Juan Gomez
4a683c204d
Replaced add/delete_value() by change_value() and index_add/delete_value()
...
by index_change_values(). The functions were exactly the same but for
one call.
1999-06-15 23:56:28 +00:00
Juan Gomez
5b0e434d93
Enabled deletion of stale index entries. (EXPERIMENTAL)
1999-06-15 20:06:16 +00:00
Juan Gomez
e1819eaff9
Added function delete_value() to remove entries from the index files
...
when necessary.
1999-06-15 19:50:20 +00:00
Juan Gomez
499b8fdc04
Added index_delete_values() in preparation for changes that will keep
...
index files clean.
1999-06-14 18:16:05 +00:00
Juan Gomez
bf49544833
s/official/canonical/ & s/at_on/at_cn/
1999-06-14 16:36:00 +00:00