Commit Graph

179 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
1b6c3fc57f Add dumpasn1 logging to TODO. 2002-08-21 18:45:08 +00:00
Kurt Zeilenga
d945a5aed9 minor updates 2002-08-12 18:07:24 +00:00
Kurt Zeilenga
aab1f5b0a4 Minor updates 2002-08-05 20:05:25 +00:00
Kurt Zeilenga
3925c471f9 Reserve digit flags 2002-06-15 22:18:51 +00:00
Kurt Zeilenga
8aee3e5113 Add pointer to JLDAP TODO list 2002-06-12 16:32:29 +00:00
Kurt Zeilenga
8473308922 Clarify that client side items refer to client/tools and/or ldap(3) work 2002-06-12 16:28:05 +00:00
Kurt Zeilenga
ffe5b623cc add reference to "Software Bugs" issues 2002-06-12 03:42:01 +00:00
Kurt Zeilenga
31157b9cca Rework todo 2002-06-12 03:36:05 +00:00
Kurt Zeilenga
fe86a81e25 VLV clean 2002-06-09 06:12:24 +00:00
Kurt Zeilenga
91088eaa84 Full_Name: Norbert Klasen
Version: head
OS: SuSE Linux 7.3
URL: ftp://ftp.openldap.org/incoming/norbert.klasen.rejects.20020605.patch
Submission from: (NULL) (62.104.216.66)

This patch adds an '-S' option to ldapmodify. If a filename is specified with
this option, records which could not successfully be added/modified/deleted from
the LDAP server will be written to the specified file. Most useful in
conjunction with '-c' option.
2002-06-06 00:31:09 +00:00
Kurt Zeilenga
bd137c60a3 detail table to better indicate reserved/used args 2002-06-02 04:21:59 +00:00
Kurt Zeilenga
dedb97ece8 A few updates 2002-03-26 19:04:09 +00:00
Kurt Zeilenga
66f6ba4df9 Updates to reflect recent contributions 2002-03-04 18:50:38 +00:00
Kurt Zeilenga
1808f5e28b Add LDIFv1 "control" task 2002-02-02 20:30:31 +00:00
Kurt Zeilenga
6f6c0d73ce Add autoconf update to TODO list (I'll likely have to do this myself)
Add shtool use to TODO list
2002-02-01 22:24:23 +00:00
Kurt Zeilenga
cb1b52101b Add no-op control to list 2002-01-31 23:23:35 +00:00
Kurt Zeilenga
abf91ca1ff Initial ldapcompare(1) implementation. Adapted from patch
submitted by Jeff Costlow <j.costlow@f5.com> (ITS#1560).

Portions:
Copyright 2002, F5 Networks, Inc, All rights reserved.
This software is not subject to any license of F5 Networks.

This is free software; you can redistribute and use it
under the same terms as OpenLDAP itself.
2002-01-29 07:33:11 +00:00
Kurt Zeilenga
ed070291e2 Misc updates 2002-01-27 20:08:49 +00:00
Kurt Zeilenga
b5b198535c Misc updates to the todo list 2002-01-12 04:14:32 +00:00
Kurt Zeilenga
af92beb21e a misc. few updates... 2001-12-27 00:42:04 +00:00
Kurt Zeilenga
9a000a86bd Misc updates 2001-12-20 16:49:46 +00:00
Kurt Zeilenga
a250bc7890 Replication notes
written by Ganesan Rajagopal <rganesan@debian.org>
2001-12-08 07:35:48 +00:00
Kurt Zeilenga
a83ba7b69d Reserve -E/-e for extensions, syntax yet to be defined. 2001-12-05 17:56:34 +00:00
Kurt Zeilenga
be88d37840 misc updates 2001-11-28 02:04:00 +00:00
Kurt Zeilenga
e48861cf78 Add additional projects 2001-11-27 22:02:27 +00:00
Kurt Zeilenga
b9269f30e8 Add dnsReferral to TO DO list 2001-11-05 17:57:09 +00:00
Kurt Zeilenga
8cc0b83319 Misc updates 2001-10-27 18:20:52 +00:00
Kurt Zeilenga
6469f75c26 Minor updates 2001-10-16 01:16:08 +00:00
Kurt Zeilenga
aac0fc5f0c Add tasks related to Cyrus SASLv2 2001-10-02 02:11:42 +00:00
Kurt Zeilenga
b1f429b1cd Minor updates to TODO list 2001-09-24 18:28:37 +00:00
Kurt Zeilenga
77df213723 add some additional projects 2001-09-05 04:37:12 +00:00
Kurt Zeilenga
749a6b1f29 Misc Update 2001-08-30 02:33:13 +00:00
Kurt Zeilenga
c842bf8b80 Remove compare root dse task, in development 2001-07-28 01:06:36 +00:00
Kurt Zeilenga
6c03a1e8e9 Fix RFC ref 2001-07-07 05:23:10 +00:00
Kurt Zeilenga
11a245d748 TLS should refer to 2830 2001-06-18 23:40:45 +00:00
Kurt Zeilenga
3512942da1 Add authpassword task 2001-06-14 23:50:05 +00:00
Kurt Zeilenga
b8975f565e Update ud todo items 2001-06-14 05:47:02 +00:00
Kurt Zeilenga
3db30340b7 Add reference to developer's list 2001-06-08 01:38:40 +00:00
Kurt Zeilenga
a47496b912 No individual contacts are provided, so update text 2001-06-08 01:37:21 +00:00
Kurt Zeilenga
04911120c2 Misc updates 2001-06-06 21:55:44 +00:00
Kurt Zeilenga
076c3351e4 Add a couple of controls to the TODO list 2001-05-13 19:25:03 +00:00
Kurt Zeilenga
76673100c0 Misc updates to the TODO list 2001-05-13 19:24:02 +00:00
Kurt Zeilenga
e3f81de77e reserve -V for version information 2001-01-20 01:16:19 +00:00
Kurt Zeilenga
05de439349 Misc updates 2001-01-12 04:20:09 +00:00
Kurt Zeilenga
5082731e24 Add UTF-8 wc/mb conversion routines contributed by Novell.
/******************************************************************************
 * Copyright (C) 1999, 2000 Novell, Inc. All Rights Reserved.
 *
 * THIS WORK IS SUBJECT TO U.S. AND INTERNATIONAL COPYRIGHT LAWS AND
 * TREATIES. USE, MODIFICATION, AND REDISTRIBUTION OF THIS WORK IS SUBJECT
 * TO VERSION 2.0.1 OF THE OPENLDAP PUBLIC LICENSE, A COPY OF WHICH IS
 * AVAILABLE AT HTTP://WWW.OPENLDAP.ORG/LICENSE.HTML OR IN THE FILE "LICENSE"
 * IN THE TOP-LEVEL DIRECTORY OF THE DISTRIBUTION. ANY USE OR EXPLOITATION
 * OF THIS WORK OTHER THAN AS AUTHORIZED IN VERSION 2.0.1 OF THE OPENLDAP
 * PUBLIC LICENSE, OR OTHER PRIOR WRITTEN CONSENT FROM NOVELL, COULD SUBJECT
 * THE PERPETRATOR TO CRIMINAL AND CIVIL LIABILITY.
 ******************************************************************************/
2000-12-28 02:20:37 +00:00
Kurt Zeilenga
246578b950 Update with latest needs 2000-10-11 18:01:40 +00:00
Kurt Zeilenga
cd89917abb Add ud(1) and saucer(1) projects 2000-09-03 00:43:46 +00:00
Kurt Zeilenga
5361dbe52c Allocate -H for URI specification
Clarify use of other flags
2000-08-25 02:10:14 +00:00
Kurt Zeilenga
075bc82afe Trim 2000-08-23 00:39:12 +00:00
Kurt Zeilenga
46f44e760b Misc updates 2000-08-23 00:37:25 +00:00
Kurt Zeilenga
5cb06787f9 Fix up rcsid 2000-07-29 03:15:58 +00:00
Kurt Zeilenga
f4f2d7eb38 Update API tasks 2000-07-28 00:41:35 +00:00
Kurt Zeilenga
14a9c07363 Clients now sasl aware 2000-07-28 00:40:20 +00:00
Kurt Zeilenga
e82c3ff6b2 Update args based upon latest SASL usage 2000-07-19 01:19:06 +00:00
Kurt Zeilenga
600c696332 Drop a number of projects... 2000-07-19 01:16:17 +00:00
Kurt Zeilenga
d18737073c Update args based upon intended SASL usage 2000-07-16 00:51:44 +00:00
Kurt Zeilenga
d2b05a3858 Rework SASL command line arguments. Default is now to authenticate
using best available mechanism.  (authzid prompting to be disabled)
To use simple bind, -x is required (implied if -P 2) with -D/-[Ww]
To use simple "anonymous" bind, just -x will do.
2000-07-15 23:25:46 +00:00
Kurt Zeilenga
5fc22599e2 Update SASL code to reuse context through life of session.
Replace 'negotiated' with 'interactive' bind
Add hooks for SASL/EXTERNAL
Disable SASL security layers
Rework SASL command line and config file parameters
2000-07-13 22:54:38 +00:00
Kurt Zeilenga
9e70f92e69 Add SASL projects 2000-07-06 00:18:41 +00:00
Kurt Zeilenga
aa0067bc50 Misc doc updates 2000-07-04 21:42:11 +00:00
Kurt Zeilenga
a0a1c3af3f Add SLURPD v3 updates project: use v3 bind and manageDSAit 2000-06-25 20:23:23 +00:00
Kurt Zeilenga
15c403bd15 -C/-R changes 2000-06-25 20:22:59 +00:00
Kurt Zeilenga
5f20cf1ed5 Modify ldapsearch(1) significantly. Now handles LDAPv3 search
references, extended results, and extended partial results.  LDIF
extended to support these new features and reported version 2.
-L now limits output to LDIFv1 for compatibility reasons.  No
-L is now LDIFv2.  Old alternative form is no longer supported.

Use LDAP_TMPDIR (in ldap_config.h) instead of hardcoded /tmp
Use LDAP_FILE_URI_PREFIX (in ldap_config.h) instead of hardcoded
	file://tmp/
2000-06-25 00:35:17 +00:00
Kurt Zeilenga
5a1afa2edf Minor updates 2000-06-19 16:16:38 +00:00
Kurt Zeilenga
3ece90666f A few misc updates 2000-06-16 07:32:19 +00:00
Kurt Zeilenga
d7301c1b57 Add backend updates to todo list 2000-06-13 21:14:24 +00:00
Kurt Zeilenga
271978b476 Add more tests to tests project 2000-05-30 22:09:00 +00:00
Kurt Zeilenga
3283844ca6 Add TLS SASL/EXTERNAL project
Add subtype/subclassing tests to test suite project
2000-05-30 21:39:07 +00:00
Kurt Zeilenga
9f5b0cde20 Clarify deprecated API task... it's _ext API use we're after. 2000-05-30 11:01:09 +00:00
Kurt Zeilenga
f635dd0c81 Remove BDB3 project, thanks Gary
Move about and clarify other projects
2000-05-29 17:11:43 +00:00
Kurt Zeilenga
c48155a139 Add a couple of simple projects for those wanting to learn
SLAPD internals
	rootdse,cn=schema compare
	rootdse user configurable attributes (cn,description,seeAlso,etc)
2000-05-18 16:18:39 +00:00
Kurt Zeilenga
499c6f2134 Add LDBM BerkeleyDB3 project 2000-05-16 00:59:02 +00:00
Kurt Zeilenga
07826e4d4c Add IPv6/IPSEC project (volunteers welcomed) 2000-05-09 18:48:03 +00:00
Kurt Zeilenga
2783decefa update based upon latest changes and thoughts 2000-05-03 18:58:20 +00:00
Kurt Zeilenga
b861be0ffd Done did hashed password generation (via extend op) 2000-05-03 12:57:05 +00:00
Kurt Zeilenga
54f1ebafff Add description of global command line arguments.... 2000-04-25 10:34:19 +00:00
Kurt Zeilenga
ae2ab4a1c2 Update as needed. 2000-04-25 10:33:34 +00:00
Kurt Zeilenga
0bad880b0b Add TLS/SASL flags 2000-04-12 00:03:07 +00:00
Kurt Zeilenga
4651956c51 Remove SASL/TLS integration projects from TODO as basic
code has been committed.
Add item to implement SASL/TLS to clients.
(This is not to imply that the code is complete)
2000-01-20 05:48:18 +00:00
Kurt Zeilenga
d61873e930 Add RCSid 2000-01-11 01:18:51 +00:00
Kurt Zeilenga
36b12c4633 Update todo to min req. 1999-12-19 02:56:30 +00:00
Kurt Zeilenga
f3808cea66 Add RSA ASN.1 guide 1999-12-12 02:44:03 +00:00
Kurt Zeilenga
041c1545e8 Update usage and man page. 1999-12-10 04:59:28 +00:00
Kurt Zeilenga
a0097fe1d9 Add table of command line arguments used by clients 1999-12-09 17:04:42 +00:00
Kurt Zeilenga
4b2f37bdb8 Add errno draft project and apply minor cleanups 1999-10-05 17:47:59 +00:00
Kurt Zeilenga
6e6eb52591 Add server-side hashed password generation (it's not as easy as it sounds).
Remove Kerberos project.  Looks like K4 is working again.
1999-09-25 21:08:44 +00:00
Kurt Zeilenga
a0e41a317f Remove ldapurl project, add deprecate removal project 1999-09-25 02:57:44 +00:00
Kurt Zeilenga
d9f7e317ad Add security audit to large project. Someone really needs
to go through and find/fix buffer overflows and such.
1999-09-21 22:36:21 +00:00
Kurt Zeilenga
5ec0843035 Design and Implement a LDAP C++ API 1999-09-20 22:59:33 +00:00
Kurt Zeilenga
1e5aae19c3 Manual pages need updating, especially LDAP C API ones... 1999-09-19 18:13:33 +00:00
Kurt Zeilenga
cc0564f1e3 Remove contacts to promote new volunteers. 1999-09-15 22:33:09 +00:00
Kurt Zeilenga
38cd86f569 Add -C/-CC/-R referral chasing to clients project.
-C chase with prompting
	-CC chase without prompting
	-R don't chase
with defaults dependent upon authentication method used.
rebind callback also needs to be extended to support SASL and
provide information for prompting purposes.  Good intro project.
1999-09-08 20:06:25 +00:00
Kurt Zeilenga
93c7bccde4 Update description of 2.0 items in preparation for posting to -devel. 1999-08-30 01:01:07 +00:00
Kurt Zeilenga
9f9dfae203 Update TODO... should be moved to the developer's FAQ. 1999-08-07 18:59:15 +00:00
Kurt Zeilenga
afa4fde7c4 Add use ldap_*_ext() routines in clients project.
Remove server side controls.
Add Digest-MD5 project.
1999-07-16 03:03:34 +00:00
Kurt Zeilenga
943bd0647b Remove a few completed projects 1999-07-07 19:58:59 +00:00
Kurt Zeilenga
d816c39d80 Add slapd password handling projects (these are often asked for). 1999-06-16 19:09:34 +00:00
Kurt Zeilenga
c01dfb9dca Add README with URLs to developer pages. 1999-06-06 19:45:46 +00:00
Kurt Zeilenga
cb265b719f Add section for OpenLDAP 2.0 projects, drop "larger than life" projects. 1999-06-04 19:04:18 +00:00