Commit graph

879 commits

Author SHA1 Message Date
Howard Chu
93a96ed2e7 ITS#9305 clients: print actual error from connect failure
Related to ITS#10371
2025-12-09 15:06:05 +00:00
Howard Chu
87b3f20742 ITS#10371 clients: print actual error code when ldap_result fails
Added a tool_perror2() to avoid some redundant calls.
2025-08-04 19:10:38 +00:00
Boleslaw Ciesielski
e77ab14f0c ITS#10335 ldapsearch: fix handling of -LL in print_reference()
print_reference() was printing comments even when disabled with -LL option.
2025-06-17 23:08:02 +00:00
Ondřej Kuzník
d1ca167137 ITS#10309 Check for strdup allocation failures 2025-03-04 19:41:59 +00:00
Ondřej Kuzník
6c0a44d1ec ITS#10279 Let client notify when LDAP_DEBUG is disabled but -d specified 2025-02-19 16:51:05 +00:00
Ondřej Kuzník
e29105597a ITS#10155 manage option values more carefully 2024-10-28 17:39:53 +00:00
Ondřej Kuzník
c0bd83df69 ITS#10251 cast sa when passed to getsockname 2024-08-13 09:21:15 +01:00
Howard Chu
01a1c1293b ITS#10183 ldapmodify: add jump to lineno option 2024-04-22 15:08:48 +00:00
Quanah Gibson-Mount
073232bbc7 Happy New Year! 2024-03-26 19:45:07 +00:00
Howard Chu
cf21be22dc ITS#10130 cleanup prev commit 2024-01-10 18:47:36 +00:00
Stacey Marshall
8139458b39 ITS#10130 Several callers of getpassphrase() ignore NULL returns 2024-01-10 18:47:36 +00:00
Howard Chu
bb0cd4479d ITS#10036 support IPv6 addresses in session tracking control
Connect to server first, so we know what IP address to use.
Reorder some option setup so they occur before the connection
attempt.
2023-04-24 18:50:38 +00:00
Howard Chu
7f0e4ecdaa ITS#9995 ldapdelete: plug potential search leak 2023-02-17 15:52:35 +00:00
Thomas Daniels
1c18f31d1c Remove 'h' and 'p' from options[] in client tools
The options -h and -p got removed from client tools in commit
66af4cfd5d. However, they were still
present in the options[] array in several client tools source files. So,
if one of those tools got executed with -h or -p followed by a value,
this lead to the error "unrecognized option -", without mentioning
which option was problematic. Removing 'h' and 'p' from options[] fixes
this.
2022-10-03 16:51:26 +00:00
Howard Chu
0b4098ca90 ITS#9921 fix vlvResult comment 2022-09-26 11:55:27 +01:00
Howard Chu
f60f05b7e1 ITS#9860 ldapsearch: fix control memleaks 2022-07-23 22:34:06 +01:00
Ondřej Kuzník
c07e961d40 ITS#9876 Some more leaks plugged 2022-07-08 15:45:55 +00:00
Anton Bobrov
252a7dbbd0 ITS#9737 ldapdelete unable to prune LDAP subentries 2022-03-21 16:37:08 +00:00
Quanah Gibson-Mount
788e9592ba Happy New Year! 2022-01-07 18:40:00 +00:00
Howard Chu
c5241b49af ITS#9651 ldapmodify: add -i option for interval between ops 2021-08-26 15:40:33 +01:00
Randall Mason
6285668ce5 ITS#8903 - Add option to bind early in ldappasswd
ldappasswd is slightly different from a standard passwd workflow in that it
requests an old password, then a new password, then the old password
again.  This confuses people who are used to the unix passwd tool as
well as people who use password manager.  I've seen quite a few people
who have generated a new password, overwriting the old one, and then
need a password reset because they still need to bind to modify their
password.

This patch adds an option to bind at the beginning of the process so
that you can pass '-E' to ldappasswd and it will bind early in the
process so that the process is the same as the standard passwd.  All it
does is run the bind towards the beginning of the process instead of the
end.

The attached patch file is derived from OpenLDAP Software. All of
the modifications to OpenLDAP Software represented in the following
patch(es) were developed by Randall Mason randall@mason.ch. I have not
assigned rights and/or interest in this work to any party.

I, Randall Mason, hereby place the following modifications to
OpenLDAP Software (and only these modifications) into the public domain.
Hence, these modifications may be freely used and/or redistributed for
any purpose with or without attribution and/or other notice.
2021-06-27 20:18:24 +00:00
Howard Chu
829263c454 ITS#8847 move lutil_sockaddrstr() to ldap_pvt_sockaddrstr() 2021-03-26 13:45:26 +00:00
Ondřej Kuzník
f2e6efed95 ITS#5768 Avoid extraneous newlines in deref printing 2021-03-15 16:31:55 +00:00
Ondřej Kuzník
171e0d89cd ITS#9382 ldapvc doesn't set any LDAP controls with -E 2021-03-01 10:28:53 +00:00
Quanah Gibson-Mount
ce2c5173bd ITS#9161 - Fix various typos
Fix a number of different typos across the code base
2021-02-17 18:42:46 +00:00
Quanah Gibson-Mount
fe7b161bb2 ITS#9440 - Don't set control to NULL before it's used for output. 2021-01-28 18:09:21 +00:00
Quanah Gibson-Mount
efaf9a4a17 Happy New Year! 2021-01-11 19:25:53 +00:00
Ding Fei
66254781d2 ITS #9417 ldapexop exit with correct rc value
`rc` collects exit status all the way down but is not used at all? If `code`
comparison at exit is intended then there exists some path that leaves it in
garbage value, say when `ldap_whoami` or `ldap_cancel` fails.
2020-12-04 20:00:47 +08:00
Quanah Gibson-Mount
6492012e00 Remove various unused variables 2020-11-12 18:05:59 +00:00
Quanah Gibson-Mount
66af4cfd5d ITS#8618 - Remove deprecated -h and -p options to client tools 2020-10-01 21:27:59 +00:00
Lukas Juhrich
c8ba729f84 Issue#8769 - Fix oid search extension syntax in documentation
The option string, e.g. '<oid>=:dn:' is parsed like a LDIF entry starting from
the '=' and replacing the '=' with a dummy variable 'x'.  In this case, said
string is 'x:dn:', so the resulting effective value is 'dn:'.  This also implies
that base64 values have to be passed in the form '<oid>=::<b64value>'.
2020-09-04 22:39:53 +00:00
Howard Chu
5e8a78fa6c ITS#9338 Add backlog control for testing slapd write waits 2020-09-04 20:23:44 +01:00
Fabrice Fontaine
8df03b435e ITS#9327 - Fix stripping when cross-compiling
Probably-Signed-off-by: Dave Bender <bender@benegon.com>
[yann.morin.1998@free.fr: patch was made by Dave, but he
 forgot his SoB line, so I added it]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
[Retrieved from:
https://git.buildroot.net/buildroot/tree/package/openldap/0001-fix_cross_strip.patch]
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2020-08-25 19:54:59 +00:00
Howard Chu
1a7864699c ITS#9279 Handle Netscape controls in client tools 2020-08-04 22:04:14 +00:00
Ondřej Kuzník
63440f0379 ITS#8701 Add account usability to ldapsearch 2020-07-07 16:43:37 +01:00
Howard Chu
57d5aefecf ITS#9165 Fix pageedResults cookie printing 2020-05-20 19:58:28 +01:00
Quanah Gibson-Mount
a97eed06f0 ITS#6937 - Remove unused proctitle bits 2020-04-15 19:32:28 +00:00
Kurt Zeilenga
23af2c36e2 ITS#8675 - Fix tools to not continue on TLS error
The spec says that upon StartTLS 'success', both TLS communications is
established on the octet following the Start TLS response (and the
request)... and that once one starts TLS communications, one can never
go back to LDAP without TLS. So if there's a TLS failure (whether as
part of TLS nego or later), LDAP communications cannot be continued
(without TLS).

Only ignoring LDAP errors (rc > 0) ensures that if TLS negotiation
fails, we don't attempt to send LDAP operations without TLS.
2020-03-26 18:45:00 +00:00
Ondřej Kuzník
ad2e6b3a4a ITS#8983 Fix compiler warning 2020-01-28 12:41:57 +00:00
Ondřej Kuzník
a9896e87f4 ITS#9145 Fix type signature 2020-01-28 12:41:57 +00:00
Ondřej Kuzník
341a79d88c Check transaction identifier is returned 2020-01-28 12:41:50 +00:00
Ondřej Kuzník
76c43165ea Remove LDAP_X_TXN and rename accordingly 2020-01-28 12:09:09 +00:00
Quanah Gibson-Mount
f6ad222e41 Happy New Year! 2020-01-09 16:50:21 +00:00
Ondřej Kuzník
eaabe336f3 ITS#9145 Do not add controls to cancel/abandon 2020-01-03 10:51:28 +00:00
Howard Chu
06d289f985 ITS#8983 Add draft Persistent Search 2019-02-25 15:19:33 +00:00
Ondřej Kuzník
117dcbc54d Silence compiler warnings 2019-02-19 10:28:08 +00:00
Quanah Gibson-Mount
b45a6a7dc7 Happy New Year! 2019-01-14 18:46:16 +00:00
Quanah Gibson-Mount
fb35befa9a Fixes windows build with new MS AD sync Add CLIENT_LIBS for libraries required to build the clients. 2019-01-02 15:44:20 +00:00
Thorsten Glaser
e0a7049ee5 ITS#8890 fix benign typos
No functional impact
2018-12-18 22:56:18 +00:00
Howard Chu
18e0bcb7de Add MS AD persistent search ctrl 2018-12-13 05:44:46 -08:00