Kurt Zeilenga
e3a4c4ec9c
Notice/Acknowledge updates
2003-11-26 02:58:56 +00:00
Kurt Zeilenga
b24f96cd51
Berkeley DB 4.2 support (DB 4.2 required by default)
...
libldif to libutil updates
notice updates
2003-11-25 23:22:12 +00:00
Kurt Zeilenga
327880b984
Notice updates
2003-11-25 23:17:08 +00:00
Howard Chu
5788e12926
Revert/Fix prev commit
2003-10-18 12:59:55 +00:00
Howard Chu
7fd05f235c
Fix parse order in new print_entry ( ctrls )
2003-10-18 11:05:48 +00:00
Kurt Zeilenga
a2f36ae2d3
Rework of berbuf allocation:
...
Moved BerElementBuffer to lber_pvt.h
Defined union by macro so it can be easily reused.
Updated client/tools/common.c.
2003-10-13 18:09:15 +00:00
Kurt Zeilenga
4f003dbdaf
mv ldap_int_get_controls to ldap_pvt_get_controls
2003-10-12 08:14:28 +00:00
Howard Chu
c6cd37c5cf
Fix prev commit for empty attrs
2003-09-23 11:29:20 +00:00
Howard Chu
87faffa2e6
Make new print_entry() the default
2003-09-23 11:06:21 +00:00
Kurt Zeilenga
04cecc7666
Fix pre/post attrs init bug (ITS#2728)
2003-09-18 17:12:27 +00:00
Kurt Zeilenga
99f968b597
Initial support for pre/post read controls.
...
TODO:
Fix transactional consistency
Add client response control handling
2003-09-16 18:56:04 +00:00
Kurt Zeilenga
aa8fd2f6b0
-y should not require -W
2003-09-12 20:10:05 +00:00
Kurt Zeilenga
6b9109466c
ITS#2696:
...
ldappasswd -T and -t options don't work, they try to open the file ldappasswd
instead of the argument passed.
Applied patch provided by Nicolas Schodet.
2003-09-09 17:17:21 +00:00
Jong Hyuk Choi
090ac0a772
unifdef LDAP_SYNC and LDAP_SYNCREPL
2003-08-27 22:16:04 +00:00
Kurt Zeilenga
794c4942bf
ITS#2645: fix NULL DN bug
2003-08-09 17:45:34 +00:00
Kurt Zeilenga
afa2cd1893
ITS#2657: authzid (and assertion) should apply to most everything
...
(preliminary modify/incr client-side code)
2003-07-30 10:21:16 +00:00
Jong Hyuk Choi
262f8bf11f
LCUP primitive routines removed
2003-06-27 17:39:48 +00:00
Kurt Zeilenga
3ca2a91ae1
Assertion control with no backend support (yet)
2003-06-10 02:19:30 +00:00
Hallvard Furuseth
6fab51e339
Rename setlocale,bindtextdomain,textdomain to ldap_pvt_<function> (ITS#2513).
...
#include "ldap_defaults.h" to get LDAP_LOCALEDIR.
2003-06-05 11:49:07 +00:00
Kurt Zeilenga
12304f64e5
Merge partial and intermediate responses
2003-05-31 05:01:49 +00:00
Howard Chu
203493bea7
ldap_pvt_tls_destroy depends on HAVE_TLS
...
These calls belong in an ldap_destroy() library function.
2003-05-22 23:25:10 +00:00
Kurt Zeilenga
65bfb44e8e
Error when user tries to mix command line and default URI components.
...
Remove TLS hard as an ldap.conf option as being not a over-writable
default. The appropriate way to request ldaps:// is use an ldaps://
URI. A rewrite to only sent hard for the default URIs but ignored
if the application provides it own URI would be acceptable.
2003-05-22 00:13:00 +00:00
Kurt Zeilenga
0f2bb9f027
cleanup
2003-05-17 01:37:01 +00:00
Howard Chu
8e8fbe0908
Fix ldap_get_attribute_ber to get values in-place.
...
Revert previous memleak fix in ldapsearch.c
2003-05-14 13:16:56 +00:00
Howard Chu
7a720d4b40
plug memleak in alternate print_entry()
2003-05-12 14:29:35 +00:00
Hallvard Furuseth
5ee9264465
Fix assignment of <char/int>* to unsigned <char/int>* and vice versa.
2003-05-02 13:29:28 +00:00
Howard Chu
4abff760a0
Check HAVE_CYRUS_SASL for sasl_done().
2003-04-29 20:21:48 +00:00
Hallvard Furuseth
28e1a3c9da
#include "ldap_pvt.h", to get ldap_pvt_tls_destroy().
...
Cast argument to isspace() to unsigned char.
2003-04-29 14:42:58 +00:00
Kurt Zeilenga
a255dbb9e9
Add -y support
2003-04-12 03:46:45 +00:00
Kurt Zeilenga
bbfaf8c6c5
Misc translation tweaks
2003-04-06 03:27:52 +00:00
Kurt Zeilenga
0dcd32372c
Mark translatable strings. Needs work.
2003-04-06 02:59:15 +00:00
Howard Chu
4f8a99e111
ITS#2423 plug some memleaks
2003-04-06 00:48:48 +00:00
Kurt Zeilenga
02028df6c6
Add additional password file support.
2003-03-31 06:29:59 +00:00
Kurt Zeilenga
a9e68ef991
Add -y support to ldappasswd.c
...
s/passwd/password/ in usage description
2003-03-31 05:47:13 +00:00
Howard Chu
d68391c37f
Added version rules
2003-03-29 03:25:44 +00:00
Howard Chu
7f79b986e6
Remove unused reference to ldif_debug
2003-03-29 03:15:35 +00:00
Howard Chu
d0c81ff26b
Tweak version.c rules
2003-03-29 00:33:39 +00:00
Howard Chu
3499a51dc1
Revert previous commit
2003-03-29 00:28:00 +00:00
Kurt Zeilenga
9f5163e602
Also fix -MM, -CC, etc..
2003-03-27 18:11:18 +00:00
Howard Chu
c9cf840731
Fix: -ZZ was not requiring StartTLS to succeed.
2003-03-27 17:30:43 +00:00
Howard Chu
5db9c2c269
Use ol_version.h
2003-03-19 01:31:42 +00:00
Howard Chu
78f9fb45d4
Use ol_version.h
2003-03-18 23:37:14 +00:00
Howard Chu
32a38866b7
Fix typo in KRBV4 handling
2003-02-27 05:51:41 +00:00
Howard Chu
a667cd989b
Fix undef'd code for empty attributes.
2003-02-10 07:41:30 +00:00
Kurt Zeilenga
29304f0cee
s/LDAP_SUCCESS/LDAP_OPT_SUCCESS/
2003-02-10 01:48:04 +00:00
Kurt Zeilenga
8c79e4b7c3
Add library version check to prevent mismatch during dynamic linking
2003-02-10 01:43:41 +00:00
Kurt Zeilenga
6d324e6148
Fix DESTDIR to work without --static
2003-02-09 23:21:15 +00:00
Kurt Zeilenga
737f4b0d34
Misc LCUP cleanup
2003-02-09 08:43:20 +00:00
Kurt Zeilenga
89489ae534
add domainScope control support
2003-02-09 06:14:06 +00:00
Kurt Zeilenga
48d47954a6
Rework #ifdef'ing of expermental controls to ease release engineering
...
using LDAP_DEVEL (to indicate experimental) to enable experimental features
(true for HEAD unless LDAP_REL_ENG is defined)
2003-02-08 21:53:05 +00:00
Jong Hyuk Choi
5288450294
remove printf
2003-02-05 15:38:11 +00:00
Jong Hyuk Choi
85b1783d5c
LDAP Sync Operation (draft-zeilenga-ldup-sync) as a groundwork for an LDAP replication design
2003-02-05 07:37:02 +00:00
Kurt Zeilenga
c41a87c587
Use version strings provided by build system for -V
2003-01-20 20:48:06 +00:00
Kurt Zeilenga
dab6bdaaad
First cut at -V (version) argument. Needs work.
2003-01-20 20:11:57 +00:00
Hallvard Furuseth
6a51371fc5
Silence gcc warnings (signed vs. unsigned, implicit declarations, unused vars).
2003-01-19 15:03:25 +00:00
Hallvard Furuseth
120e39b533
Cast ctype.h arguments to unsigned char.
2003-01-19 14:05:23 +00:00
Hallvard Furuseth
265b7e22c6
Insert missing initializers, to silence gcc warnings.
2003-01-19 13:38:44 +00:00
Hallvard Furuseth
1fbbc11811
Fix LBER_ERROR vs. -1 confusion.
2003-01-19 13:10:17 +00:00
Kurt Zeilenga
6939c53170
Happy new year
2003-01-03 20:20:47 +00:00
Pierangelo Masarati
446f40316a
more readable diffs and reduced number of conflicts when adding new client-side controls
2002-12-27 14:57:52 +00:00
Jong Hyuk Choi
5e343548ab
lcup persistent search option
2002-12-18 22:09:25 +00:00
Howard Chu
c102809fab
Use ber_flatten2 to avoid excess mallocs
2002-12-18 19:16:31 +00:00
Hallvard Furuseth
b84c33ce31
Plug memory leaks from ldap_get_option().
2002-12-18 09:37:21 +00:00
Pierangelo Masarati
689710e2ca
Dunno in advance how many controls will be set by a client
2002-12-14 16:34:59 +00:00
Hallvard Furuseth
5b8302f655
Factor out common client code to file common.c
2002-12-12 16:32:26 +00:00
Hallvard Furuseth
6e82d5b45e
Plug memory leak from ldap_<first/next>_attribute().
2002-12-11 08:28:42 +00:00
Hallvard Furuseth
a42908f2e7
Update '-c' error handling, so error in any operation returns error from main.
2002-12-09 11:02:28 +00:00
Howard Chu
5efa571ad2
Fix Solaris SEGV when base is not specified
2002-12-04 16:47:35 +00:00
Kurt Zeilenga
da76c1951e
First-cut proxy authorization support.
2002-12-03 06:11:32 +00:00
Hallvard Furuseth
416aeb9347
Never let ldif_parse_line() return a NULL value with success.
2002-12-02 22:46:07 +00:00
Hallvard Furuseth
334ff687d6
Esthetic change: Move break; out of if() to before the next case:
2002-12-02 15:46:53 +00:00
Pierangelo Masarati
3f32b6fe17
put 'break' only at the end of the 'case'
2002-12-01 19:07:05 +00:00
Hallvard Furuseth
44620410d5
ldapsearch -E subentries=... lacked a break; for case 'E':
2002-11-30 19:17:14 +00:00
Kurt Zeilenga
ca84693b12
Clean up error messages
2002-11-29 02:49:11 +00:00
Kurt Zeilenga
e918c3b5a7
Add -e authzid argument processing
2002-11-28 05:56:19 +00:00
Kurt Zeilenga
8754c8f2a3
#unifdef paged results, remove lint
2002-11-28 04:38:41 +00:00
Kurt Zeilenga
053da4db7b
Use ldap_whoami_s(3)
2002-11-28 03:14:54 +00:00
Kurt Zeilenga
5fe7d38e1c
Add whoami.c and passwd.c and other minor tweaks to control cleanups
2002-11-28 02:44:38 +00:00
Kurt Zeilenga
235973571a
proxy authz control (client only)
...
Misc control cleanups (client only)
2002-11-28 02:26:55 +00:00
Pierangelo Masarati
e8439a9276
enforce the declared behavior when using -L[L[L]]
2002-11-21 22:13:07 +00:00
Pierangelo Masarati
415a8d325f
add limits to entries count for paged results
2002-11-21 20:49:02 +00:00
Pierangelo Masarati
b26ecba01a
- allow interactive pagedResults size change
...
- implement pagedResults abandon by setting size=0
- misc code cleanup
2002-11-21 03:36:37 +00:00
Pierangelo Masarati
c354bb23bf
Support for RFC 2696:
...
LDAP Control Extension for Simple Paged Results Manipulation
contributed by Lynn Moss <lynnmoss@us.ibm.com> (ITS#2189)
applied with changes.
2002-11-21 02:16:53 +00:00
Kurt Zeilenga
26e1043576
Add more LDIF comments
2002-10-23 18:34:54 +00:00
Kurt Zeilenga
6b7cee69c2
Patch: 'ldapmodify -c' should return error on failure (ITS#2133)
...
Written by Hallvard B. Furuseth and placed into the public domain.
This software is not subject to any license of the University of Oslo.
'ldapmodify -c' returned the error status from the _last_ LDIF entry,
so a bad entry followed by a good entry returns success.
This patch makes it return the status of the last _failed_ entry,
or 0 if all entries succeeded.
2002-10-12 04:35:42 +00:00
Howard Chu
3f41c614a1
Added ldapcompare.c to SRCS so it will be processed by make depend
2002-09-08 22:01:29 +00:00
Howard Chu
ee30206bc2
Merged ldap_get_values_ber into ldap_get_attribute_ber.
2002-09-06 04:57:21 +00:00
Howard Chu
bbc22d5318
Added 2nd version of print_entry using new ldap_get_*_ber functions.
...
#if'd out by default, but it works fine. Kept both for easy comparison.
2002-09-05 11:38:07 +00:00
Kurt Zeilenga
a83cc88edd
Move ldap_control_dup() to ldap_pvt.h
2002-09-04 02:14:12 +00:00
Pierangelo Masarati
fd3302699e
add ldif control support (ITS#2060, patch from David Steck <dsteck@novell.com>)
2002-08-31 12:02:39 +00:00
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
9c28c9b361
Zap LDAPv2-only stuff
2002-08-08 03:01:14 +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
Kurt Zeilenga
02e8527248
Patch: Escape character troubles (ITS#1753)
...
================
Written by Hallvard B. Furuseth and placed into the public domain.
This software is not subject to any license of the University of Oslo.
================
maildap could address buf[-1] if len was < 2.
REWRITE_SUBMATCH_ESCAPE is '%', not '\'.
librewrite and saslautz could walk past the end of a string which
ended with an escape character.
Hallvard B. Furuseth <h.b.furuseth@usit.uio.no>, April 2002.
2002-04-15 18:29:39 +00:00
Kurt Zeilenga
bf662a8cd1
Trim finger from HEAD
2002-04-15 18:12: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
7516ce8c35
V2 kbind fix (blind commit)
2002-01-31 22:52:00 +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
773b3aff16
more cleanup from jon@symas.com
2001-12-18 04:52:55 +00:00
Howard Chu
6159dfbe01
Just use mkstemp unconditionally; liblutil will fill in if the system doesn't.
2001-12-18 03:04:32 +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
Kurt Zeilenga
abd9be4def
Remove lint and misc MSVC updates
2001-12-09 02:34:45 +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
ac2cd34aaf
ITS#1482 patch from Michael.Gerdts@usa.alcatel.co
...
MSVC cannot build clients/ud because the symbol mkstemp
is not found. Add tmpfile() support.
2001-12-06 21:19:10 +00:00
Kurt Zeilenga
6ba3b26c09
Enhance error messages from Walter.Mueller@uibk.ac.at
2001-12-05 03:13:50 +00:00
Kurt Zeilenga
40b069f5ee
Finish friendly_name() removal
2001-12-02 01:07:50 +00:00
Kurt Zeilenga
15fc0cccae
Don't bother with friendly name
2001-12-01 03:40:19 +00:00
Kurt Zeilenga
23a1c79ea8
Only build/install tools and ud by default
2001-10-27 18:14:22 +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
Kurt Zeilenga
0e1c9551a9
Major clients cleanout
2001-07-07 05:05:38 +00:00
Kurt Zeilenga
fe2361b855
Don't say "version: 2"
2001-06-21 20:32:04 +00:00
Kurt Zeilenga
11b6d1f284
Misc updates for NT4
2001-06-15 04:16:55 +00:00
Kurt Zeilenga
2d33a76ff7
Restore
2001-06-14 05:30:26 +00:00
Kurt Zeilenga
5cf21f13fe
Rip most of Kbind out in prep for adding SASL.
2001-06-14 05:28:46 +00:00
Kurt Zeilenga
85a2c40ca0
Remove more UFN cruft
2001-06-11 21:25:14 +00:00
Kurt Zeilenga
86acd7eb20
unifdef -ULDAP_UFN
2001-06-11 21:08:49 +00:00
Kurt Zeilenga
c0ce193879
Fix no domainpart bug
2001-06-09 20:47:19 +00:00
Kurt Zeilenga
44bef574c8
Updated pthread test and usage (avoid pthread_detach if possible)
...
don't use tmpnam()
2001-06-09 01:05:35 +00:00
Kurt Zeilenga
39d364c710
Fix filter printing
2001-05-18 00:27:08 +00:00
Kurt Zeilenga
383391b460
detect and use fcntl (for BSD/OS)
...
detect inet_ntop (for MacOSX)
2001-05-03 05:53:34 +00:00
Kurt Zeilenga
db71f0c8a7
Clean up some logic, based upon Novell patches
2001-05-02 19:52:09 +00:00
Kurt Zeilenga
3ea33ebd12
Add LDAP version to comment
2001-03-15 04:10:17 +00:00
Julio Sánchez Fernández
d8bf048f17
Sendmail is so weird that it passes us an address of <> as just
...
a zero-length argument, but will consider such thing unparseable.
So we do the translation...
2001-02-27 21:20:08 +00:00
Kurt Zeilenga
6b822b67ef
Validate timelimit argument
2001-01-23 20:51:14 +00:00
Kurt Zeilenga
b873db292c
Rename timelimit to timeout where it refers to the time out not the time limit.
2001-01-23 20:38:19 +00:00
Kurt Zeilenga
111dd4cc97
Move -V to -F so that -V can be used for version information
2001-01-19 04:55:38 +00:00
Kurt Zeilenga
867ed1c7c8
use "authcid" instead of "username".
2001-01-18 08:04:56 +00:00
Kurt Zeilenga
ed9bacc1a6
Change start tls warning message
2001-01-16 04:32:13 +00:00
Julio Sánchez Fernández
6ae3796ade
Fix crash when a mail list appears twice in the expansion, maybe
...
because of loop, maybe legitimately.
Make check for already seen mail group case insensitive.
2000-11-24 17:46:18 +00:00
Kurt Zeilenga
ba37cbc233
Fix passwd clearing bug
2000-11-06 15:53:02 +00:00
Kurt Zeilenga
5c9357fa81
Fix encoding of old password
2000-10-28 10:15:17 +00:00
Gary Williams
3a002e8768
enable new logging functions (behind NEW_LOGGING)
2000-10-25 15:03:22 +00:00
Kurt Zeilenga
b4368db948
Remove commented out (logging) code
2000-10-17 20:44:34 +00:00
Kurt Zeilenga
a43392cd42
return default to no logging
2000-10-17 20:43:33 +00:00
Kurt Zeilenga
9ad5246a9a
Don't print bind dn, it's confusing when using SASL
2000-10-13 18:57:56 +00:00
Kurt Zeilenga
9e1458724b
Use LDAP_VERSION3 instead of 3
2000-10-13 18:30:24 +00:00
Gary Williams
fd4b8ba0cd
example client using new logging
2000-10-12 20:13:20 +00:00
Kurt Zeilenga
5a32ff0603
Add missing 'static'... (ITS#823,825,828)
...
as reported by Jeff Earickson <jaearick@colby.edu>
other suggestions to be separately reviewed
2000-10-11 23:42:53 +00:00
Kurt Zeilenga
e6dc9d1889
Update ldappasswd binddn bug, man page and error reporting
2000-10-11 04:56:08 +00:00
Kurt Zeilenga
9e450558d8
Fix add of empty value.
2000-10-03 22:05:28 +00:00
Kurt Zeilenga
3d47cb33c1
Fix spelling error
2000-09-19 20:47:22 +00:00
Kurt Zeilenga
f42966f9e1
Fix #undef LDAP_UFN
2000-09-16 06:24:17 +00:00
Kurt Zeilenga
efe39c999f
modify ldap_dn2ufn() to return completely typeless UFNs
...
hide rest of UFN code behind #ifdef LDAP_UFN in preparation
for eventual removal.
2000-09-16 04:33:52 +00:00
Ben Collins
0bd5e418be
remove unused var 'actions'
2000-09-15 02:49:27 +00:00
Ben Collins
bca61801a1
Fix fprintf\'s, missing `prog\' argument
2000-09-15 02:48:10 +00:00
Ben Collins
d3805f1980
compiler warnings, possible use of unitialized data
2000-09-15 02:45:53 +00:00
Ben Collins
7c90250fba
missed newline in printf
2000-09-13 23:32:06 +00:00
Kurt Zeilenga
e366aefffc
Fix ldap_init/initialize error checking
2000-09-13 21:49:31 +00:00
Ben Collins
85747c5c55
init output_string to NULL, and check in printbase() to make sure we don't pass garbage
2000-09-13 21:44:37 +00:00
Kurt Zeilenga
8d2c074a80
Fix -R processing
2000-09-07 01:15:52 +00:00
Kurt Zeilenga
4af57deb51
Fix kbind typo (ITS#717)
2000-09-06 21:25:28 +00:00
Kurt Zeilenga
52d2b2ec51
user argument should be optional
2000-09-06 18:45:12 +00:00
Kurt Zeilenga
70f28f1ba4
segfault by ldappasswd -A -S (ITS#714) fix
...
suggested by Fumitoshi UKAI <ukai@debian.or.jp>
2000-09-06 18:28:15 +00:00
Kurt Zeilenga
fb6590f8db
Add -H to usage
2000-09-05 18:52:10 +00:00
Kurt Zeilenga
0e920e9d29
Back out last change
2000-08-31 20:53:12 +00:00
Kurt Zeilenga
78f6d75586
Fix URI
2000-08-31 20:52:14 +00:00
Kurt Zeilenga
f6a1c05b68
Add missing fprintf param
2000-08-25 23:51:10 +00:00
Kurt Zeilenga
ef3fb24f39
Fix typo which escaped my obviously flawed midnight test
...
(I must have been dreamed that the 'make test' completed
successfully)
2000-08-25 23:46:09 +00:00
Kurt Zeilenga
e97cdfb7a9
Add support of "-H uri"
2000-08-25 05:31:29 +00:00
Randy Kunkee
45ef1d2c90
Clean up lint.
2000-08-23 22:49:44 +00:00
Kurt Zeilenga
d95e350832
Fix up examples, X.500 references, etc.
2000-08-21 03:08:58 +00:00
Kurt Zeilenga
25a9f7427d
Remove CLDAP cruft
2000-08-18 04:25:00 +00:00
Kurt Zeilenga
c243a6fa92
ITS#657: Added command-line switch for searchbase to in.xfingerd
...
ITS#658: man page
from Tom Jordan <tjordan@doit.wisc.edu>
2000-08-16 20:27:17 +00:00
Kurt Zeilenga
5b856458a2
s/SAFEMEMCPY/AC_MEMCPY/
...
Use AC_FMEMCPY where appropriate (-llber)
2000-07-28 01:07:07 +00:00
Kurt Zeilenga
fc6c7fefcc
Fix empty AND/OR search list bug
2000-07-27 23:08:48 +00:00
Kurt Zeilenga
cd5aed0bbe
Use sigaction to set SA_RESTART (if appropriate).
...
Portability of this code needs to tested.
2000-07-22 00:37:51 +00:00
Kurt Zeilenga
0f5c87a41c
Clean up usage()
2000-07-17 21:54:20 +00:00
Kurt Zeilenga
6393523ffa
Expose sasl flags to -lldap (so they can be quiet)
...
Fix interactive and automatic modes. Quiet needs work.
2000-07-17 21:23:59 +00:00
Kurt Zeilenga
95eea5accc
First cut SASL "interactive" and "quiet" modes (default is "automatic")
2000-07-17 00:56:29 +00:00
Kurt Zeilenga
6454508ec6
Update usage to note that user may not be represented by a DN
2000-07-16 00:28:57 +00:00
Kurt Zeilenga
908368a245
Fix authmethod defaulting
2000-07-16 00:23:41 +00:00
Kurt Zeilenga
2c323d2b2a
Add -x (simple authentication)
2000-07-16 00:21:41 +00:00
Kurt Zeilenga
1e562b0d1f
Make it all work.
2000-07-16 00:14:08 +00:00
Kurt Zeilenga
4d45c61600
Cleanup previous commit
2000-07-15 23:34:27 +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
9488612057
Use setproctitle correctly
2000-07-06 20:36:23 +00:00
Kurt Zeilenga
04bfb7efe4
Add missing EOL
2000-07-05 23:11:37 +00:00
Kurt Zeilenga
f6cda93bd1
Correct improper ldap_result() result checking...
2000-07-04 21:59:41 +00:00
Kurt Zeilenga
20e6dcec3b
Improved but still broken client tools.
2000-07-04 21:49:00 +00:00
Kurt Zeilenga
8be1d467b8
Add reporting of LDAPv3 referrals. Should also report returned controls.
...
Also, as written, the code will behave better in the face of unsolicited
noticifications (such as notice of disconnect). However, code needs to
be improved to better distinguished such from expected result response.
Delete improvements are limited to base object delete. Should be applied
to -p[rune] option as well.
2000-07-03 19:03:22 +00:00
Kurt Zeilenga
3f6e23cb0c
Add LDAPv3 rename support
2000-06-29 19:35:51 +00:00
Kurt Zeilenga
51bacc2c99
Do not include <lber.h>
2000-06-26 01:24:03 +00:00
Kurt Zeilenga
e2fa599482
Move old files to the Attic
2000-06-25 22:01:42 +00:00
Kurt Zeilenga
1a862732ee
Fail if ldap_set_option fails
2000-06-25 18:17:47 +00:00
Kurt Zeilenga
bf9231ac40
Round 2 of tools work.
...
-R now ignored
-C added to chase. No rebind proc yet, no checking of appropriate authentication.
complain if non-critical TLS was not started.
Fail if requested version is not supported.
ldapdelete:
deletechildren modified to use ldap_search_ext_s()
fixed deletechildren dn memory leak
ldapsearch:
modified to use ldap_search_ext()
2000-06-25 18:07:15 +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
49f4147385
Added -llber 'N' ber_printf format which inserts a NULL if
...
an internal flag set. Used for SEQUENCE testing. Flag must
be set using debugger. Modified ber_printf to use new format
were needed for extensibility testing.
Added first cut -lldap support for extended responses.
Modified ldapsearch(1) to handle v3 search references when not
chasing. Also added extended/unsolicited notification handling
and extended partial response handling. Changes include a
number of LDIF enhancements.
Fixed getpassphrase() returns NULL bugs
2000-06-24 01:40:39 +00:00
Kurt Zeilenga
f48234f5bf
No need to include <lber.h>
2000-06-20 17:02:19 +00:00
Kurt Zeilenga
e7791e2f93
Adjust -Z[Z] usage statements
...
Change ldapsearch to only produce LDIF.
2000-06-19 16:19:59 +00:00
Kurt Zeilenga
9ef1a740c2
Round one of LDAP_F() macro changes. In this round we rename
...
macros into our namespace and limit use to headers. A subsequent
round will add macros to separately handle forward declarations
of variables from declaration of function prototypes. The last
round will add additional macros for declaring actual variables and
functions.
2000-06-18 19:48:07 +00:00
Kurt Zeilenga
701cc91e8d
Fix getpassword bug
2000-06-14 03:07:33 +00:00
Kurt Zeilenga
5417fdfea7
Rename ldap_start_tls() to ldap_start_tls_s() for consistency sake.
...
Misc other header changes.
2000-06-13 20:45:30 +00:00
Kurt Zeilenga
a56c161bdb
Misc code cleanup.
2000-06-10 22:39:30 +00:00
Kurt Zeilenga
40b71cd8e8
undef DEFSEP before defining it
2000-06-10 07:19:07 +00:00
Julio Sánchez Fernández
05d1caad05
Added maildap.
2000-06-09 00:45:59 +00:00
Julio Sánchez Fernández
13e263d895
A few name changes.
2000-06-09 00:43:24 +00:00
Julio Sánchez Fernández
927d58171b
The experimental mail500 has been renamed as maildap. This is an exact
...
copy of the code formerly in mail500, to properly track changes. An
exception is mail500.m4 that has been committed as maildap.m4 directly
to avoid breaking history twice.
2000-06-09 00:03:39 +00:00
Julio Sánchez Fernández
8d6fffc9ba
The old mail500 is back restored as of 1999/06/30, plus a few updates
...
to put it in line with current practices. Most likely I got them wrong,
so maight not even compile right now.
2000-06-08 23:58:19 +00:00
Kurt Zeilenga
e5ebc553ac
Rework URI parser to provide true scheme not proto/properties.
...
Plus more pthread rwlock code
2000-06-07 01:09:40 +00:00
Kurt Zeilenga
51e619d424
Add ManageDSAit support to back-dnssrv
...
Fix backend critical controls crash
Move 'associatedDomain' to core.schema
2000-06-05 03:10:46 +00:00
Kurt Zeilenga
ea069cb7c2
New indexer/filter codes (test suite works) with cheats
...
Updated NT Project files (with Cyrus SASL library depend)
2000-06-04 22:59:38 +00:00
Kurt Zeilenga
781a8e2afc
Use ldap_parse_result instead of deprecated ldap_result2error
2000-06-03 16:28:47 +00:00
Kurt Zeilenga
34edec3107
Strip installed executables
...
better library clean
2000-05-30 18:23:56 +00:00
Kurt Zeilenga
dfc850ceb3
Force referrals on
2000-05-29 20:43:29 +00:00
Kurt Zeilenga
8045b54124
Use getpassphrase() instead of getpass() if available.
2000-05-19 18:41:26 +00:00
Kurt Zeilenga
c923fe5401
s/bindpw/passwd/
2000-05-16 05:08:25 +00:00
Kurt Zeilenga
9267700fb9
Fix password handling for SASL
2000-05-16 02:16:54 +00:00