Howard Chu
17493164ea
Fix previous commit
2002-08-31 06:23:46 +00:00
Howard Chu
e3304da727
OS/390 EBCDIC support
2002-08-31 05:14:43 +00:00
Howard Chu
d11b134709
Fix large SASL reads. Use EAGAIN instead of EWOULDBLOCK (was right the
...
first time after all. see read(2) and write(2)...)
2002-08-30 10:11:54 +00:00
Kurt Zeilenga
2de5c33ba7
Add manageDsaIt/NOOP control support to every tool.
...
Update NT build.
2002-08-29 21:52:45 +00:00
Pierangelo Masarati
3b799694ee
reworking of threads in session handling
2002-08-29 19:44:02 +00:00
Pierangelo Masarati
864f05497e
allow different solutions to debug sasl shutdown
2002-08-29 17:45:12 +00:00
Pierangelo Masarati
c2efb8788b
when shutting down a server with open connections (back-{ldap,meta}),
...
the backend attempts a ldap_unbind() that results in calling
ldap_pvt_sasl_mutex_lock() with a NULL argument, causing a SIGSEGV.
I added a few assert() to catch this (I wonder if this might
be related to ITS#1982 "kill -INT corrupts database").
2002-08-29 16:03:38 +00:00
Howard Chu
1dd1c375bb
Fix previous commit - use EWOULDBLOCK instead of EAGAIN
2002-08-29 13:38:36 +00:00
Howard Chu
456e6c73ab
Fix ITS#1983, handle writing of large requests. Only one pending request is
...
allowed per LDAP* handle. It works, but needs review.
2002-08-29 12:12:36 +00:00
Pierangelo Masarati
519bf9e28a
cleanup logging
2002-08-29 10:42:42 +00:00
Howard Chu
010dbff2cc
Fix ITS#1983, in sb_sasl_write, set errno = EAGAIN to tell upper layers to
...
retry partial writes
2002-08-29 10:12:35 +00:00
Howard Chu
536019beb4
For ITS#1983, in ber_pvt_sb_do_write, partial writes are not failures
2002-08-29 09:46:19 +00:00
Howard Chu
5ec4ef6e59
Added no-op for SASL_VERSION_MAJOR < 2
2002-08-28 08:35:38 +00:00
Howard Chu
3cb7a09eb0
Added check for Cyrus SASL sasl_version()
2002-08-28 07:12:22 +00:00
Julius Enarusai
48593e1484
Fix compile error when --without-threads configure option is set. Function
...
headers differ from prototypes in ldap_pvt_threads.h
2002-08-26 19:26:09 +00:00
Kurt Zeilenga
7dc1e069e8
Increase res_query buffers to 64k
2002-08-24 17:03:24 +00:00
Kurt Zeilenga
8de258d2e2
Patch: 'ldapmodify -y file' reads password from file (ITS#2031)
...
================
Written by Hallvard B. Furuseth and placed into the public domain.
This software is not subject to any license of the University of Oslo.
================
Adapted by Kurt Zeilenga for inclusion in OpenLDAP. My comments are
marked with enclosed with square brackets (e.g. [Kurt's comment] below.
================
If I run ldapmodify & co from a script, I don't want to use '-W password'
because the password shows up in the output of 'ps' for everyone,
and I can't pipe the password to 'ldapmodify -w' because -w uses
getpassphrase() which reads from the tty instead of stdin.
So I added '-y file' which reads the password from file. The programs
exit if the file cannot be read.
[Complete contents of file is used as password. Use:
echo -n "secret" > password
to create a file with "secret" as the password. The -n avoids
adding a newline (which would invalidate the password). Note
that echo is a builtin and hence its arguments are not visible
to 'ps'.]
I changed ldapmodify, ldapmodrdn, ldapdelete, ldapsearch, ldapcompare.
I did not bother to change ldappasswd and ldapwhoami, because they
prompt for many passwords. [I fixed up ldapwhoami.]
Rerun autoconf after applying this patch. [Done.]
Note: I do not know if Windows NT has fstat(), so I set HAVE_FSTAT to
undef in portable.nt. (fstat() is used to warn if the file is publicly
readable or writeable.) [I used fstat() to set the buffer size to
read.]
[Note: using the contents of a file extends the tools to support
passwords which could not normally be provided using getpassphrase()
or via the command line.]
Hallvard B. Furuseth <h.b.furuseth@usit.uio.no>, Aug 2002.
[Kurt D. Zeilenga <kurt@openldap.org>, Aug 2002.]
2002-08-24 05:47:17 +00:00
Howard Chu
8c30114d84
Added thread-pool getkey/setkey functions
2002-08-24 05:39:43 +00:00
Kurt Zeilenga
86717ac2d9
NT port fixes
2002-08-24 00:37:59 +00:00
Pierangelo Masarati
4046c4226e
add upper/lower funcs that also compute the length of the string (not used yet)
2002-08-23 08:45:17 +00:00
Howard Chu
3b9f4a82ee
Added support for BDB 4.1.17
2002-08-22 04:00:06 +00:00
Jong Hyuk Choi
b81122d441
Slapadd is changed to include Operational Attributes (entryUUID, entryCSN,
...
creatorsName, modifiersName, createTimestamp, modifyTimestamp) when it adds
from ldif file. Month field in time format in entryCSN is changed to 1~12.
2002-08-21 00:11:32 +00:00
Kurt Zeilenga
678d686017
make dc const
2002-08-17 19:59:35 +00:00
Kurt Zeilenga
472484725f
Update dn2domain() to use str2dn() instead of explode_dn()
2002-08-17 19:42:59 +00:00
Kurt Zeilenga
a500feb4a6
Patch: lutil_progname() and lutil_strcopy() are not declared (ITS#2021)
...
================
Written by Hallvard B. Furuseth and placed into the public domain.
This software is not subject to any license of the University of Oslo.
================
lutil_progname() and lutil_strcopy() are not declared, which can
be fatal since they do not return int.
Hallvard B. Furuseth <h.b.furuseth@usit.uio.no>, Aug 2002.
2002-08-13 02:33:20 +00:00
Howard Chu
771974f99d
ITS#2019 Initialize utils properly
2002-08-10 23:34:55 +00:00
Kurt Zeilenga
ca5aa3b615
Some more sockaddr_in v sockaddr_storage cleanup
2002-08-10 03:48:09 +00:00
Howard Chu
4c69827b15
ITS#2016 possibly better macro test for this fix
2002-08-10 00:32:25 +00:00
Howard Chu
66d9bf404b
ITS#2016 Don't include <openssl/des.h> if we're also including <krb.h>.
2002-08-10 00:22:52 +00:00
Kurt Zeilenga
b3bbe586b6
ITS#2018: use sockaddr_storage
...
based upon patch provided by <thorild@Update.UU.SE>
2002-08-09 22:14:43 +00:00
Kurt Zeilenga
9c28c9b361
Zap LDAPv2-only stuff
2002-08-08 03:01:14 +00:00
Howard Chu
6226684204
Eliminate an unnecessary malloc/free
2002-08-07 00:47:57 +00:00
Howard Chu
1c69a2ab2b
ITS#1998 ber_mem2bv should accept 0-length calls, just like ber_strdup.
2002-08-06 02:35:51 +00:00
Kurt Zeilenga
9c9bd4d5ab
Set O_EXCL
2002-08-05 19:49:27 +00:00
Howard Chu
91aff0b3e2
Revert previous commit. Fix needs more design.
2002-08-01 07:09:11 +00:00
Howard Chu
d9eac72099
ITS#1995 return error text when ldap_pvt_tls_check_hostname fails
2002-08-01 03:23:29 +00:00
Howard Chu
478283ea47
ITS#910, ITS#1983 retry partial writes in ber_pvt_sb_do_write
...
blind fix, needs testing
2002-08-01 03:03:52 +00:00
Kurt Zeilenga
dc4413349e
Fix up restart code for EINTR
2002-07-28 05:30:39 +00:00
Howard Chu
f2af8dfdd7
If HAVE_EBCDIC, translate dbname from ASCII to EBCDIC in ldbm_open.
2002-07-27 04:43:48 +00:00
Howard Chu
db8aec69e2
test programs need -llutil
2002-07-27 03:20:47 +00:00
Howard Chu
0fcec3a01c
test programs need -llutil
2002-07-27 03:06:15 +00:00
Howard Chu
3b141ba108
Fix segfault from ITS#1960 hacks
2002-07-27 02:19:44 +00:00
Howard Chu
155c16484b
Moved slap_strcopy, slap_strncopy to lutil_strcopy, lutil_strncopy
...
Added lutil_gentime, moved lutil_vsnprintf to stdio.c
2002-07-27 00:25:16 +00:00
Howard Chu
f969443fb7
Additional tweak for HAVE_PTHREADS_OS390
2002-07-27 00:12:39 +00:00
Kurt Zeilenga
89b3550f95
Clarify error messages
2002-07-26 17:35:57 +00:00
Howard Chu
2db6e4e97e
Must include <stdio.h> for prototypes
2002-07-26 13:21:27 +00:00
Howard Chu
84b91f70ad
Minor uniformity tweaks, use lutil_progname, don't use fscanf
2002-07-26 03:22:53 +00:00
Howard Chu
42ef1aab4d
Make liblutil before liblunicde, ucgendat needs liblutil
2002-07-26 03:17:21 +00:00
Howard Chu
1a0ca2195e
Moved <stdio.h> before <ac/stdlib.h>
2002-07-26 03:16:21 +00:00
Howard Chu
cc8aa38d7d
Some tweaks for OS/390 pthreads. Func signatures are different, return
...
val is 0/-1 with err in errno instead of in return val.
2002-07-26 03:15:25 +00:00
Howard Chu
a20390528d
Fix previous commit, "data" disappeared...
2002-07-26 03:14:13 +00:00
Howard Chu
f0b25d7b2c
Conditionalize use of vsyslog
2002-07-26 02:56:01 +00:00
Kurt Zeilenga
ee705326d4
More 64-bit hacking...
...
This code should be rewritten to avoid fixed sized types.
2002-07-25 15:00:31 +00:00
Howard Chu
5dc098dab0
Wrap get_ca_list opendir code with #if HAVE_DIRENT_H || dirent to avoid
...
compile errors on incompatible build platforms.
2002-07-24 19:36:03 +00:00
Kurt Zeilenga
45c9cbafe3
Clean up last commit
2002-07-23 18:41:30 +00:00
Kurt Zeilenga
e6460769ab
Misc sprintf/snprintf cleanup
2002-07-23 18:26:33 +00:00
Kurt Zeilenga
b6bbc69e2f
Short term fix for ITS#1960
...
Code really should be changed to write only 'unsigned int's
with simple sanity check.
2002-07-23 18:22:58 +00:00
Howard Chu
1a8d570c08
Added vsnprintf, snprintf implementations.
2002-07-19 17:33:14 +00:00
Howard Chu
dc1773dbd4
pw_gecos depends on HAVE_PW_GECOS
2002-07-19 14:25:37 +00:00
Howard Chu
3fd49c39ec
Must include <stdio.h> since <rewrite.h> uses FILE *.
2002-07-19 14:24:53 +00:00
Stig Venaas
26b33bf614
Fixes ITS#1935
2002-07-16 02:38:14 +00:00
Stig Venaas
bf5e3a15ca
Use AF_INET instead of AF_UNSPEC when IPv6 disabled
2002-07-12 15:36:33 +00:00
Julius Enarusai
a6730db3e9
debug.c file moved from liblutil to liblber due to changes in LDAP_LOG macro and global variable ldap_logvels
2002-07-11 23:26:34 +00:00
Julius Enarusai
6107ba67d2
Coverted LDAP_LOG macro to use subsystem ID int values instead of string values
2002-07-11 20:33:24 +00:00
Howard Chu
2adfd47e88
Fix SEGV on single-byte connection input
2002-07-11 12:26:35 +00:00
Kurt Zeilenga
7592a9b9c7
make sure we don't test against stored values starting with "{"
2002-07-10 22:04:14 +00:00
Kurt Zeilenga
7259718466
ITS#1916: fix fscanf EOF bugs
2002-07-09 01:00:56 +00:00
Kurt Zeilenga
d401bf956f
ITS#1922: add references.lo
2002-07-09 00:34:41 +00:00
Kurt Zeilenga
d13285fdd8
Fix possible under allocation of buffer
2002-07-08 18:45:53 +00:00
Howard Chu
07ffaeaac8
ITS#1924 use GENERAL_NAMES_free instead of ext_free.
2002-07-05 21:59:02 +00:00
Kurt Zeilenga
2de291ed6e
Cut back on the logging...
2002-06-21 19:49:25 +00:00
Kurt Zeilenga
cdce8064e5
ITS#1898: ldap_controls_dup() writes beyond allocated memory
...
patch suggested by Dave Steck <dsteck@novell.com>
2002-06-21 19:14:37 +00:00
Kurt Zeilenga
0371c61073
Add monitorContext rootDSE attribute
2002-06-19 06:44:16 +00:00
Howard Chu
5e6c17bb2b
ITS#1891 in ber_flush, no-op if towrite == 0
2002-06-18 01:00:27 +00:00
Howard Chu
6f8b100f6b
Finish implementation of get_ca_list()
2002-06-14 06:09:24 +00:00
Howard Chu
56cba7f97c
In ldap_extended_operation_s, check for NULL retoidp and retdatap
...
before storing NULL.
2002-06-13 16:26:47 +00:00
Kurt Zeilenga
56bbe05490
Add {CLEARTEXT} password-hash support
2002-06-12 00:43:34 +00:00
Kurt Zeilenga
fe86a81e25
VLV clean
2002-06-09 06:12:24 +00:00
Howard Chu
a1e63db574
Fix ITS#1865, (ITS#1764?) cond_broadcast behavior was broken
2002-06-07 22:45:22 +00:00
Howard Chu
70092b38fb
Fix ITS#1843, don't deref NULL string in ldap_pvt_str2upper
2002-06-07 13:27:25 +00:00
Howard Chu
8101798791
Better SASL_MAXBUF fix
2002-06-07 03:40:16 +00:00
Howard Chu
353f627aa4
Eliminate SASL client session_callbacks. Since proc was always NULL they
...
never did anything anyway.
2002-06-06 01:44:38 +00:00
Kurt Zeilenga
2c7dae116b
More argument handling updates
...
(don't check what we expect applications to check).
2002-06-06 00:26:50 +00:00
Kurt Zeilenga
1064f52dae
Fix typo in last commit
2002-06-05 16:39:15 +00:00
Kurt Zeilenga
40ef77a8f8
Add error handling cleanup
2002-06-05 15:51:42 +00:00
Kurt Zeilenga
99f5983fb6
Consistently don't check for NULL session handle and other pointers.
...
Application is responsible for providing valid session pointers.
2002-06-05 15:46:26 +00:00
Kurt Zeilenga
131470685f
/dev/urandom re-read(2) loop
2002-06-03 16:43:57 +00:00
Kurt Zeilenga
771a131b0d
Fix unprotected list modification
2002-05-31 20:22:44 +00:00
Howard Chu
a348f46e56
Use LDAP_REWRITE_V, not LDAP_V
2002-05-18 01:29:18 +00:00
Howard Chu
7de25993f5
Fix NT_LINK_LIBS, UNIX_LINK_LIBS
2002-05-17 23:41:26 +00:00
Kurt Zeilenga
c3a59a6407
Remove sys/uio.h include
2002-05-15 05:53:10 +00:00
Howard Chu
b2e731a3e0
Win32 fix from Kervin Pierre
2002-05-11 18:15:07 +00:00
Howard Chu
9979d200db
Fleshed out debug2syslog
2002-05-10 17:48:54 +00:00
Howard Chu
2ca4b0ebfc
ITS#1806, Cyrus 1 doesn't give back our callbacks pointer, must stash it
...
ourselves.
2002-05-06 23:56:35 +00:00
Howard Chu
ae3a80eb09
Fix in 1.50 applies to Cyrus 1 as well as Cyrus 2.
2002-05-05 19:15:29 +00:00
Kurt Zeilenga
f9687f6c2a
Patch: incomplete 'make clean' in liblunicode (ITS#1791)
...
In liblunicode, 'make clean' and 'make distclean' do not remove
the symlinks ucdata.h and ure.h.
from Hallvard B. Furuseth <h.b.furuseth@usit.uio.no>
2002-05-04 23:13:51 +00:00
Howard Chu
e8e7847175
ITS#1797 silence uninit'd var warnings
2002-05-04 10:52:05 +00:00
Howard Chu
3590877b77
Initialize authid in case ldap_pvt_tls_get_my_dn fails
2002-05-04 01:32:41 +00:00
Howard Chu
0390a171b9
Changed default tls_opt_require_cert value to LDAP_OPT_X_TLS_DEMAND; force
...
a fatal error when TLS server cert verification fails.
Changed ldap_pvt_tls_check_hostname to return LDAP_SUCCESS when no cert is
found: this can now only occur if tls_opt_require_cert was explicitly set
to NEVER or ALLOW.
In tls_verify_cb, added a text translation of the verification error code
to the debug message.
2002-05-04 00:05:48 +00:00
Howard Chu
6c1a786d6c
Fix previous commit, wrong if condition
2002-05-03 13:07:42 +00:00