Commit Graph

424 Commits

Author SHA1 Message Date
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
Kurt Zeilenga
9c28c9b361 Zap LDAPv2-only stuff 2002-08-08 03:01:14 +00:00
Kurt Zeilenga
21c0791afe Check for gcc as well. 2002-06-25 05:50:20 +00:00
Kurt Zeilenga
2757cb7504 Complain if cc is missing. 2002-06-25 02:18:50 +00:00
Kurt Zeilenga
b43ad1dd0e Generate man page date from version.sh 2002-06-13 03:59:10 +00:00
Kurt Zeilenga
674c55f78f remove --enable-kbind option (can be manually set) 2002-06-12 04:55:30 +00:00
Howard Chu
8f30c95a84 Delete SLAPD_MODULES_LIST, never needed it. 2002-05-18 02:06:32 +00:00
Kurt Zeilenga
4e51bba217 Patch: Implement surrogate parent for back-shell (ITS#1815)
================
Written by Hallvard B. Furuseth and placed into the public domain.
This software is not subject to any license of the University of Oslo.
			================

A surrogate parent is supposed to keep back-shell children from
deadlocking due to resources locked by a threading parent.

Implementation note: The surrogate parent closes all unused file
descriptors, so it logs errors to stderr instead of via Debug() and
uses relloc() instead of ch_realloc().

Also close a file descriptor leak if fork() fails in fork.c.

Hallvard B. Furuseth <h.b.furuseth@usit.uio.no>, May 2002.
2002-05-15 06:18:14 +00:00
Kurt Zeilenga
1107e78c5f update SASL compat test to check for 1.5 compatibility 2002-05-13 20:16:44 +00:00
Kurt Zeilenga
82dc573752 Always check SASL compatibility
(Cyrus SASL 2 library may not be called -lsasl2).
2002-05-13 18:48:27 +00:00
Howard Chu
41c5a36376 Require 2.1.3 or higher for Cyrus SASL 2 2002-05-07 23:56:59 +00:00
Pierangelo Masarati
c7224dc31e back-meta needs librewrite and back-ldap; automatically enable them 2002-05-02 09:06:12 +00:00
Kurt Zeilenga
888a7c4efc Error if ar(1) is missing. (ITS#1772) 2002-05-01 19:22:32 +00:00
Howard Chu
ccca59e3fe ITS#1749 added some descriptions for fetch, rewrite, rlookups, modules,
ldbm api/types
2002-04-20 10:24:24 +00:00
Kurt Zeilenga
bf662a8cd1 Trim finger from HEAD 2002-04-15 18:12:42 +00:00
Kurt Zeilenga
fb440f01ab Align --help 2002-04-15 17:17:34 +00:00
Pierangelo Masarati
4a8ab5dbf2 Mostly based on patches provided by Hallvard B. Furuseth
ITS#1677 - cast away const warnings
ITS#1678 - unsigned char args to ctype funcs
ITS#1682 - don't redefine ldap_debug
ITS#1683 - uninitialized vars
ITS#1703 - ldo_debug initialization
ITS#1705 - unsigned testing
ITS#1706 - socklen_t args
ITS#1719 - back-tcl update (other cleanups/fixes/improvements; yet untested)
ITS#1724 - integerNormalize/integerFilter/integerIndexer bugs
ITS#1725 - libdes not required

Implement back-null (/dev/null style backend)
Cleanup some misc warnings ("%lu" format, unused/uninitialized vars,
        ambiguous operator precedence)

Kurt, please regenerate configure
2002-04-08 09:43:22 +00:00
Kurt Zeilenga
e3dcb0481e Clarify error text 2002-04-02 18:16:13 +00:00
Kurt Zeilenga
a9cf0f5c08 Add uuid_to_str() detection. 2002-02-11 20:17:08 +00:00
Kurt Zeilenga
b0394dfc72 No need to AC_SUBST(SHTOOL) 2002-02-11 16:43:13 +00:00
Kurt Zeilenga
d23c559646 Don't use 'shtool mkln' as ln(1) replacement.
Allow both <sasl/sasl.h> and <sasl.h>
2002-02-11 08:28:51 +00:00
Pierangelo Masarati
450126ef21 remove cruft related to librewrite 2002-02-11 08:09:25 +00:00
Kurt Zeilenga
e9a7313de9 Minor astestic changes 2002-02-11 00:28:17 +00:00
Kurt Zeilenga
b315d8af34 Update Cyrus SASL detection to always look for <sasl.h> regardless
of version and then try -lsasl2 and -lsasl.  Make SASL code
conditional on SASL_VERSION_MAJOR, not HAVE_CYRUS_SASL.
2002-02-10 17:51:19 +00:00
Howard Chu
0b54812c2c Added check for Cyrus SASLv2 2002-02-10 14:23:55 +00:00
Kurt Zeilenga
0269dc750e Misc SHTOOL use updates 2002-02-10 06:26:48 +00:00
Kurt Zeilenga
54c204ea98 Update to use shtool, remove ltconfig 2002-02-10 04:30:23 +00:00
Kurt Zeilenga
3a5b94cdbd Update to libtool 1.4.2 2002-02-10 03:03:47 +00:00
Kurt Zeilenga
15902ae7e1 Add comment to -lV3 test that this is not needed in
newer versions of HP-UX.  However, as the test causes
no problems on any system, it's left in place (as someone
might actually be using an older version of HP-UX).
2002-01-30 01:21:08 +00:00
Kurt Zeilenga
5c7297a738 Add updated TCP wrapper check based upon patch provided
by Albert Chin-A-Young <china@thewrittenword.com> in ITS#1544.
2002-01-30 00:05:45 +00:00
Kurt Zeilenga
1e7ca2e850 Add BDB compatibility check. Require Berkeley DB 3.3 or greater. 2002-01-23 19:08:07 +00:00
Kurt Zeilenga
041e3d1ed4 Misc thread cleanup 2002-01-21 03:12:40 +00:00
Kurt Zeilenga
68e58d15de More (blind) cthread changes 2002-01-21 02:32:34 +00:00
Kurt Zeilenga
6169ef5873 Really Fix typos 2002-01-21 02:23:20 +00:00
Kurt Zeilenga
6232d90320 Correct cthread typos 2002-01-21 02:07:27 +00:00
Kurt Zeilenga
0e03e5c3f9 Fix typo in last commit 2002-01-20 22:31:10 +00:00
Kurt Zeilenga
9f9c6b57c6 Fix cthread header test 2002-01-20 22:25:08 +00:00
Kurt Zeilenga
94193358b4 Switch the default backend to BDB. 2002-01-15 17:26:44 +00:00
Kurt Zeilenga
0e2af54a3f Update copyright statements 2002-01-04 21:17:25 +00:00
Howard Chu
9bdc803485 Delete check for sys/queue.h (replaced by ldap_queue.h) 2002-01-03 16:24:54 +00:00
Kurt Zeilenga
208a88f872 Don't enable IPv6 if --disable-ipv6 2001-12-27 02:22:13 +00:00
Howard Chu
d829c02f0b Add checks for mkstemp and mktemp. Tweak utils.c:mkstemp to honor the
HAVE_MKTEMP macro in addition to HAVE_MKSTEMP
2001-12-18 02:54:49 +00:00
Howard Chu
46b42307ea From jon@symas.com - NT UUID support requires librpcrt4. 2001-12-11 22:48:30 +00:00
Kurt Zeilenga
c2e162c6d6 misc cleanup 2001-12-08 04:29:34 +00:00
Howard Chu
bf7f1046d4 Add SLAPD_STATIC_BACKENDS and SLAPD_DYNAMIC_BACKENDS macros to simplify
backend build rules.
2001-12-08 04:01:30 +00:00
Howard Chu
0552b1c53f NT updates from jon@symas.com. 2001-12-07 04:03:25 +00:00
Kurt Zeilenga
35220ca0ad Add BSD Queue (and list) management 2001-12-06 15:55:34 +00:00
Kurt Zeilenga
01e81666ac Small fix to gar detection 2001-12-04 18:21:43 +00:00
Kurt Zeilenga
bc27682790 Fix kerberos test 2001-11-28 15:57:36 +00:00
Kurt Zeilenga
f7e10947ca Use gar if ar(1) is not available 2001-11-28 02:32:47 +00:00