Pierangelo Masarati
fcda57e90f
use macros instead of numbers...
2005-12-13 20:11:26 +00:00
Pierangelo Masarati
d34fffcaf9
use lutil_ato*() whenever appropriate
2005-11-24 01:10:05 +00:00
Pierangelo Masarati
337e297faf
add some friendly output of server control responses; please review
2005-11-23 01:18:18 +00:00
Pierangelo Masarati
78ce7e2d32
print control response (may need to condition with an arg switch?)
2005-11-22 14:29:38 +00:00
Pierangelo Masarati
165fb447be
even better wording (according to RFC2849)
2005-11-20 22:31:07 +00:00
Kurt Zeilenga
210638e3c5
slightly better wording
2005-11-20 21:28:32 +00:00
Pierangelo Masarati
55349537ad
warn if one uses "dn:" inside an entry during add (likely forgot the newline between two entries)
2005-11-20 19:10:13 +00:00
Pierangelo Masarati
1ce491e4f4
fix library checks; implement client side of "touch" modify (ITS#4183)
2005-11-20 14:17:37 +00:00
Pierangelo Masarati
81b28fe329
check reponse tags in ldapmodify; other functions rely on client library, which might need further work. Also, remove or silence all deprecated API calls
2005-11-16 21:50:51 +00:00
Hallvard Furuseth
a286d07109
Plug memory leaks
2005-08-01 03:44:52 +00:00
Hallvard Furuseth
d49a477702
Cleanup
2005-07-31 18:05:51 +00:00
Hallvard Furuseth
262f199bb2
Silence warning
2005-07-27 08:33:59 +00:00
Hallvard Furuseth
a4e0331f89
Silence "unused label" warning
2005-07-14 19:11:48 +00:00
Kurt Zeilenga
edac9abcfe
Fix client-side ManageDIT control
2005-05-13 18:35:55 +00:00
Howard Chu
476547e7c1
Pick up strutct timeval definition
2005-05-05 23:04:49 +00:00
Pierangelo Masarati
4a223061ed
allow abandon/cancel for all tools
2005-04-19 21:21:51 +00:00
Kurt Zeilenga
c57f440118
ITS#3620: Initial Unbind control fix
...
A better fix would be to use the _ext interface
Also add and use a tool_destroy() function (to destroy SASL/TLS contexts).
2005-04-01 23:29:02 +00:00
Kurt Zeilenga
dc0eacd40b
Happy New Year!
2005-01-01 20:49:32 +00:00
Pierangelo Masarati
01a1eec957
fix ITS#3257
2004-07-25 23:05:29 +00:00
Kurt Zeilenga
44349f4ac6
Further refine last commit
2004-04-05 15:40:07 +00:00
Kurt Zeilenga
f6d2bd8846
Fix last commit
2004-04-05 15:38:50 +00:00
Kurt Zeilenga
88915d8a8a
ITS#3057: Forgot to call ldap_perror()
2004-04-05 15:29:35 +00:00
Kurt Zeilenga
db18784462
Fix builds with LDAP_GROUPTING_TRANSACTION
2004-03-17 23:17:33 +00:00
Kurt Zeilenga
aa797c0eec
#ifdef txn code
2004-03-17 03:13:00 +00:00
Kurt Zeilenga
0ba4b24c36
Rework to support txn intermediate responses
...
(if only they were implemented :-)
2004-03-15 02:20:38 +00:00
Kurt Zeilenga
647df2b9cb
Start of client-side LDAP tranactions (non-working)
...
and lots of cleanup (hence the commit)
(ldapmodify will need much more work for transactions)
2004-03-14 23:32:00 +00:00
Kurt Zeilenga
25805a3bb2
-E/-e are not just for controls
2004-03-12 22:34:07 +00:00
Kurt Zeilenga
65b9c027f6
Allow no args
2004-02-27 02:12:46 +00:00
Kurt Zeilenga
3c598e89fb
Happy new year
2004-01-01 19:15:16 +00:00
Kurt Zeilenga
d2b9a4913b
Use ldap_unbind_ext(3)
2003-12-18 19:15:57 +00:00
Kurt Zeilenga
d5a1231a64
Remove -C(hasing) option. Doesn't make sense for update operations
...
(at least not with a secure authentication framework).
2003-12-17 00:34:37 +00:00
Kurt Zeilenga
e0e43961c8
Cleanup notices and attribution
2003-11-26 08:31:36 +00:00
Kurt Zeilenga
e3a4c4ec9c
Notice/Acknowledge updates
2003-11-26 02:58:56 +00:00
Kurt Zeilenga
327880b984
Notice updates
2003-11-25 23:17:08 +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
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
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
3499a51dc1
Revert previous commit
2003-03-29 00:28:00 +00:00
Howard Chu
78f9fb45d4
Use ol_version.h
2003-03-18 23:37:14 +00:00
Kurt Zeilenga
dab6bdaaad
First cut at -V (version) argument. Needs work.
2003-01-20 20:11:57 +00:00
Hallvard Furuseth
120e39b533
Cast ctype.h arguments to unsigned char.
2003-01-19 14:05:23 +00:00
Kurt Zeilenga
6939c53170
Happy new year
2003-01-03 20:20:47 +00:00
Hallvard Furuseth
b84c33ce31
Plug memory leaks from ldap_get_option().
2002-12-18 09:37:21 +00:00
Hallvard Furuseth
5b8302f655
Factor out common client code to file common.c
2002-12-12 16:32:26 +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
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
235973571a
proxy authz control (client only)
...
Misc control cleanups (client only)
2002-11-28 02:26:55 +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
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
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
26e4960c1c
Remove those #ifdefs NOOP just added.
2002-08-30 05:43:47 +00:00
Kurt Zeilenga
0517278aff
Place NOOP behind #ifdef
2002-08-30 05:02:20 +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
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
d8929296b8
Use lutil_progname, #include <lutil.h> to get it.
2002-07-27 00:06:27 +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
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
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
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
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
331a7bd1c5
More from jon@symas.com - argv[0] comparison must exclude EXEEXT.
2001-12-12 00:26:42 +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
0c13c5bbdd
Use parens for clarity
2001-08-28 00:35:34 +00:00
Kurt Zeilenga
db71f0c8a7
Clean up some logic, based upon Novell patches
2001-05-02 19:52:09 +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
Kurt Zeilenga
ba37cbc233
Fix passwd clearing bug
2000-11-06 15:53:02 +00:00
Gary Williams
3a002e8768
enable new logging functions (behind NEW_LOGGING)
2000-10-25 15:03:22 +00:00
Kurt Zeilenga
9e1458724b
Use LDAP_VERSION3 instead of 3
2000-10-13 18:30:24 +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
Ben Collins
bca61801a1
Fix fprintf\'s, missing `prog\' argument
2000-09-15 02:48:10 +00:00
Kurt Zeilenga
e366aefffc
Fix ldap_init/initialize error checking
2000-09-13 21:49:31 +00:00
Kurt Zeilenga
8d2c074a80
Fix -R processing
2000-09-07 01:15:52 +00:00
Kurt Zeilenga
fb6590f8db
Add -H to usage
2000-09-05 18:52:10 +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
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
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