Commit Graph

257 Commits

Author SHA1 Message Date
Hans Leidekker 5d0b23be22 wldap32: Build without -DWINE_NO_LONG_TYPES.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-15 16:34:16 +01:00
Eric Pouech d1265abbc4 wldap32: Use correct integral type.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-04 11:20:34 +01:00
Eric Pouech 25946b4814 wldap32: Fix compilation in 32-bit.
32-bit compilation has been broken by 8db1662d74.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-02-04 11:20:31 +01:00
Alexandre Julliard f0cd33c69e include: Add support for defining Win32 types as 'long' where possible.
Add -DWINE_NO_LONG_TYPES to modules that still have compilation
warnings with long types.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2022-01-27 20:38:22 +01:00
Alex Henrie 3f2458996c wldap32: Fix memory leak on error path in create_page_control (cppcheck).
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-12-21 10:31:29 +01:00
Alexandre Julliard b2009d02c3 wldap32: Convert the Unix library to the __wine_unix_call interface.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-04 17:54:34 +01:00
Alexandre Julliard 3cc3dd78e1 wldap32: Avoid returning pointers from the Unix interface functions.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-04 17:54:34 +01:00
Alexandre Julliard cefd34fbda wldap32: Don't use varargs functions in the Unix library interface.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-04 17:54:34 +01:00
Alexandre Julliard 449fae545c wldap32: Move the SASL callback to the Unix side.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-04 17:54:34 +01:00
Alexandre Julliard 5d78033a90 wldap32: Use the standard va_list instead of __ms_va_list.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-22 11:25:55 +02:00
Alexandre Julliard 088a787a2c makefiles: Make -mno-cygwin the default.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-20 22:45:48 +02:00
Francois Gouget efdd07ae3d wldap32: Make the wrap_*() functions static.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-08-26 21:49:09 +02:00
Andrey Gusev 78866a7b87 wldap32: Remove redundant 'break' statement.
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-20 21:07:10 +02:00
Hans Leidekker 885c480d2e wldap32: Avoid a crash with tracing on.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-20 21:07:10 +02:00
Hans Leidekker fb44267803 wldap32: Fix parsing page controls.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-20 21:07:10 +02:00
Hans Leidekker 8db46756ca wldap32: Get rid of the WLDAP32_ prefix.
We can now include the public header without conflicts.

Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-19 20:08:48 +02:00
Hans Leidekker 81e418efaf wldap32: Use wide character string literals.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-19 20:08:48 +02:00
Hans Leidekker 8a52b16e0d wldap32: Use CRT memory allocators.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-19 20:08:48 +02:00
Hans Leidekker e5f1c0f7fc wldap32: Build with msvcrt.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-19 20:08:48 +02:00
Hans Leidekker aa9f3e6e96 wldap32: Get rid of wldap32.h.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-19 20:08:48 +02:00
Hans Leidekker 5a236e55c3 wldap32: Don't depend on libldap for the value functions.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-19 20:08:48 +02:00
Hans Leidekker 91355dae93 wldap32: Move support for rename functions to the Unix library.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-19 20:08:48 +02:00
Hans Leidekker 274e399121 wldap32: Move support for parse functions to the Unix library.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-19 20:08:48 +02:00
Huw Davies 4bdf8f928a wldap32: Remove unnecessary test of sortkey.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-16 22:39:46 +02:00
Hans Leidekker 1c5b3f2001 wldap32: Move support for page functions to the Unix library.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-16 11:13:21 +02:00
Hans Leidekker da4d701bb7 wldap32: Move support for option functions to the Unix library.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-16 11:13:21 +02:00
Hans Leidekker d48a9495ce wldap32: Move support for modrdn functions to the Unix library.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-16 11:13:21 +02:00
Hans Leidekker 512a51825f wldap32: Move support for modify functions to the Unix library.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-16 11:13:21 +02:00
Hans Leidekker b2ac9f4b75 wldap32: Move support for init functions to the Unix library.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-16 11:13:21 +02:00
Hans Leidekker b0f347b4fc wldap32: Move support for extended functions to the Unix library.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-15 17:31:52 +02:00
Hans Leidekker e21c9596d3 wldap32: Move support for dn functions to the Unix library.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-15 17:31:50 +02:00
Hans Leidekker 22b26a20dc wldap32: Move support for search functions to the Unix library.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-15 17:31:48 +02:00
Hans Leidekker 0f3f49e12c wldap32: Move support for error functions to the Unix library.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-15 17:31:45 +02:00
Hans Leidekker d8a2463abc wldap32: Move support for delete functions to the Unix library.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-15 17:31:40 +02:00
Hans Leidekker 5bf1900dd0 wldap32: Move support for control functions to the Unix library.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-14 17:04:35 +02:00
Hans Leidekker e32a6026a3 wldap32: Move support for compare functions to the Unix library.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-14 17:04:35 +02:00
Hans Leidekker db26894eee wldap32: Move support for bind functions to the Unix library.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-14 17:04:35 +02:00
Hans Leidekker 1114f2970d wldap32: Move support for ber functions to the Unix library.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-14 17:04:35 +02:00
Hans Leidekker 1805b3a1fc wldap32: Move support for add functions to a new Unix library.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-14 17:04:35 +02:00
Hans Leidekker 842987cd12 wldap32/tests: Add ber_printf/scanf tests.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-06 22:46:12 +02:00
Hans Leidekker 62721a7db3 include: Remove functions declarations from winldap.h that don't exist in the native header.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-04-06 22:46:12 +02:00
Michael Stefaniuc 35ee15eab3 wldap32: Remove redundant NULL check before heap_free().
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-15 10:51:07 +01:00
Damjan Jovanovic 99fb4b17f3 wldap32: Implement setting the LDAP_OPT_REFERRALS option.
Signed-off-by: Damjan Jovanovic <damjan.jov@gmail.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-02-23 10:02:09 +01:00
Hans Leidekker 0631cecd52 wldap32: Convert berval structures.
The layout is different on 64-bit. As a side effect this patch fixes bug 50622
because we no longer include the Windows header.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=50622
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-02-08 20:09:49 +01:00
Damjan Jovanovic a4199fa255 wldap32: Cyrus SASL's sasl_interact_t.result should be null-terminated.
Sometimes AD authentication fails as LDAP packets have garbage
characters trailing the username. Reading its source code confirms
that Cyrus SASL often completely ignores the sasl_interact_t.len field,
and expects sasl_interact_t.result to be null-terminated.

Signed-off-by: Damjan Jovanovic <damjan.jov@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-02-05 15:38:22 +01:00
Hans Leidekker be34e08a87 wldap32: Properly initialize the context in ldap_sslinitW.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-01-19 21:44:18 +01:00
Michael Stefaniuc 981da1d50d wldap32/tests: Use wide-char string literals.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-12-14 12:20:39 +01:00
Dmitry Timoshkov 3c7fddbcae wldap32: Set count and result to 0 when returning LDAP_NO_RESULTS_RETURNED.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-20 12:49:10 +02:00
Dmitry Timoshkov 82bcbcc549 wldap32/tests: Add a test for LDAP paged search.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-20 12:49:10 +02:00
Dmitry Timoshkov 75f27dbe6e wldap32: Implement ldap_get_next_page_s.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-17 14:15:12 +02:00