Commit Graph

820 Commits

Author SHA1 Message Date
Thomas Cort
590378edca ITS#8118 dosearch: flush stdout
The LDIF output wasn't being explicitly flushed. In certain scenarios,
such as piping the output of a persistent ldapsearch to node.js v0.12
on Mac OS X 10.10.3, the output is unavailable to the process
consuming the search results until the stdio buffer fills (8192 bytes
for example). This can leave the tail end of persistent search results
in the buffer for a long time (until enough output has accumulated).

Explicitly call flush so that the output is immediately available.
2015-04-29 20:01:03 +01:00
Quanah Gibson-Mount
1705fa7e55 Happy New Year 2015-02-11 15:36:57 -06:00
Howard Chu
a69da18849 plug benign leak (coverity) 2015-01-13 19:59:41 +00:00
Howard Chu
97d6a4fe3e Fix unused fprintf arg (coverity) 2015-01-13 19:23:51 +00:00
Howard Chu
568dc87dbd ITS#7871 more for LDIF wrap
Clients should just use 0 for default wrap, and let libldif
take care of it.
2014-06-13 10:08:07 -07:00
Kurt Zeilenga
5c878c1bf2 Happy new year (belated) 2014-01-25 05:21:25 -08:00
Stef Walter
5c91989477 ITS#7695 Fix ldapsearch regression with CLDAP
Don't try to parse the result of a CLDAP bind request. Since these are
faked, no message is actually returned.
2013-10-10 10:53:27 -07:00
Howard Chu
461db2de1a ITS#7497 fix lineno overflow in ldif_read_record() 2013-01-23 02:19:02 +00:00
Kurt Zeilenga
0fd1bf30b8 Happy New Year 2013-01-02 10:22:57 -08:00
W. Trevor King
5cf4fbc74d ITS#7271 Don't clobber SASL_NOCANON in clients/tools/common.c 2012-05-30 09:39:54 -07:00
Jan Vcelak
4685391f8f ITS#7177 doc updates, further cleanup needed 2012-02-23 15:49:13 -08:00
SATOH Fumiyasu
1542d29a99 ITS#7152 Add missing '>' in tools help message 2012-02-23 14:48:32 -08:00
Hallvard Furuseth
25eb3dc534 ITS#7156 ldapsearch.c: #include <ac/time.h>.
Needed since e080ba6e9d, ITS#7009.
2012-02-07 16:46:39 +01:00
Hallvard Furuseth
b1646fea2f Makefile.in: Cleanup ldvversion.c (ldapvc version) 2012-02-07 16:10:58 +01:00
Kurt Zeilenga
2bbf9804b9 Happy New Year! 2012-01-01 07:10:53 -08:00
Hallvard Furuseth
ef76d419ec ITS#6548,#7092 Unbind,cleanup before client exit.
Gets rid of "(connection lost)" in slapd statslog "closed" message.
2011-11-20 13:52:40 +01:00
Hallvard Furuseth
26d881a93c Fix uninitialized variable in ldapmodify.
Introduced by 3a46af398c.
2011-11-20 13:52:07 +01:00
Pierangelo Masarati
58255ab250 further cleanup of ldapsearch response 2011-08-22 11:19:30 -06:00
Pierangelo Masarati
71eda709c6 referral is a legitimate result 2011-08-22 11:19:30 -06:00
Pierangelo Masarati
72e8a15068 make sure size limits are passed to ldapsearch 2011-08-22 11:19:30 -06:00
Pierangelo Masarati
d75803ed3f use ldap_search_ext(timelimit) instead of ldap_set_option(LDAP_OPT_TIMELIMIT) (related to ITS#7009) 2011-08-11 12:16:01 +02:00
Pierangelo Masarati
e080ba6e9d honor TIMEOUT when appropriate (ITS#7009); also honor timelimit (was broken) 2011-08-10 22:40:49 +02:00
Howard Chu
d76be4828c ITS#6977 fix verbose check in client tools 2011-06-23 17:10:37 -07:00
Howard Chu
3fcf2b163b ITS#6946 fix double-free, broken by 77a7ef0 2011-06-03 19:31:29 -07:00
Pierangelo Masarati
d7a8eff546 check security-related incompatible args (ITS#6849) 2011-03-02 14:14:39 +00:00
Hallvard Furuseth
11e2ac526c Fix last ldapwhoami commit.
Ensure message is initialized before freeing it.
2011-02-02 22:48:12 +00:00
Howard Chu
a7e0c6cd2e ITS#6755 pagedresults loop was accessing a closed FILE*. 2011-02-01 05:24:53 +00:00
Pierangelo Masarati
f4ededc49a do not #ifdef LDAP_CONTROL_AUTHZID_REQUEST; it's standard track 2011-01-08 12:50:11 +00:00
Pierangelo Masarati
9f8adeb289 make sure cred is freed 2011-01-08 12:49:38 +00:00
Pierangelo Masarati
cef31a77a7 make sure msg is freed 2011-01-08 12:49:21 +00:00
Kurt Zeilenga
be897b6679 Outline SASL interactive API (no meat) 2011-01-06 18:37:23 +00:00
Pierangelo Masarati
12cee3bfcb plug leak on usage() 2011-01-05 23:00:51 +00:00
Pierangelo Masarati
d82a1127d0 allow clients to set USERNAME in session tracking control request (6779); plug minor leaks 2011-01-05 22:54:20 +00:00
Kurt Zeilenga
966cef8c9a Happy New Year 2011-01-05 00:42:37 +00:00
Pierangelo Masarati
674ada062f plug one time leak (this time should be correct; ITS#6778) 2011-01-04 23:17:42 +00:00
Pierangelo Masarati
98be1e240c revert previous commit (ITS#6777) 2011-01-04 22:34:22 +00:00
Pierangelo Masarati
c4da17093d cleanup 2011-01-04 21:45:43 +00:00
Pierangelo Masarati
f8761cfebb plug minor leak 2011-01-04 18:45:21 +00:00
Pierangelo Masarati
31199e1847 cleanup controls logging in LDIF mode (-L[L[L]], ITS#6775) 2011-01-04 18:20:04 +00:00
Pierangelo Masarati
2ae62e86bc add generic support for RFC 3829 authzid control (bauthzid) 2011-01-04 16:03:31 +00:00
Pierangelo Masarati
e2440ccb00 fix previous commit 2011-01-04 01:02:12 +00:00
Pierangelo Masarati
180ad95b16 quick fix; needs work 2011-01-04 00:08:12 +00:00
Pierangelo Masarati
a2df1c60ff fix previous commit 2011-01-03 23:37:48 +00:00
Kurt Zeilenga
4e515a8a65 Add VC support for ppolicy and authzid inner controls 2011-01-03 22:54:48 +00:00
Kurt Zeilenga
37dcb1d791 Remove authzid parameter from verify credential response.
If client wants authzid, it can ask by adding an Authorization Identity
Request inner control.
2011-01-03 22:05:23 +00:00
Kurt Zeilenga
7f4c7ebc1c Extend Verify Credentials encode/decode per -devel post.
(ldapvc doesn't yet request/handle inner password policy control.
2011-01-03 21:49:26 +00:00
Pierangelo Masarati
59b220506d more about ITS#6645 2011-01-01 20:50:00 +00:00
Hallvard Furuseth
77a7ef0adf Plug one-time LDAPMessage leak 2010-12-20 12:39:48 +00:00
Hallvard Furuseth
78a0be6a42 Plug memory leaks 2010-12-20 10:51:14 +00:00
Kurt Zeilenga
0d15e145be Add basic client 2010-12-15 01:41:30 +00:00