Ralf Haferkamp
42b870f9bb
print diagnostic messages when sasl_interactive_bind or start_tls_s failed
2009-09-29 17:19:28 +00:00
Pierangelo Masarati
08b43a89f6
check for timeout allowed by options (ITS#6282)
2009-09-08 07:55:57 +00:00
Pierangelo Masarati
e3a2b273a4
silence warning; cleanup code
2009-08-19 12:46:39 +00:00
Pierangelo Masarati
9abaf38d1f
silence warnings
2009-08-19 12:23:27 +00:00
Pierangelo Masarati
f32bc8bc85
advertise known exops
2009-08-13 15:52:56 +00:00
Pierangelo Masarati
8fc79e1116
rework common options (ITS#6049)
2009-08-03 13:40:28 +00:00
Howard Chu
82874bed6e
ITS#6233 don't advance ptr after storing final NUL.
2009-07-28 22:04:13 +00:00
Howard Chu
048f24150f
ITS#6145 free/close before exit
2009-07-22 07:19:41 +00:00
Howard Chu
8f336e9107
Add VLV support
2009-07-13 12:41:02 +00:00
Howard Chu
3f39c79411
Cleanup sss result string
2009-07-13 08:28:11 +00:00
Howard Chu
cb594c7128
Fix typo in derefcrit control
2009-07-13 01:57:25 +00:00
Howard Chu
72e319bd02
ITS#5892 return -1 from ldif_read_record on error
2009-07-07 22:30:55 +00:00
Hallvard Furuseth
8171f077ca
Silence warning in print_deref(): cast lutil_b64_ntop() arg to unsigned char*
2009-04-29 22:19:39 +00:00
Howard Chu
4b078ab617
ITS#6014, partial revert 1.121 for now. We should unconditionally use
...
our own getpassphrase function to avoid these system-dependent problems
2009-03-17 18:07:14 +00:00
Howard Chu
789388ddfe
ITS#6005 strings from ber_scanf must be ber_memfree'd
2009-03-08 00:08:09 +00:00
Howard Chu
7029d640cb
mem cleanup (see ITS#6005) not worth chasing them all down
2009-03-07 01:31:34 +00:00
Howard Chu
0189fb0828
More for #5812 , ifdef NOCANON option
2009-02-06 00:01:38 +00:00
Kurt Zeilenga
4af9eb9715
Update copyright notices
2009-01-22 00:40:04 +00:00
Pierangelo Masarati
416a544a9e
fix one-time leak (non critical)
2008-12-11 23:18:54 +00:00
Pierangelo Masarati
7681642bcf
fix LDAP deref control response; fix tool response handling; add lutil_memcopy() for API uniformity (more about ITS#5768)
2008-12-11 23:17:08 +00:00
Howard Chu
86b5de38be
ITS#5812 add SASL_NOCANON / -N option
2008-11-21 03:30:15 +00:00
Pierangelo Masarati
308b24a327
allow to override (more than one \!) specs requirements on control criticality (for testing purposes; do not advertise)
2008-11-01 16:55:45 +00:00
Pierangelo Masarati
7ad03166b6
add "What Failed?" LDAP control (ITS#5784)
2008-11-01 15:15:57 +00:00
Hallvard Furuseth
dffe8d37fa
ITS#5770: Fix unaligned BerElements: Use BerElementBuffer, not char[size].
2008-10-24 17:52:05 +00:00
Pierangelo Masarati
543a75355c
slight fixes and improvements to previous commit
2008-10-22 23:01:20 +00:00
Pierangelo Masarati
91e14ca638
add support for (experimental) dereference control (ITS#5768); need to re-run autoconf (and autoheader?)
2008-10-22 22:19:49 +00:00
Pierangelo Masarati
eba56f0ec9
default to simple bind when -D is specified and no SASL-related options are used (ITS#5753)
2008-10-19 21:15:24 +00:00
Pierangelo Masarati
4cef770d2b
add ldapurl command
2008-10-19 20:35:18 +00:00
Hallvard Furuseth
0d7ee548e1
Warning cleanup: signed meets unsigned. (Adds variable dosearch():outlen.)
2008-10-17 16:35:24 +00:00
Hallvard Furuseth
9a542f526d
Warning cleanup: signed meets unsigned: Replace BVICMP() with !BV_CASEMATCH().
...
BVICMP() tried (unnecessarily) to return <0 / 0 / >0, but could be unsigned.
2008-10-17 16:34:04 +00:00
Hallvard Furuseth
f40582fc7d
Warning cleanup: signed meets unsigned. ber_printf() returns -1 on
...
error, not LBER_ERROR.
2008-10-13 08:09:52 +00:00
Pierangelo Masarati
1b983cfb77
note RFC for each standard track control
2008-09-28 20:44:53 +00:00
Pierangelo Masarati
43ae03fc10
silence warnings
2008-09-16 14:10:02 +00:00
Howard Chu
689b51fe48
Add server side sorting control
2008-08-01 22:53:47 +00:00
Pierangelo Masarati
7e3c9a07e9
add client API for assertion control (ITS#5560)
2008-06-14 17:49:47 +00:00
Quanah Gibson-Mount
55e8763433
More for ITS#5317
2008-02-12 20:59:20 +00:00
Pierangelo Masarati
648fc5aabb
don't use subentries control unless needed (ITS#5293)
2008-02-09 12:35:24 +00:00
Hallvard Furuseth
f247093031
Remove uninitialized variable since last change
2008-01-09 20:25:51 +00:00
Hallvard Furuseth
f150ef3edd
for ITS#5317: initialize exit code for -f/dev/null
2008-01-09 20:24:29 +00:00
Howard Chu
b2cf21e625
Trim replog-related cruft
2008-01-09 16:05:28 +00:00
Kurt Zeilenga
c890c96d13
Happy New Year (belated)
2008-01-08 00:19:56 +00:00
Pierangelo Masarati
0d9e140e95
allow to workaround size limits when deleting recursively (ITS#5294)
2007-12-27 21:08:29 +00:00
Pierangelo Masarati
9ab9162f4d
fix one-time leaks
2007-12-15 11:51:20 +00:00
Howard Chu
707a09b704
ITS#5247 fix verbose completion messages
2007-12-15 01:51:04 +00:00
Hallvard Furuseth
e5de6a9400
Fix typo in error message
2007-12-08 18:01:47 +00:00
Hallvard Furuseth
adea0057f8
ITS#5248: use volatile sig_atomic_t for signal variables gotintr, abcan
2007-12-06 17:37:41 +00:00
Howard Chu
96621c71d4
unifdef LDAP_DEVEL for relax control in usage message
2007-08-29 23:41:15 +00:00
Pierangelo Masarati
a90d052775
forgot one commit
2007-08-23 20:27:10 +00:00
Pierangelo Masarati
57316ae1ac
move session tracking control creation to helper
2007-08-22 18:33:41 +00:00
Kurt Zeilenga
a9b4c04f1c
Use MAXHOSTNAMELEN from <ac/socket.h> instead of HOST_NAME_MAX as the latter ain't available here.
2007-08-22 18:05:18 +00:00
Pierangelo Masarati
d1b68d3135
support session tracking during tool binds
2007-08-22 09:17:42 +00:00
Pierangelo Masarati
b0d2063d92
client side of draft-wahl-ldap-session
2007-08-21 23:52:03 +00:00
Pierangelo Masarati
caa5123975
further fix previous commit
2007-08-21 22:15:09 +00:00
Pierangelo Masarati
620d77eaf4
fix extra controls in tools
2007-08-21 14:50:08 +00:00
Pierangelo Masarati
145e6fc1f8
fix or comment Calysto findings
2007-08-21 10:52:16 +00:00
Pierangelo Masarati
f69306c84a
fix previous commit (may be called more than once)
2007-08-17 14:41:32 +00:00
Pierangelo Masarati
e3c515604b
allow unknown generic controls (by OID=b64value)
2007-08-17 09:46:02 +00:00
Hallvard Furuseth
6e63bac9eb
Remove lint
2007-08-16 22:46:38 +00:00
Pierangelo Masarati
4bc19cbbb9
cleanup tools
2007-08-16 09:22:07 +00:00
Howard Chu
3d1dcceb8e
Delete -C description, should not have been documented
2007-07-22 18:16:03 +00:00
Kurt Zeilenga
206b1aed55
Parse server controls on each response, and print them.
2007-07-18 17:38:30 +00:00
Pierangelo Masarati
1734ae7e1c
trim unneeded arg (ITS#5041)
2007-07-06 08:22:10 +00:00
Kurt Zeilenga
73ad5a7217
have error match API call
2007-06-21 22:02:08 +00:00
Kurt Zeilenga
ae47797cc8
Send common request controls with extended request.
...
Only bitch about missing genPassword in success response.
2007-06-21 22:01:36 +00:00
Pierangelo Masarati
f4239db146
better implementation for ITS#4996 and docs (ldapsearch(1) only; need to duplicate in other tools man pages)
2007-06-19 22:58:20 +00:00
Kurt Zeilenga
8eb0741a1c
Ppolicy control should be sent with every request...
...
handle returns in ldappasswd(1) and ldapwhoami(1). Likely needs to be
added to other ldap*(1) commands.
2007-06-19 01:02:42 +00:00
Kurt Zeilenga
fa6aa0688a
Revert last commit
...
Purports to remove kbind, but adds a ldap_search_s() request.
2007-06-19 00:58:35 +00:00
Pierangelo Masarati
0f8b273ca6
allow host resolution via DNS SRV based on the DN portion of the URI if no host is provided (ITS#4996)
2007-06-09 18:25:51 +00:00
Howard Chu
1365ec745e
ITS#4939 fix typo
2007-04-29 06:14:03 +00:00
Quanah Gibson-Mount
2fa94d3f7e
Use correct memory free function (ITS#4901)
2007-04-02 00:43:16 +00:00
Quanah Gibson-Mount
fb55cd3f3c
Fix typo
2007-04-01 23:27:37 +00:00
Howard Chu
d38f2d8096
Coverity - check for malloc failure (however unlikely...)
2007-02-13 11:27:06 +00:00
Ralf Haferkamp
caaef2103a
Printout ldap_result() error message (ITS #4812 )
2007-01-23 11:05:43 +00:00
Pierangelo Masarati
58b918bea2
add support to test exceptional behavior (abandon/cancel/ignore)
2007-01-13 15:03:15 +00:00
Pierangelo Masarati
fb2e448e87
cleanup
2007-01-11 18:57:37 +00:00
Howard Chu
29bda3922a
ITS#4800
2007-01-10 20:30:29 +00:00
Howard Chu
d0d709fadd
ITS#4799 remove kbind
2007-01-10 00:01:38 +00:00
Kurt Zeilenga
da6d9eb046
happy new year
2007-01-02 20:00:42 +00:00
Howard Chu
78ea542572
timeval requires <ac/time.h>
2006-12-26 05:05:28 +00:00
Pierangelo Masarati
8b49d50e92
(blind) fix type format
2006-12-18 08:21:06 +00:00
Pierangelo Masarati
6911e557de
fix type format
2006-12-18 08:20:43 +00:00
Luke Howard
b7c41e655f
Add common -o nettimeout option to specify network timeout
2006-12-18 03:17:43 +00:00
Howard Chu
181982470f
Reject malformed LDIF - missing modops, or mismatched attributes
2006-11-27 04:49:30 +00:00
Howard Chu
ead61fbfad
Revert rbuf length setting in prev commit
2006-11-27 04:15:55 +00:00
Howard Chu
712129fe11
Parser rewrite:
...
use liblutil's ldif_read_record instead of read_one_record
track line numbers across entire LDIF instead of just for a single
entry, to allow easier locating of errors. (we can also add the
-j jump option later.)
split Add/Modify parse paths, precompute size of pmods instead of
continuously using realloc.
Entry processing is now linear time instead of n^2 with entry size.
2006-11-24 17:05:45 +00:00
Howard Chu
b42d93f24f
ITS#3755 silence strict-aliasing warnings
2006-11-10 10:39:54 +00:00
Pierangelo Masarati
968da1cb14
add LDAP_OPT_DIAGNOSTIC_MESSAGE; replace deprecated option names
2006-10-14 17:04:17 +00:00
Howard Chu
8cf9982912
Portability cleanups
2006-09-14 07:58:02 +00:00
Pierangelo Masarati
9bc2cd3987
allow continuous mode
2006-08-25 16:20:48 +00:00
Kurt Zeilenga
e2f4ca480d
ITS#4647: error on bad filter patterns
2006-08-24 03:15:57 +00:00
Kurt Zeilenga
3d667a4705
remove dontusecopy ifdefs
2006-08-22 20:57:33 +00:00
Kurt Zeilenga
97fa3f1efd
More LDAP_DEVEL cleanup
...
Rename ManageDIT to Relax
2006-08-22 00:45:16 +00:00
Kurt Zeilenga
8e5699e60f
fix confused comment
2006-08-17 00:26:25 +00:00
Kurt Zeilenga
423a93019f
Misc RFC reference updates
2006-06-21 07:09:39 +00:00
Pierangelo Masarati
d0fc998454
split lines in additional info (ITS#4543)
2006-05-13 00:46:06 +00:00
Howard Chu
4d85c307c4
ITS#4453 don't print error message on stdout
2006-05-12 07:56:20 +00:00
Pierangelo Masarati
e8e153e4a8
note when the default base is being used (more about ITS#4504)
2006-04-25 23:33:51 +00:00
Pierangelo Masarati
8242166888
print the correct search base when taken from ldaprc (ITS#4504)
2006-04-25 22:23:00 +00:00
Hallvard Furuseth
02cba98c0b
Protect from sprintf buffer overrun in ldapsearch -f file "(cn=%100000s)"
2006-04-05 20:48:15 +00:00
Hallvard Furuseth
7c117e37da
tool_bind(): Do not use pointer to out-of-scope variable (ITS#4434, ppolicy)
2006-04-04 03:20:33 +00:00
Hallvard Furuseth
581c1ff6c7
Cast ctype.h char arguments to unsigned char
2006-04-01 23:44:42 +00:00
Howard Chu
3f09968e5f
cleanup
2006-03-31 13:09:42 +00:00
Kurt Zeilenga
40d75df606
Additional TXN changes (a work in progress)
2006-03-30 18:00:04 +00:00
Pierangelo Masarati
aeb20faf51
improve previous commit
2006-03-10 12:30:33 +00:00
Pierangelo Masarati
ee9c11dd08
don't pass uninitialized pointers around
2006-03-10 12:14:58 +00:00
Kurt Zeilenga
17c826f370
Add missing break, ugh.
2006-03-06 22:47:06 +00:00
Kurt Zeilenga
cafc204a13
fix prev commit
2006-03-06 22:32:11 +00:00
Kurt Zeilenga
d787d7692e
Cleanup
2006-03-06 22:30:12 +00:00
Kurt Zeilenga
f45cf3002f
Don't commit transactions if modify failed.
2006-03-06 22:25:11 +00:00
Kurt Zeilenga
d15ce4d967
Need to clear controls before ldap_txn_end_s call.
...
Provide proxy control in bind calls instead of via ldap_set_option()
2006-03-06 21:46:31 +00:00
Kurt Zeilenga
825ce79611
Initial and rough client-side implementation of the revised LDAP
...
Transactions specification. A work in progress! Comments welcomed.
2006-03-06 21:20:36 +00:00
Howard Chu
05655a202c
ITS#4403 don't unbind a NULL ld.
2006-02-16 08:21:02 +00:00
Kurt Zeilenga
8c8ea049cb
Macro cleanup
2006-02-16 05:01:29 +00:00
Luke Howard
cc475f4bbe
Allow arbitrary exop data to be base64 encoded
...
Argument matches LDIF, ie <oid|oid:data|oid::b64data>
2006-02-11 00:51:08 +00:00
Luke Howard
97e214ac8d
Fix previous commit
2006-02-10 15:18:45 +00:00
Luke Howard
da5c17aa1e
Use : to separate OID/data in exop - will use :: for base64 encoding data
2006-02-10 08:11:53 +00:00
Luke Howard
074b1fa409
Allow passing string arguments to arbitrary extended operation
2006-02-09 05:29:45 +00:00
Luke Howard
4bae2b8db3
allow execution of arbitrary extended operations (right now there is no way
...
of passing data to them -- working on it)
2006-02-07 09:43:18 +00:00
Kurt Zeilenga
6fd5f89d8e
Don't use C comments to comment out C code
2006-01-10 00:15:56 +00:00
Pierangelo Masarati
32a33fe678
add experimental, non-advertised support for obsolete version of proxyAuthz
2006-01-09 23:06:18 +00:00
Pierangelo Masarati
ade9272561
streamline server control requests
2006-01-09 23:00:28 +00:00
Pierangelo Masarati
8d93570cdf
fix type specifier in format
2006-01-09 21:27:45 +00:00
Kurt Zeilenga
d8eace75a7
cleanup
2006-01-09 05:22:46 +00:00
Pierangelo Masarati
5640f6313a
use new paged results control client API (ITS#4314)
2006-01-08 22:49:24 +00:00
Pierangelo Masarati
57ca537d0c
rework control response handling
2006-01-08 19:51:28 +00:00
Pierangelo Masarati
6baeab011e
paged results may not be the only control response
2006-01-07 16:52:33 +00:00
Pierangelo Masarati
24374846be
fix copyright years
2006-01-06 18:25:22 +00:00
Pierangelo Masarati
339b9c371e
rfc2589 support (ITS#4293)
2006-01-06 17:46:52 +00:00
Pierangelo Masarati
b1fb7f824d
minor cleanup
2006-01-06 16:20:24 +00:00
Kurt Zeilenga
acbb5cf689
Happy new year!
2006-01-03 23:11:52 +00:00
Pierangelo Masarati
9db7874784
complain if new password is not returned when expected
2006-01-02 14:16:34 +00:00
Kurt Zeilenga
ff763d4730
return LDAP_NOT_SUPPORTED when SASL is not available
2005-12-21 22:56:45 +00:00
Kurt Zeilenga
57c7fe311e
s/LDAP_OPERATIONS_ERROR/LDAP_LOCAL_ERROR/
...
as error is local (e.g., not a protocol result code).
2005-12-15 19:36:07 +00:00
Pierangelo Masarati
d71b24d0fd
return the error code, much like the rest of the tools
2005-12-15 18:01:00 +00:00
Pierangelo Masarati
fcda57e90f
use macros instead of numbers...
2005-12-13 20:11:26 +00:00
Kurt Zeilenga
a525a24eb5
Add dontUseCopy control to ldapcompare(1) and ldapsearch(1).
...
No slapd(8) support yet.
Also removed unnecessary #ifdefs
2005-11-26 06:31:05 +00:00
Kurt Zeilenga
4297ec242a
clarify ALL
2005-11-25 07:27:38 +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
Kurt Zeilenga
2707ba1ddf
Limit use of deprecated ldap_bind(3) to LDAPv2 KBIND
2005-11-18 00:18:53 +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
Pierangelo Masarati
af23be3675
silence warnings...
2005-11-14 21:47:17 +00:00
Kurt Zeilenga
be14ac9fed
Add error number to tool_perror() output
...
Don't hardcode function name.
2005-11-10 03:23:04 +00:00
Pierangelo Masarati
1a28cc1c64
don't perror when not required
2005-11-05 12:23:17 +00:00
Kurt Zeilenga
7c8d854e19
ITS#4147 fix
...
Should replace all ldap_perror calls with tool_perror calls to
avoid use of deprecated function.
2005-11-05 00:53:19 +00:00