Kurt Zeilenga
fe591cf679
Remove istty test otherwise we may not detach.
1999-12-05 05:25:02 +00:00
Kurt Zeilenga
5d5588836f
Fix ldap_rename parameter order (ITS#387)
1999-12-04 17:19:11 +00:00
Kurt Zeilenga
482b1d7152
Remove lint.
1999-12-03 06:26:41 +00:00
Howard Chu
ed05ed8025
Fix memory losses, ITS#379
1999-12-03 00:21:32 +00:00
Howard Chu
568e25a7a9
ldap_result was losing messages when multiple msgids were queued,
...
and results were being returned one-at-a-time. Ugh, this cost me two
days, loss of hair, sleep, etc.....!
1999-11-30 13:32:06 +00:00
Howard Chu
5279265f2e
Added missing ldap_pvt_thread_mutex_trylock function.
1999-11-28 04:07:11 +00:00
Howard Chu
eaaea51b53
Fixes for NT dynamic linking.
1999-11-27 23:40:08 +00:00
Kurt Zeilenga
8b99e6cdbd
Remove LBER_{TAG,INT,LEN}_{NTOH,HTON} macros. Rewrite code to
...
manual push bytes about. Allows ber_*_t to be any 32-bit or
larger type. Reworked AC_{HTON,NTOH}{L,S} macros to care only
about 32-bit (netlong) and 16-bit (netshort) reordering as
needed for BSD socket interface.
1999-11-26 23:32:18 +00:00
Kurt Zeilenga
c59d1a34db
Use 'long' for LBER_INT_T.
1999-11-25 17:45:21 +00:00
Kurt Zeilenga
62a06eda3e
Don't use 'int' for LBER_*_T types as we only have hton{s,l}.
...
Select appropriopriate hton{s,l} function to use in lber-int.h.
1999-11-25 17:10:45 +00:00
Kurt Zeilenga
53ee6b01b9
Fix typo in ldap_compare_ext. Found by dspeck@novell.com.
1999-11-19 02:01:50 +00:00
Kurt Zeilenga
357101793b
Use lber types instead of uint32 for md5. sha1 still requires
...
an integer type of exactly 32 bits.
1999-11-17 02:04:06 +00:00
Kurt Zeilenga
5f3ec33b0c
Backout premature commit.
1999-11-08 19:36:30 +00:00
Mark Valence
84be63096b
Minor bug fix in ldap_parse_extended_result.
1999-11-08 18:47:47 +00:00
Kurt Zeilenga
f4856214fb
*** empty log message ***
1999-11-08 15:38:59 +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
Kurt Zeilenga
4cc712db53
Add <ac/param.h> to wrap <sys/param.h>
1999-11-01 17:21:24 +00:00
Howard Chu
17e1877a12
Fix broken MSVC builds. The previous round of Mingw32 patches changed some
...
ifdefs to depend on _WINNT, which is bogus. Added _WIN32 back on these ifs,
and fixed some other include problems.
1999-10-31 02:26:41 +00:00
Mark Valence
e20d6dfb8b
bug fixes for ldap_msgtype and ldap_msgid
1999-10-30 18:33:37 +00:00
Kurt Zeilenga
baa34f752b
Do not attempt to obtain sizeof(sin_addr.s_addr) or &sin_addr.s_addr
...
as s_addr member of in_addr may be a bitfield.
1999-10-30 04:58:06 +00:00
Kurt Zeilenga
ebc4a8f149
Use uint32 not u_int as code requires 32 bit unsigned integers.
1999-10-30 03:30:10 +00:00
Kurt Zeilenga
5bb1546867
Refine comments.
1999-10-28 17:42:46 +00:00
Howard Chu
e99eab787f
Use new macros from configure.in to accomodate NT/Mingw32 environment.
...
See README 1.27 log
1999-10-28 07:31:59 +00:00
Howard Chu
5438e045af
Fixed use of LDAP_F macro
...
See README 1.27 log
1999-10-28 07:29:25 +00:00
Howard Chu
a57a9abe6d
New files added for Mingw32 support.
...
See README 1.27 log
1999-10-28 07:22:10 +00:00
Howard Chu
dd89498e85
Fix misc syntax warnings and/or bugs.
...
See README 1.27 log
1999-10-28 07:18:48 +00:00
Howard Chu
74d93ac2f8
Fix Winsock-related warning and/or bugs.
...
See README 1.27 log
1999-10-28 07:17:08 +00:00
Mark Valence
a50cd075db
Changes to make TLS work on Windows
1999-10-27 22:40:05 +00:00
Kurt Zeilenga
554f5b7aea
Fix up comments.
1999-10-27 22:00:29 +00:00
Kurt Zeilenga
8d821f3904
Really fix gettimeofday usage.
1999-10-27 21:53:41 +00:00
Kurt Zeilenga
68a569c738
Don't use sig_atomic_t.
...
Comment upon synchronization issue.
Fix gettimeofday usage.
1999-10-27 21:50:49 +00:00
Kurt Zeilenga
c52dc059e6
In fallback mode, use value of buffer to improve quality of hash.
1999-10-27 19:42:27 +00:00
Kurt Zeilenga
f804da9bef
Port to NT.
1999-10-27 04:41:38 +00:00
Kurt Zeilenga
491dc61df6
Didn't mean to commit #undef URANDOM_DEVICE
1999-10-27 00:29:10 +00:00
Kurt Zeilenga
241799c9e3
Make sure rdata differs for each program.
1999-10-27 00:08:31 +00:00
Kurt Zeilenga
9e0958d5bc
Rework counter code in fallback.
1999-10-26 23:54:39 +00:00
Kurt Zeilenga
58e10c7417
Add a fallback based upon Phil Karn's "practical randomness" idea.
1999-10-26 23:41:09 +00:00
Kurt Zeilenga
d0ad0cf228
Minor cleanup.
1999-10-26 23:04:44 +00:00
Kurt Zeilenga
3d064b73c5
Fix compilation errors.
1999-10-26 23:00:30 +00:00
Kurt Zeilenga
bdca662249
Add lutil_entropy(). Currently only supports /dev/urandom or
...
Linux equivs. Should be extended to support other quality
sources of entropy. Should be extended to support a reasonable fallback.
1999-10-26 22:57:39 +00:00
Kurt Zeilenga
f4a0699311
Add macros to compute base64 encode/decode lengths.
1999-10-25 01:44:47 +00:00
Kurt Zeilenga
10e886a601
Hack to free seqorset when ber_free(ber, 1) is called.
1999-10-21 17:52:33 +00:00
Kurt Zeilenga
d306bb1114
Remove lint caused by recent header changes.
1999-10-20 00:19:47 +00:00
Kurt Zeilenga
a5ac8f57f8
Complain if setsockopt TCP_NODELAY fails
1999-10-19 19:07:24 +00:00
Kurt Zeilenga
7ef67830af
Minor adjustments based upon initial read of draft-ietf-ldapext-ldap-c-api-04.txt.
1999-10-19 18:57:38 +00:00
Kurt Zeilenga
60d00d4649
Force sd close. Suggested by rajk@home.com
1999-10-12 18:51:36 +00:00
Howard Chu
70f31490a8
Always return ld->ld_errno thru *errcodep if given to ldap_parse_result
1999-10-08 00:51:35 +00:00
Kurt Zeilenga
a284b641b7
Move crypt(3) prototypes from <ac/unistd.h> to <ac/crypt.h> (new) to
...
avoid clashes with Kth Kerberos.
1999-10-01 04:48:30 +00:00
Kurt Zeilenga
e7e4800d44
Remove lint.
1999-09-25 23:13:15 +00:00
Kurt Zeilenga
3c00fd6d23
Rework passwd routines to allow callers to determine which
...
schemes are supported. This should facilate server rootDSE
advertisement of supported schemes, etc..
1999-09-25 22:13:25 +00:00
Mark Valence
b221e4ad4b
Fixed "typos" in TLS code. TLS is ATTR_TLS, not ATTR_BOOL.
...
ldap_pvt_tls_config() was missing first param.
1999-09-25 03:57:25 +00:00
Mark Valence
9e7243015c
fixed LDAP_OPT_X_TLS case of ldap_pvt_tls_config().
...
ldap_pvt_tls_set_option() expects int* as third param.
1999-09-25 03:53:17 +00:00
Randy Kunkee
24c81ea599
Back out my change to ldap_sort_strcasecmp. My mistake from not reading
...
manpage carefully. One should pass strcasecmp to ldap_sort_entries, not
ldap_sort_strcasecmp. Ldap_sort_strcasecmp is for ldap_sort_values, NOT
ldap_sort_entries.
1999-09-24 18:16:41 +00:00
Randy Kunkee
b133aa528b
Change call to strcasecmp in ldap_sort_strcasecmp, which makes
...
ldap_sort_entries work with ldap_sort_strcasecmp as the comparison
function. Pointers were being dereferenced, and should only have been
casted.
1999-09-24 08:02:54 +00:00
Kurt Zeilenga
3a44abba1a
ITS#302 ldif fix. Treat value with only continuation markers
...
as an empty value. Complain, of course, as this isn't valid LDIF.
1999-09-24 02:30:33 +00:00
Kurt Zeilenga
a68825e6df
Howard convinced me that this version is slightly better.
...
back out previous commit.
1999-09-24 00:16:16 +00:00
Kurt Zeilenga
a93ac070b5
I believe ldap_result2error should return the value returned
...
by ldap_parse_result unless that value is SUCCESS.
1999-09-23 22:57:05 +00:00
Howard Chu
91e24173d0
Update ld->ld_errno if LDAP_DECODING_ERROR...
1999-09-23 22:35:58 +00:00
Howard Chu
fa62e37667
Fix ldap_parse_result and ldap_result2error to return correct results.
1999-09-23 22:10:22 +00:00
Kurt Zeilenga
deafd4e274
experimental ITS#109 fix: make kbind open default connection if necessary.
...
implemented ldap_open_defconn() to centralize default connection
opening in open.c. Used by ldap_open, kbind, and send_initial_request().
1999-09-23 04:08:33 +00:00
Ben Collins
53da7b6cda
* build/top.mk: removed references to TMPROOT and added DESTDIR support
...
* all others: Added DESTDIR support
1999-09-22 21:51:30 +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
Kurt Zeilenga
86813f2b4b
Fix typo in last commit.
1999-09-17 22:11:08 +00:00
Kurt Zeilenga
c35d53d6e0
Apply y2k fix based upon Howard Young's (ITS#294) suggestion
1999-09-17 22:05:51 +00:00
Kurt Zeilenga
7b0753afb2
Add OpenLDAP RCSid to conf files
1999-09-09 04:43:30 +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
324903affa
s/int/u_int32_t/ for db_appinit flags
1999-09-06 18:45:39 +00:00
Hallvard Furuseth
f3880e5633
Remove lint
1999-09-06 04:42:20 +00:00
Hallvard Furuseth
879d3dbc5e
Cleanup: Complete renaming lber_*() to ber_*(). Fix some sockbuf SASL code rot.
1999-09-06 04:33:41 +00:00
Hallvard Furuseth
4a5e2febed
Some constification & lint removal
1999-09-04 21:15:49 +00:00
Hallvard Furuseth
33cc7d4cf1
Introduce and use LDAP_GCCATTR() = __attributes__() in gcc
1999-09-03 21:06:33 +00:00
Hallvard Furuseth
e8ab6eabec
<url> was used uninitialized
1999-09-03 20:19:18 +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
Hallvard Furuseth
1ced9c02cf
Fix typo in lutil_debug_file()
1999-09-02 07:40:25 +00:00
Kurt Zeilenga
41e57c041f
Add OpenLDAP RCS id
1999-09-02 00:52:43 +00:00
Kurt Zeilenga
f5c2ba7c3e
Fix last commit. Should not have deleted assignment to p away.
1999-09-01 05:28:29 +00:00
Kurt Zeilenga
683ea591f7
pipe(2) needs unistd.h
1999-08-31 17:51:04 +00:00
Kurt Zeilenga
0307dd3b38
Use pipe(2) if descriptors are selectable.
1999-08-31 17:01:10 +00:00
Kurt Zeilenga
ac8b5468aa
Clean up soctpair for NT. Add USE_PAIR to allow pair(2) use.
1999-08-31 16:47:42 +00:00
Kurt Zeilenga
b509dd4d8c
sockpair cleanup including:
...
provide prototype in lutil.h
use LBER_SOCKET_T instead of int in prototype. (didn't use
ber_socket_t so all of lber.h wouldn't have be dragged in)
rename signal handlers, use RETSIGTYPE, and make SIGHUP wake
rename fd to sd to reflect descriptor must be usable as a socket.
renamed sel_exit_fds to wake_sds to reflect current use
improve readability of sockpeer.c including removing obtuse goto.
1999-08-31 05:18:06 +00:00
Howard Chu
c057653881
Added lutil_pair()
1999-08-31 03:25:23 +00:00
Hallvard Furuseth
6632e41ee8
Export ldap_pvt_<find_wildcard,filter_value_unescape>() from libldap.
...
Use them in slapd/str2filter.c.
1999-08-31 00:44:49 +00:00
Kurt Zeilenga
878d489ea9
Do not overwrite charray argument if charray_add realloc fails.
...
Caller is required to call ldap_charray_free as needed.
1999-08-30 01:24:33 +00:00
Hallvard Furuseth
66704f67b9
Catch \ at end of filter
1999-08-28 22:15:16 +00:00
Hallvard Furuseth
4d94092995
Remove 'cast away const'
1999-08-28 22:14:21 +00:00
Hallvard Furuseth
635a666359
Fix typo in filter_value_unescape()
1999-08-28 22:06:52 +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
406f33eb12
This fixes dn2id delete bug... but breaks modrdn.
1999-08-26 00:48:24 +00:00
Kurt Zeilenga
cc3615314b
Defer addition until we have some basic UTF-8 routines
1999-08-25 21:27:39 +00:00
Kurt Zeilenga
af17a9f7ad
Add dn.c
1999-08-25 06:52:28 +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
Gary Williams
f8a3a664fc
LDAP_P is only for prototypes, remove from function def
1999-08-24 18:42:11 +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
Kurt Zeilenga
b8a3a153bb
Axe <varargs.h> support. Assume STDC C translator is available
...
to build OpenLDAP.
1999-08-24 00:27:53 +00:00
Hallvard Furuseth
968f742d7a
Remove lint
1999-08-22 03:35:10 +00:00
Kurt Zeilenga
1b0aa8cf23
Support for native GNU Pth Threads (--with-threads=pth)
...
Tests behave as expected excepting slapd sometimes does not
shutdown properly.
1999-08-22 03:04:33 +00:00
Kurt Zeilenga
5cf315c31f
Experimental support for GNU Pth's Posix Thread API. This might be a
...
suitable for systems with poor (or nonexistant) Pthread implementations.
1999-08-21 17:19:10 +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