Commit Graph

882 Commits

Author SHA1 Message Date
Howard Chu
d75975edf8 Use sock_errno() and sock_errstr() in socket debug messages.
Use a UDP socket connected to itself to allow signals to terminate the
select() in slapd_daemon_task().
1999-08-29 01:51:45 +00:00
Howard Chu
a60406860f Use strerror() 1999-08-29 01:50:12 +00:00
Hallvard Furuseth
ac09c64f5c Fix fprintf format args 1999-08-29 00:26:44 +00:00
Kurt Zeilenga
0afcadc4dd Remove misplaced asserts. connection_resched changes connection state
to UNUSED without holding connections mutex.  It's not safe for
connection_init to check connection state until after acquires the
c_mutex.
1999-08-27 19:31:42 +00:00
Kurt Zeilenga
9bf50242c3 Plug ber leakage:
result was leaking ber's in some error cases.  ber_flush now called
with no freeing so that caller of send_ldap_ber() can free its own ber.
c->c_currentber was also being leaked if connection was destory
current when a PDU input was outstanding.
Fixed ber_flush to free ber upon write only to file.
1999-08-27 05:45:53 +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
bc1186bfb1 Fix "database fubar" crash 1999-08-26 19:09:40 +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
5c63fd55b5 Implement ldap_dn_normalize and friends. Should be used by clients
to validate input dn's BEFORE sending dn's to server.
Also fixed getfilter to use REG_EXTENDED|REG_NOSUB.  (and fixed one
case where REG_BASIC was still used).
s/strdup/LDAP_STRDUP/
Added ldap_pvt_str2lower/upper
1999-08-25 06:44:08 +00:00
Kurt Zeilenga
46802eee03 Add REG_NOSUB as we only need matched results. 1999-08-24 04:33:34 +00:00
Kurt Zeilenga
2d2719123d Rename filter entry's strcpy_special() to strcpy_regex() to better
reflect its purpose.  Modify switch to support REG_EXTENDED expressions.
Use REG_EXTENDED instead of REG_BASIC everywhere.
Modify <ac/regex.h> to support <gnuregex.h> for testing purposes.
Requires: env CPPFLAGS="-DHAVE_GNUREGEX_H=1" LIBS=-lgnuregex ./configure
1999-08-24 01:13:30 +00:00
Hallvard Furuseth
85c0f926fe Plug minor memory leak 1999-08-22 03:36:19 +00:00
Hallvard Furuseth
d08a8cbbd6 Initialize lineno 1999-08-22 03:32:13 +00:00
Hallvard Furuseth
1a16766b3c Always compile acl_dn_pat when it is set, otherwise acl.c breaks 1999-08-22 03:30:45 +00:00
Kurt Zeilenga
387186fc33 Stop mergers if dup returns NULL. 1999-08-20 22:59:00 +00:00
Kurt Zeilenga
87675a953d ACIs from Mark Valence <kurash@sassafras.com> (ITS#261) 1999-08-20 22:42:04 +00:00
Kurt Zeilenga
255e36df0b Backout fetch_one copy change 1999-08-20 22:37:30 +00:00
Kurt Zeilenga
546262acb8 complete this round of constification 1999-08-20 19:50:11 +00:00
Kurt Zeilenga
8ac21b67a1 more const'ification 1999-08-20 19:29:43 +00:00
Kurt Zeilenga
3f85d6b2ac const'ification 1999-08-20 19:12:41 +00:00
Kurt Zeilenga
2a74677799 const'fication 1999-08-20 19:00:44 +00:00
Howard Chu
95d9fe1046 Fix warnings from previous OID parse commit 1999-08-19 23:44:53 +00:00
Kurt Zeilenga
52ecfc74d2 s/slapentry/slapadd/ 1999-08-19 22:27:24 +00:00
Kurt Zeilenga
b6753b47d3 s/HAVE_QUIPU/BUILD_QUIPU/ 1999-08-19 22:26:35 +00:00
Howard Chu
75c9a1e222 Add OIDmacros for attribute & objectclass numericOIDs. Allow parsing
attribute syntaxes using syntax description in addition to syntax OID.
Removed all whitespace from syntax descriptions.
1999-08-19 22:09:33 +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
9e82379b6e More CSRI malloc debugging support and destroy sockbuf fix.
Test008 now runs without leak.
1999-08-19 18:48:17 +00:00
Kurt Zeilenga
ebce52fa52 Free ldif buffer... test001 now shows no leaks! 1999-08-19 18:19:20 +00:00
Kurt Zeilenga
8fcb25216f Fix MAJOR memory leak. 1999-08-19 18:16:04 +00:00
Kurt Zeilenga
5b4e2498d9 Add CSRIMALLOC support 1999-08-19 18:13:36 +00:00
Kurt Zeilenga
1429fc36eb Apply dn_parent memory leak fix to bdb2 1999-08-19 18:13:10 +00:00
Kurt Zeilenga
a1987f662d Centralize slap init/startup/shutdown/destroy into slapcommon 1999-08-19 17:20:15 +00:00
Kurt Zeilenga
79a3553039 Fix typo in last commit... odd that test001 didn't bomb because of this. 1999-08-19 17:08:32 +00:00
Kurt Zeilenga
c51f35fe0f Add hacks to allow debugging with CSRI malloc.
(test001-populate runs without leak)
Free global entry string buffer on shutdown.
1999-08-19 17:06:28 +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
Hallvard Furuseth
2d6460f880 plug memory leak 1999-08-19 11:44:44 +00:00
Kurt Zeilenga
8ead8c5fd9 Clean up debug messages. 1999-08-19 00:40:18 +00:00
Kurt Zeilenga
fc2b55f53d Fix typos in 'make clean' 1999-08-18 07:20:30 +00:00
Kurt Zeilenga
ac50982e37 Add schema checking, continue mode, and fix a few leaks. 1999-08-18 01:45:59 +00:00
Hallvard Furuseth
aad3c488da Add <ac/string.h> 1999-08-17 21:21:43 +00:00
Kurt Zeilenga
aeda441fc4 Remove lint. 1999-08-17 21:11:52 +00:00