Commit Graph

204 Commits

Author SHA1 Message Date
Dmitry Timoshkov 6df25aafbb wldap32: Fix server controls lookup logic.
This fixes 'supported == user_count' comparison if the server has duplicate
control OIDs in the returned list.

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-06 21:21:42 +02:00
Dmitry Timoshkov 07b18a7672 wldap32: Locally cache "supportedControl" rootDSE attribute, and check it in ldap_set_option(LDAP_OPT_SERVER_CONTROLS).
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-03 17:02:12 +02:00
Dmitry Timoshkov 57cb1900b6 wldap32: Actually use private LDAP structure for internal storage.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-03 17:02:03 +02:00
Dmitry Timoshkov 4ebd194694 wldap32/tests: Test setting a not supported server control.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-03 17:01:32 +02:00
Dmitry Timoshkov 02d266adfd wldap32: Fix compilation without LDAP installed.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=48838
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-30 23:10:06 +02:00
Dmitry Timoshkov 3c3d0f6f00 wldap32: Handle NULL return in ldap_get_values_lenW.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-24 12:36:06 +01:00
Dmitry Timoshkov 364ac6787a wldap32: Add support for ldap_bind_s(LDAP_AUTH_NEGOTIATE).
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-24 12:36:01 +01:00
Dmitry Timoshkov 56c1590dfe wldap32/tests: Add ldap_bind_s test.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-03-17 10:22:53 +01:00
Gerald Pfeifer c6e45649fe wldap32: Define a debug channel only when we are using it.
Signed-off-by: Gerald Pfeifer <gerald@pfeifer.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-10 22:46:24 +01:00
Conor McCarthy 02feb30b0e wldap32: Use ldap_memvfree() to free array allocated by libldap.
Signed-off-by: Conor McCarthy <cmccarthy@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-05 20:14:10 +02:00
Martin Liska 9afc341c4f include: Avoid compound literals for WCHAR strings.
Starting from GCC 9, compound liferal's scope has changed:
https://www.gnu.org/software/gcc/gcc-9/porting_to.html#complit

Signed-off-by: Martin Liska <mliska@suse.cz>
Signed-off-by: Marcus Meissner <meissner@suse.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-12 11:44:26 +02:00
Piotr Caban db2f338bcc wldap32: Don't use strcasecmp.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-29 21:25:24 +01:00
Michael Stefaniuc 480236c45d wldap32: Use the ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-14 10:16:02 +02:00
Hans Leidekker 7de7f9af9f wldap32: Use the global memory allocation helpers.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-20 20:13:27 +01:00
Alexandre Julliard 70e02ce73c wldap32: Use WINAPIV calling convention for variadic functions.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-02 10:16:27 +01:00
Hans Leidekker accdabadba wldap32: Create version 3 contexts by default.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-05 10:34:27 +02:00
Alexandre Julliard ae3adacdde configure: Allow specifying custom CFLAGS for LDAP.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-24 18:58:31 +02:00
Francois Gouget 9743328859 wldap32: Add an error message and an explanation for the lack of error constants.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-10 21:38:55 +01:00
Carlo Bramini c7e46b781a wldap32: Use return value of sprintf() instead of hardcoding the number of written characters.
Signed-off-by: Carlo Bramini <carlo_bramini@users.sourceforge.net>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-11-14 11:07:09 -06:00
Nikolay Sivov d4d3bacac4 wldap32: Properly implement ldap_encode_sort_control[A, W] (Coverity).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-23 23:35:19 +09:00
Thomas Faber 59607a4c09 wldap32: Add missing const to ldap_init definitions.
Signed-off-by: Thomas Faber <thomas.faber@reactos.org>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-30 20:17:24 +09:00
Hans Leidekker 165081e53c wldap32/tests: Skip tests if the connection times out. 2014-04-01 13:31:00 +02:00
Alexandre Julliard cf0e96c6d0 configure: Rename substituted variables to a standard _CFLAGS and _LIBS format. 2014-01-30 14:51:33 +01:00
Alexandre Julliard 99ef0d6ff0 makefiles: Get rid of the MAKE_TEST_RULES variable. 2014-01-02 12:13:16 +01:00
Alexandre Julliard 5e7416e5c8 makefiles: Get rid of the MAKE_DLL_RULES variable. 2014-01-02 12:08:18 +01:00
Alexandre Julliard 4f3d71cef3 makefiles: Get rid of the no longer used PO_SRCS variables. 2013-12-15 10:23:04 +01:00
Alexandre Julliard 5756ee09f3 makefiles: Add makedep pragmas for rc files that contain translations. 2013-11-05 20:38:19 +01:00
Hans Leidekker 0994781df6 wldap32/tests: Compile with -D__WINESRC__. 2013-10-14 16:05:31 +02:00
Frédéric Delanoy 8610acde5c wldap32: Use BOOL type where appropriate. 2013-10-02 11:06:34 +02:00
Michael Stefaniuc 0e681027a2 tests: Compile the tests by default with -D__WINESRC__. 2013-10-02 11:04:02 +02:00
Alexandre Julliard f02cdd877f Remove empty DLL_PROCESS_DETACH case statements. 2013-04-15 16:45:35 +02:00
Francois Gouget 3bbf585b5c wldap32: An English (United States) spelling fix. 2012-05-04 18:07:24 +02:00
Charles Davis ad72c422ff wldap32: Silence a compiler warning. 2011-10-10 13:40:42 +02:00
Alexandre Julliard e04866f3cf wldap32: Include system headers before Windows headers. 2011-09-05 19:32:32 +02:00
Frédéric Delanoy 7e309601f3 dlls: Assorted spelling fixes. 2011-08-03 14:15:50 +02:00
Marcus Meissner b122ac9c07 wldap32: Mark internal symbols with hidden visibility. 2011-05-26 13:31:08 +02:00
Hans Leidekker 95a5e9eba1 wldap32: Accept a NULL value in ldap_set_option. 2011-03-29 15:41:16 +02:00
Alexandre Julliard d1d494b3db wldap32: Convert translations to po files. 2011-01-06 17:57:43 +01:00
André Hentschel 08400e9dd7 wldap32/tests: Fix skipping if server is unavailable. 2010-11-29 19:51:28 +01:00
Paul Vriens 3d3ab1cb54 wldap32: Add the Serbian (Latin and Cyrillic) translation.
Translation by Đorđe Vasiljević.
2010-10-26 11:56:50 +02:00
Alexandre Julliard 81b8ee863e makefiles: Add a standard header for all makefiles to replace the common variable initializations. 2010-09-19 12:36:48 +02:00
Luca Bennati 1f30199d29 wldap32: Update Italian translation. 2010-09-09 19:56:36 +02:00
Paul Vriens 75c5484174 dlls: Fix some specfiles with respect to 'str' and 'wstr' usage. 2010-09-09 14:57:44 +02:00
Hans Leidekker 3fbf6bdf11 wldap32: Fix handling of zero timeout value in ldap_search_extW.
Based on a patch by Adam Romanek.
2010-08-18 15:31:56 +02:00
Michael Stefaniuc 11cb39f1af wldap32: Remove the ignored common resource attributes. 2010-07-22 11:41:37 +02:00
Alexandre Julliard b86d515ed6 dlls: Remove explicit imports of kernel32 and ntdll. 2010-07-21 17:38:36 +02:00
Michael Stefaniuc 2fae3e0ee9 wldap32: Add the Romanian translation.
Translation by Claudia Cotună.
2010-07-14 11:43:07 +02:00
Gustavo Henrique Milaré b7f91654be wldap32: Update Portuguese (Brazilian) translation. 2010-07-02 12:18:12 +02:00
Kovács András 53828fa0e7 wldap32: Add Hungarian translation. 2010-06-29 10:54:16 +02:00
Igor Paliychuk 74f88f2933 wldap32: Ukrainian translation update. 2010-06-28 11:43:40 +02:00