Juan Gomez
943cfaf41a
Added get_next_substring(), rdn_attr_type(), and rdn_attr_value() which
...
are needed in the implementation of modrdn v3.
1999-03-04 00:31:19 +00:00
Juan Gomez
68a413a601
Made add_values(), delete_values(), and replace_values() so they can be
...
used in implementing modrdn v3.
1999-03-03 22:55:28 +00:00
Juan Gomez
ddf04f5900
Made add_values(), delete_values(), and replace_values() so they can be
...
used in implementing modrdn v3.
1999-03-03 22:00:16 +00:00
Juan Gomez
98c2a61313
Made add_values(), delete_values(), replace_values() so they can be used
...
for implementing modrdn v3.
1999-03-03 21:58:51 +00:00
Hallvard Furuseth
3250aef49c
function pointers are incompatible with `void *'; remove NULL or replace with 0
1999-03-03 18:49:59 +00:00
Hallvard Furuseth
42fdd3766f
replace integer argument NULL with 0
1999-03-03 17:35:33 +00:00
Hallvard Furuseth
69a93a0582
function pointers are incompatible with `void *'; remove NULL or replace with 0
1999-03-03 17:02:10 +00:00
Kurt Zeilenga
aa38035780
Add protect against new connection descriptor being to large for
...
our connection table.
1999-03-02 21:06:42 +00:00
Kurt Zeilenga
fdc44bf313
Apply ldbm bind() change to bdb2 code.
1999-03-02 20:42:29 +00:00
Bart Hartgers
8153a4039b
The new&improved Sockbuf. This adds the infrastructure on which
...
support for TLS and SASL will be build.
Please inform me of any problems.
1999-03-02 20:23:14 +00:00
Bart Hartgers
e0fdd89432
Annoying little son of a `free' BUG fixed.
1999-03-02 20:14:11 +00:00
Kurt Zeilenga
4e160e83b6
Replace IFP() with appropriate full prototypes:
...
AVL_CMP, AVL_DUP, AVL_FREE, AVL_APPLY.
Apply casts as needed.
Change data pointer from caddr_t to void *.
1999-03-02 00:32:59 +00:00
Kurt Zeilenga
a8a05cbe48
Update NT port with support for -lldap_r and -lldbm.
...
Also add initial slapd .dsw/.dsp files. Still needs work (mainly syslog).
1999-03-01 22:37:05 +00:00
Kurt Zeilenga
3984323bf9
Fix minor memory leak and remove redundant be_isroot_pw() checks.
...
Suggested by Pierangelo Masarati <pmasarati@bci.it> in post to -bugs.
1999-03-01 19:42:06 +00:00
Kurt Spanier
5d2699b7ce
Introduction of first version of transaction processing (TP) into BDB2.
1999-03-01 11:30:18 +00:00
Ben Collins
945f8e10a0
Added verclean-local-srv since veryclean was not being run in the back-* and related directories
1999-02-28 17:07:47 +00:00
Ben Collins
b14d7b35ed
Changed general debug levels too LDAP_DEBUG_SHELL
1999-02-28 05:55:48 +00:00
Hallvard Furuseth
1d8ae81a06
Fix previous change to strtok_quote
1999-02-23 15:48:47 +00:00
Hallvard Furuseth
6b40ed4882
Make strtok_quote treat the character following \ as a normal character.
1999-02-23 15:40:18 +00:00
Ben Collins
b0250a119f
Changed LDA_DEBUG_ statements to more appropriate ones
1999-02-23 03:51:33 +00:00
Hallvard Furuseth
79f7c85067
Add locale support (slapd.conf keyword "locale") to slapd if HAVE_LOCALE_H
1999-02-22 21:01:24 +00:00
Hallvard Furuseth
73db912500
Cast char' arguments to ctype.h functions to unsigned char'.
...
These functions require their arguments to be in the range of `unsigned char'.
1999-02-22 17:57:22 +00:00
Kurt Spanier
9cb23b462e
More timing for performance testing. Re-introduction of cache.c_mutex.
1999-02-22 11:22:44 +00:00
Kurt Zeilenga
aa17fdd0bd
Use ldap_pvt_strtok directly and unconditionally.
...
Implementation no longer uses strtok_r(), it may be broken
or have an odd prototype.
Update configure not to check for strtok/strtok_r nor require
strtok_r to LDAP_API_FEATURE_X_OPENLDAP_REENTRANT.
1999-02-20 20:12:03 +00:00
Hallvard Furuseth
0fe0efeeac
wrap bi_acl_group in #ifdef SLAPD_ACLGROUPS
1999-02-20 08:53:48 +00:00
Hallvard Furuseth
1fda8f9382
read_config() did not return a value
1999-02-20 08:18:07 +00:00
Ben Collins
809c6570e4
Converted strdup()'s to ch_strdup()
1999-02-19 07:55:20 +00:00
Kurt Spanier
3a9f96ec0d
Code clean-up.
1999-02-18 15:33:15 +00:00
Ben Collins
8667671d17
* Removed uneeded cvs keywords
...
* Fixed unfree'd 'char *results' in all tcl_* functions (only unfree'd in
certain cases, moved the free to the actual function) so no more mem
leaks. Tested this with over 500,000 access's for testing :)
* Miscellaneous source style and tabulation fixes
1999-02-18 02:18:39 +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
Ben Collins
a3c9bec0c5
Missing file
1999-02-17 02:23:18 +00:00
Ben Collins
6b09ba64d0
Style changes, added cvs keywords
1999-02-17 02:05:28 +00:00
Ben Collins
d2d5748580
Updated some items
1999-02-17 02:04:54 +00:00
Ben Collins
197e77ea8d
Completed open/close/destroy implementations
1999-02-17 02:02:11 +00:00
Ben Collins
749404b83f
Implemented the open, init functions correctly
1999-02-17 01:55:54 +00:00
Ben Collins
8c3f485d8b
Implemented all of the (db_)destroy and (db_)close functions
1999-02-17 01:55:03 +00:00
Ben Collins
78a5ebe216
Moved tcl_back_db_open() and interpreter init to tcl_init.c
1999-02-17 01:53:59 +00:00
Ben Collins
1d1e8f75b6
Added return()
1999-02-17 00:32:49 +00:00
Ben Collins
86e1568752
fixed exit()'s to be return()'s
1999-02-17 00:30:36 +00:00
Ben Collins
8a2839b672
keyword update
1999-02-17 00:26:05 +00:00
Ben Collins
24697ea2fc
$Id update
1999-02-17 00:24:40 +00:00
Kurt Zeilenga
c2b7c9e2db
Add ac/errno.h and use other generic headers when available.
1999-02-16 18:07:19 +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 Zeilenga
a71f328831
Import Ben Collins <bcollins@debian.org> Back-TCL for SLAPD.
1999-02-14 19:20:14 +00:00
Kurt Spanier
548942edbe
BugFix and selection in the test-suite of the bdb2 backend-specific
...
slapd server timing via a new slapd command line option '-t'.
1999-02-12 15:22:43 +00:00
Kurt Spanier
2cf83d84ee
Server timing as a private feature of the bdb2 backend.
1999-02-12 14:36:16 +00:00
Kurt Spanier
6e63b58a3e
Update of back-bdb2 to KDZ's new entry lock schema.
...
Fix of a back-bdb2 --> back-ldbm leakage (==> new bdb2-specific DB file suffix).
1999-02-12 12:13:03 +00:00
Kurt Zeilenga
75ee1d8393
Update tools to print ID's using "%ld" instead of "%lu".
1999-02-11 21:26:57 +00:00
Kurt Zeilenga
2a20131eaa
Consistently use %ld for printing IDs. %lu was used in many cases.
...
I rather have NOID printed as "-1". It it could argued that ID
should be signed.
1999-02-11 18:19:52 +00:00
Kurt Zeilenga
c2c0d9687f
Complete entry_cmp() migration (remove rename macros).
1999-02-11 17:52:28 +00:00
Kurt Zeilenga
745a10f080
Update LDBM cache so that it manages it's own state.
...
cache_set_state() and state args are no history.
Move cache_entry_cmp() and friends to slapd/entry.c to allow sharing
of functions between backends.. Renamed to entry_cmp().
1999-02-11 17:46:56 +00:00
Kurt Zeilenga
88c43a1e6e
Move LDBM-backend specific fields of Entry struct into a private struct.
...
The new e_private field can be used for any backend purpose. In LDBM,
it's used to point th the private entry info struct. The LDBM entry
info struct is only visible to the LDBM cache.
WARNING: This change has not be ported to other backends! Breakage is likely.
1999-02-10 18:28:25 +00:00
Kurt Spanier
529caeddd0
Elimination of un-used code in bdb2i_cache_open and friends.
...
Provision for a bdb2 backend-specific DB file suffix.
Fix of the double-open of backend types.
1999-02-10 13:19:11 +00:00
Kurt Zeilenga
191752c9a7
Fix modrdn bug in back-bdb2 as well. Probably should move
...
dn rewriting to frontend dn.c function.
1999-02-09 18:07:01 +00:00
Kurt Zeilenga
fc022ed0d4
Patch modrdn to remove extra space.
1999-02-09 17:58:13 +00:00
Kurt Zeilenga
eb8dcb6e21
Add a field to count the number of databases per type (bi_nDB) to
...
the backend type info structure. Use this filed to control open
and close such that backend's without databases are skipped.
1999-02-09 17:41:56 +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 Zeilenga
36a06168c5
Fix backend_destroy to call bi_destroy instead of bi_close
1999-02-07 18:24:05 +00:00
Kurt Zeilenga
587535a310
Really fix those reader/writer lock asserts...
1999-02-07 17:57:50 +00:00
Kurt Zeilenga
7eaae29f6f
Fix cache asserts on entry writer locks.
1999-02-07 02:50:10 +00:00
Kurt Zeilenga
e6e28362a1
Move SIGNAL() calls to main so that any thread can accept async
...
signals aimed at the process.
1999-02-06 16:00:00 +00:00
Kurt Zeilenga
7f804b5c1b
Fix no backend type case in backend_init.
1999-02-06 15:56:14 +00:00
Kurt Zeilenga
dde7e3dfa6
Don't call idl_free() unless necessary.
1999-02-05 23:46:03 +00:00
Kurt Zeilenga
63f5ec8f8b
remove ;; typo
1999-02-05 17:39:38 +00:00
Kurt Spanier
d92b9d3c9e
Introduction of a new Berkeley DB version 2 (!) specific backend.
...
BEWARE: the backend will be compiled.
the backend will NOT be invoked, yet.
the backend CANNOT be invoked, yet, because it is NOT yet
integrated into the new initialization/startup environment
of the slapd server.
1999-02-05 16:23:03 +00:00
Kurt Spanier
8107ec91f0
Fix braindead signal handling in linux kernal threads.
...
First version with waiting on int to become 0; should be implemented
via conditional variable...
Fix of typos.
First anchor for new bdb2 backend.
1999-02-05 13:20:57 +00:00
Kurt Zeilenga
216049bd12
New Frontend->Backend Interface
...
Separates per backend type from per backend database initialization
and startup. Also supports per type / per backend shutdown.
New frontend startup/shutdown routines are also provided:
slap_init() slap_startup() slap_shutdown() slap_destroy()
New frontend->backend startup/shutdown is managed by:
backend_init() backend_startup() backend_shutdown backend_destroy
backend_init() now calls bi_init() to initial all function pointers
for the backend (excepting bi_init() which is now the only hardcoded
entry point). New entry points are detailed in slap.h struct
backend_info. backend_info is a per database type structure.
Besides the new startup/shutdown entry points, the new interface
also supports per backend type configuration options. One could have:
backend bdb2 (new Berkeley DB 2 backend)
bdb2_home /directory
database bdb2
...
*** This code is fairly experimental ***
*** Much cleanup and testing is still needed ***
see slap.h for details on struct backend_db and backend_info.
1999-02-05 09:03:47 +00:00
Kurt Zeilenga
2b8970a324
Fix forkandexec() prototype.
1999-02-04 19:01:21 +00:00
Will Ballantyne
44c5c21078
additional checks around derefAlias_r call:
...
check for alias problem
check for alias != entry
check for null entry in subsequent switch statement
1999-02-04 18:55:58 +00:00
Kurt Zeilenga
72400d11fc
Fix mutex initialization. new init function only has one argument.
1999-02-04 18:20:26 +00:00
Kurt Zeilenga
366701bdf7
Fix dbcache/entry lock deadlock. If dbcache lock is held, it's
...
okay to read and write LDBM specific fields (state, refcnt,
LRU. The id field, though is read-only once set.
cache_find_entry_dn2id(), hence, does not require any entry locks.
cache_find_entry_id() must do a entry_rdwr_trylock() and back
off if busy.
Add new rdwr lock code with trylock() functionality.
Implement entry_rdwr_trylock().
1999-02-04 18:00:50 +00:00
Kurt Zeilenga
6b05425d0f
Minor fixes to complete backout of initialization/startup changes.
1999-02-04 17:45:59 +00:00
Kurt Zeilenga
d27b2f811e
Backout recent initialization/startup changes in prep for new
...
frontend->backend interface.
1999-02-04 17:33:46 +00:00
Kurt Zeilenga
fc44d42c53
Backout startup/initialization changes in preparation for new
...
frontend->backend interface.
1999-02-04 17:28:49 +00:00
Kurt Zeilenga
c6882d4670
Remove rwlock diag messages.
1999-02-04 17:24:26 +00:00
Kurt Zeilenga
efce9cffb4
Use LDAP_ALIAS_DEREF_PROBLEM for all problem dereferencing aliases.
...
LDAP_ALIAS_PROBLEM is now only used if the alias itself is mangled.
1999-02-04 17:23:34 +00:00
Will Ballantyne
be9e28907e
inserted additional checks for null values, comments
...
fixed deadlocks
1999-02-04 00:21:57 +00:00
Kurt Zeilenga
5934367242
Another concurrency typo.
1999-02-03 18:32:25 +00:00
Kurt Zeilenga
7903584911
Use idl_fetch_one() to fetch single id_blocks instead of separate
...
ldbm_cache_fetch() codes.
1999-02-03 17:14:01 +00:00
Kurt Zeilenga
365f6bf69b
Fix double free of filter when bad.
1999-02-03 05:51:42 +00:00
Kurt Zeilenga
a3cf741ab7
Fix slapd/tool dependencies on libraries.
1999-02-03 05:25:04 +00:00
Kurt Zeilenga
368a507c9a
Plug leak of datum. Should be freed after use.
1999-02-03 05:00:41 +00:00
Kurt Zeilenga
ace9fb68c5
Fix ALLIDS bugs
...
Fix memory leaks
1999-02-03 04:45:08 +00:00
Kurt Zeilenga
16b3111ac7
Got that logic backwards...
1999-02-03 03:50:11 +00:00
Kurt Zeilenga
0c2ce661fb
first arg of ldbm_db_errcall could be a const char * instead of char *.
1999-02-02 23:15:45 +00:00
Kurt Zeilenga
40ba9bc80b
Don't try to free NULL idl. Did not cause a problem, though, as
...
idl_free() had insurance.
1999-02-02 22:46:21 +00:00
Kurt Zeilenga
92e71b459b
Hack up a quick bandaid to make things compile. Startup/Initialization
...
needs work.
1999-02-02 19:26:00 +00:00
Kurt Zeilenga
2b29521596
Fix statlog... debugging change got commit by mistake.
1999-02-02 14:06:23 +00:00
Kurt Spanier
442c7e7a7b
Added startup/shutdown routine for slapd back-ends.
1999-02-02 08:03:03 +00:00
Kurt Zeilenga
433e8ad645
Add a few comments to help detail some of these functions.
1999-02-02 03:40:19 +00:00
Kurt Zeilenga
3e48937ac8
Fix idl_firstid to return NOID when !(nids > 1) instead of when (nids == 1)
...
Fix idl_nextid not to skip an ID if ID not in list.
Both of these should not occur if used correctly, but cheap insurance
against incorrect usage is welcomed.
1999-02-02 02:46:18 +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
8981a52ed3
Rebuild configure using autoconf 1.3 (with aclocal from automake 1.4).
1999-02-01 01:36:42 +00:00
Kurt Zeilenga
59a288abb5
Rewrite IDL block code to use simple array and accessor macros
...
instead of array with overlayed struct fields. (which is inherently
non-portable).
Change maxid check in insert to be greater than or equal instead
of equal.
Use SAFEMEMCPY.
1999-01-31 07:55:53 +00:00
Kurt Zeilenga
163077ec93
Don't leak slap_op when op not in list.
...
Don't leak abandon mutex.
Use ch_malloc and friends.
1999-01-29 05:46:12 +00:00
Kurt Zeilenga
91f6792109
Add dn_rdn() function to return rdn part of dn.
1999-01-28 21:40:04 +00:00
Kurt Zeilenga
1d70b89234
Make sure e_ndn is used!
1999-01-28 17:32:59 +00:00
Kurt Zeilenga
72ba4cfb71
Use -lldap_r instead of -lldap -lthread.
...
Likely broke things for non-posix threadings....
Update -lldap_r implementation to:
remove attribute support
hide thread detachment
provide concurrency accessors
provide initialization function
fix gethostby{addr,name}_r codes (not coverred by HAVE_REENTRANT_FUNCTIONS)
Update servers/libraries to use ldap_pvt_thread_ calls.
Cleanup server codes (no #ifdef HAVE_PTHREAD_THIS or _THATs)!
Removed -llthread
1999-01-28 04:34:55 +00:00
Kurt Zeilenga
4ea54855c2
Fix PHREAD typo.
1999-01-27 22:42:30 +00:00
Will Ballantyne
07f566e712
fix suffix alias compare in config.c, logic was reversed. The suffix alias
...
is now ignored if it is the same as the real suffix.
1999-01-27 04:58:02 +00:00
Kurt Zeilenga
bd6dfe333d
LDBM/back-ldbm locking reworked!
...
back-ldbm was using a cache specific lock to protect non-reentrant
database routines from being reenterred. This is inadequate.
Also, reentrant database systems calls were serialized unnecessarily.
Non-reentrant database calls must have a big_mutex. Implemented
this within -lldbm itself. library requires ldbm_initialize()
be called before any other ldbm call to initialize the big_mutex
and to do any other db specific initialization (ie: such as
required for DB2).
The dbc_mutex, dbc_cv, & dbc_readers fileds of dbcache are history.
The "reentrant_database" (REENTRANT_DATABASE) define is also axed.
1999-01-26 20:55:54 +00:00
Kurt Zeilenga
f1e934effb
Hide allocate of reentrant_database cond varible and reader count
...
behind REENTRANT_DATABASE. rename reentrant_database -> REENTRANT_DATABASE.
When REENTRANT_DATABASE is defined, the simple lock is replaced
with a simple reader/writer lock. This functionality should be removed
from back-ldbm to libldbm.
1999-01-26 17:23:50 +00:00
Kurt Zeilenga
3c67248a65
cache_set_state( cache, e, 0) cannot occur before lock on parent/root
...
is released. Some other thread may have cache locked but blocking
on parent. Must give up parent lock before acquiring cache lock.
1999-01-26 05:22:58 +00:00
Kurt Zeilenga
0181892175
Change o_private from int to void*. Use it to hold a pid_t (and hope it fits).
...
Have forkandexec() return pid_t instead of int.
1999-01-26 04:32:26 +00:00
Kurt Zeilenga
b83ae3b434
Add pidfile/argsfile options to default slapd.conf.
1999-01-24 21:20:00 +00:00
Kurt Zeilenga
a928abeb9e
incorrect args to tcpd statslog
1999-01-24 01:29:23 +00:00
Kurt Zeilenga
29b1e1f0ba
dn_parent(" ") should be NULL.
1999-01-23 19:34:02 +00:00
Kurt Zeilenga
4194c3ee85
If dn2id returns ID but id2entry returns NULL, log it.
...
Assume entry was deleted from underneath the dn2entry call, hence
processing is same as if NOID had been returned.
1999-01-23 19:33:53 +00:00
Kurt Zeilenga
4863d98084
Remove configure's wait3 test as we don't care about the rusage.
...
Rewrite all child waits to use wait4 (for consistency only).
1999-01-23 04:03:43 +00:00
Kurt Zeilenga
637c0a8301
Use strtok_r() instead of strtok(). Remove strtok mutex!
1999-01-22 04:46:54 +00:00
Kurt Zeilenga
0f17fac37d
Implement NEXTID chunking. Obtain IDs in chunks of size
...
SLAPD_NEXTID_CHUNK. Code protects NEXTID file to ensure
its equal to or greater than nextid. Updated on close
to actual nextid. next_id_save() could be called periodically
if desired. Default chunk size is 32. Define to 1 to disable
chunking.
1999-01-22 02:26:19 +00:00
Kurt Zeilenga
5389e40ba5
initialize nextid with NOID not -1.
1999-01-22 01:53:39 +00:00
Kurt Zeilenga
2318ea0fd6
Don't return nextid on failed add operations for safety.
1999-01-22 01:51:53 +00:00
Kurt Zeilenga
5bfb3ac221
nextid cleanup in preparation to disable next_id_return().
1999-01-22 01:40:39 +00:00
Kurt Zeilenga
ecdf9a354d
Entry must be locked before adding it to the cache.
...
This removes a race condition upon the entry.
1999-01-22 00:27:50 +00:00
Kurt Zeilenga
6edeeeffd4
During cleanup always unlock root_mutex if rootlock is true
...
(don't make it conditional on p == NULL)
1999-01-21 22:20:03 +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
127ec9c46c
Fix c_cdn typo. Ouch.
1999-01-21 02:25:09 +00:00
Kurt Zeilenga
09421a74db
Add c_protocol to slap_conn to track protocol version used by client.
...
Is initialized to 0 (unknown) and then set to 2 or 3 on bind. Should
also be 0->3 if a special (or any) operation occurs before the bind.
1999-01-21 02:21:39 +00:00
Kurt Zeilenga
b3d383bbf5
*** empty log message ***
1999-01-21 01:12:35 +00:00
Kurt Zeilenga
19a17982c6
suffixes need to be stored in normalized uppercase format
1999-01-20 05:43:33 +00:00
Kurt Zeilenga
f9b416ea7c
ndn & strcasecmp cleanup
1999-01-20 03:05:35 +00:00
Kurt Zeilenga
0503205c93
suffixAlias will return a normalized uppercase DN if input is normalized
...
and uppercase. (aliased_dn are stored in normalized uppercase format).
1999-01-19 19:29:11 +00:00
Kurt Zeilenga
0daa8c1f06
Recode suffixAlias to implement simple check to see if part to aliased
...
is at a DNSEPARATOR. Moved DNSEPARATOR macro from dn.c to slap.h
1999-01-19 19:26:09 +00:00
Kurt Zeilenga
029069d84a
Removed o_suffix and o_suffixalias as they were 1) leaked and 2) unused
...
(suffixAliasing only maps input dn's, not output dn).
1999-01-19 18:54:19 +00:00
Kurt Zeilenga
3efaabe560
Don't allow suffixAliases were alias and aliased dn our the same.
1999-01-19 18:39:20 +00:00
Kurt Zeilenga
47d0c970d4
use dn_normalize_case().
1999-01-19 18:25:21 +00:00
Kurt Zeilenga
a837feacc2
uppercase that ndn.
1999-01-19 18:18:53 +00:00
Kurt Zeilenga
48bdf4258c
Need to uppercase e_ndn.
1999-01-19 18:17:29 +00:00
Kurt Zeilenga
8c501c28a2
Need to upper case the new_ndn.
1999-01-19 18:16:12 +00:00
Kurt Zeilenga
0e142b42f3
Update support for dn vs ndn. Build new dn from e->e_dn not frontend
...
provided dn (which is normalized and uppercased). This preserved
the trailing portion of the dn.
1999-01-19 18:13:30 +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
01a759971e
Free that unclobberred dn.
1999-01-18 20:49:07 +00:00
Kurt Zeilenga
802325542b
Don't clobber dn.
1999-01-18 20:34:17 +00:00
Kurt Zeilenga
c9242a123f
e_ndn = dn_normalize_case( e_dn )
1999-01-18 20:00:58 +00:00
Kurt Zeilenga
2805b25682
Store rootdn in normalized uppercase format.
1999-01-18 19:47:12 +00:00
Kurt Zeilenga
15fb73a473
ITS#44 fix. denied connections should not be added to connections.
1999-01-18 18:40:12 +00:00
Kurt Zeilenga
8009e591ce
Protect return of the locked entry.
...
Note: we probably can replace the dn2entry_r with dn2id as only the id
is needed unless we're holding the lock for filtercandidates or something
1999-01-18 17:41:12 +00:00
Kurt Zeilenga
818bc57319
Minor cleanup of trace output.
1999-01-18 17:33:36 +00:00
Kurt Zeilenga
77b2e2cb25
Use Entry's e_ndn instead of recomputing it.
1999-01-17 20:12:00 +00:00
Kurt Zeilenga
931a8b1cd8
Add 'should not be world readable' comment.
1999-01-16 01:51:02 +00:00
Kurt Zeilenga
55cd5ee75f
Add reference to slapd.conf(5) and recommendation to avoid cleartext passwords.
1999-01-16 01:48:26 +00:00
Bart Hartgers
3a5a86d44c
Fixed a small typo...
1999-01-15 19:57:32 +00:00
Kurt Zeilenga
3e3f0b8871
Could have no entry to return... check entry pointer before trying to
...
return cache entry.
1999-01-15 18:04:52 +00:00
Kurt Zeilenga
163bac5f04
Install slapd.conf with mode of 600.
1999-01-15 02:48:00 +00:00
Kurt Zeilenga
b7beec1663
Initial version of the experimental 'back-perl'
...
John's still working on the 'perl-test' (the perl backend test module).
1999-01-14 06:33:09 +00:00
Kurt Zeilenga
28a671d10d
Revamp build system yet again to move all external libraries to
...
end of link. Basic order is:
$LDFLAGS internal-libs external-libs $LIBS $LTHREAD_LIBS
LTHREAD_LIBS is last as -lpthread (or equiv) must be last on many systems.
LIBS is next to last as some user might have put -lpthread (or equiv)
in $LIBS.
1999-01-14 01:31:43 +00:00
Kurt Zeilenga
b39fdc0bcd
Add normalized dn to Entry structure as field e_ndn. Entry
...
creation codes to provide this field. Update cache_entrydn_cmp
to strcasecmp() the e_ndn instead of e_dn. Note: strcasecmp()
is still used as e_ndn isn't in uppercase. Maybe it should
be. Did not update other codes to use e_ndn. Hence, there
are lots of dn_normalize() calls that could be eliminated.
(The case determination of e_ndn should be made first).
1999-01-13 01:17:22 +00:00
Kurt Zeilenga
6f88096e72
Report status of failed pthread_create()
1999-01-12 23:57:21 +00:00
Kurt Zeilenga
6bd6a7cf27
Report exit status of pthread_create()
1999-01-12 23:52:50 +00:00