Commit Graph

274 Commits

Author SHA1 Message Date
Kurt Zeilenga
0cd3720e0d Generate subentries control 2002-08-30 07:43:47 +00:00
Kurt Zeilenga
4ce42af196 Add client-side subentries control support.
Make sure client controls are not specified multiple times.
NT port updates.
2002-08-30 07:05:12 +00:00
Kurt Zeilenga
8b2fa75a89 Close comment 2002-08-30 06:25:51 +00:00
Kurt Zeilenga
26e4960c1c Remove those #ifdefs NOOP just added. 2002-08-30 05:43:47 +00:00
Kurt Zeilenga
4026d3ee80 More noop #ifdef'ing 2002-08-30 05:10:41 +00:00
Kurt Zeilenga
0517278aff Place NOOP behind #ifdef 2002-08-30 05:02:20 +00:00
Kurt Zeilenga
1903295032 Print information about control used. 2002-08-30 04:22:22 +00:00
Kurt Zeilenga
ffe448910c Allow generation of no-op control 2002-08-30 04:14:26 +00:00
Kurt Zeilenga
2de5c33ba7 Add manageDsaIt/NOOP control support to every tool.
Update NT build.
2002-08-29 21:52:45 +00:00
Kurt Zeilenga
96ae8aa2c3 Add to NT build 2002-08-29 21:48:00 +00:00
Kurt Zeilenga
d912c2c711 Rework client control parsing... need to implement
common controls across all tools.
2002-08-29 21:36:36 +00:00
Pierangelo Masarati
87f092bc49 improve control support thru -E switch 2002-08-29 10:41:10 +00:00
Kurt Zeilenga
99912c586f Remove cruft 2002-08-24 06:29:06 +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
Pierangelo Masarati
3996936bf7 remove warnings 2002-08-09 13:50:29 +00:00
Kurt Zeilenga
5972fb95f4 Fix LDIF LF / CRLF handling.
Patch suggested by Matthew Backes <lucca@csun.edu>
2002-08-05 19:48:50 +00:00
Howard Chu
dcba22cc05 ITS#1956, bvalp declaration 2002-08-03 09:15:17 +00:00
Howard Chu
d8929296b8 Use lutil_progname, #include <lutil.h> to get it. 2002-07-27 00:06:27 +00:00
Kurt Zeilenga
f5e209138b snprintf cleanup 2002-07-23 18:31:42 +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
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
dd1e003fcb Add matched values command line support (ITS#1811).
Adapted .Sahalayev@pgr.salford.ac.uk's submission.
Needs to be extended to support comma separated list of options
	for other controls and such.

---
Copyright 2002, Mikhail Sahalaev, All rights reserved.
This software is not subject to any license of University Of
Salford.

Redistribution and use in source and binary forms are permitted
without restriction or fee of any kind as long as this notice
is preserved.
2002-06-02 04:15:38 +00:00
Kurt Zeilenga
709ce4fa6c Re: Patch: ctype functions require 'unsigned char' args (ITS#1678)
================
Written by Hallvard B. Furuseth and placed into the public domain.
This software is not subject to any license of the University of Oslo.
			================

Here are fixes for more places where the argument to ctype.h functions
should be in the range of `unsigned char'.

Explanation of the last patch (to schema_init.c:bvcasechr()):
TOLOWER() and TOUPPER() return values in the range of `unsigned char',
but bvcasechr() then compares those values with a plain `char'.  So I
convert the return values from TOLOWER()/TOUPPER() to `char' first.

Hallvard B. Furuseth <h.b.furuseth@usit.uio.no>, April 2002.
2002-04-15 20:42:42 +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
Howard Chu
deee7442b4 Fix ITS#1649, a filter constructed from a BUFSIZ input line combined with
an argv[] filtpattern will be larger than BUFSIZ.
2002-03-18 16:16:47 +00:00
Kurt Zeilenga
3a5c4e9e97 Return EXIT_FAILURE if result code is not success. 2002-03-11 00:25:20 +00:00
Kurt Zeilenga
ce07fb958e Update libtool usage
s/-L.../libraries -lldap/.../libraries/libldap/libldap.la/
2002-02-10 22:42:51 +00:00
Kurt Zeilenga
ac6df28e7d Fix misplaced "search" references 2002-02-08 19:10:06 +00:00
Pierangelo Masarati
0c952c8893 fixes ITS#1578 2002-02-06 08:43:32 +00:00
Kurt Zeilenga
77698024d4 Add a project for ldapcompare(1) 2002-01-30 04:01:38 +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
a8710d2105 Fix typo in last commit 2002-01-28 21:33:57 +00:00
Kurt Zeilenga
fef9741b52 Initial ldapwhoami implementation 2002-01-28 21:24:40 +00:00
Kurt Zeilenga
14662be692 Add whoami extended operation.
Add no-op control (needs backend implementation)
Updated modify password extended option API
Kludged control infrastructure to support frontend only controls
2002-01-28 20:25:30 +00:00
Kurt Zeilenga
0e2af54a3f Update copyright statements 2002-01-04 21:17:25 +00:00
Kurt Zeilenga
b64374fba1 Fix typo in last commit 2001-12-20 05:27:55 +00:00
Kurt Zeilenga
a07ab15ea1 Minor cleanup 2001-12-20 03:00:53 +00:00
Kurt Zeilenga
2a24264098 Remove lint 2001-12-19 21:19:41 +00:00
Howard Chu
c0dbedca50 from jon@symas.com; include ldap_log.h for proper declarations, remove
unused variable
2001-12-17 22:37:47 +00:00
Howard Chu
63d4d0eb1e Fix ITS#1497 use strcmp instead of strncmp 2001-12-17 21:56:24 +00:00
Howard Chu
331a7bd1c5 More from jon@symas.com - argv[0] comparison must exclude EXEEXT. 2001-12-12 00:26:42 +00:00
Howard Chu
0552b1c53f NT updates from jon@symas.com. 2001-12-07 04:03:25 +00:00
Howard Chu
82eca519ae More from Jon Leichter @ Symas - platform-independent TMPDIR usage 2001-12-07 02:22:07 +00:00
Howard Chu
e6d6faf3c9 From jon@symas.com - patches for consistent use of directory separators
in pathnames.
2001-12-07 01:46:26 +00:00
Kurt Zeilenga
6ba3b26c09 Enhance error messages from Walter.Mueller@uibk.ac.at 2001-12-05 03:13:50 +00:00
Pierangelo Masarati
77dc11ba3c liberal treatment of trailing spaces in changetype and mod op lines in ldif files (needs -DLIBERAL_CHANGETYPE_MODOP) 2001-09-29 10:29:24 +00:00
Kurt Zeilenga
2c1273cd17 ITS#1328 LDIFv1 CR/LF fix 2001-09-25 18:48:48 +00:00
Kurt Zeilenga
97db0eb716 Don't ignore attribute list when -S is specified. 2001-09-04 06:06:44 +00:00
Kurt Zeilenga
0c13c5bbdd Use parens for clarity 2001-08-28 00:35:34 +00:00