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
Dmitry Timoshkov
df46f513cb
wldap32: Implement ldap_get_paged_count.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-17 14:15:12 +02:00
Dmitry Timoshkov
35b7856d50
wldap32: Implement ldap_search_abandon_page.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-17 14:15:12 +02:00
Dmitry Timoshkov
6e459129e7
wldap32: Implement ldap_search_init_pageW.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-17 14:15:12 +02:00
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