Dmitry Timoshkov
923f7246be
advapi32: Use larger buffers for domain names.
...
Otherwise GetComputerNameExW(ComputerNamePhysicalDnsDomain) and
GetComputerNameExW(ComputerNameDnsDomain) fail if the names don't
fit into MAX_COMPUTERNAME_LENGTH characters.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-29 16:06:03 +02:00
Dmitry Timoshkov
411ccfb921
advapi32: Also initialize DnsDomainName and DnsForestName in LsaQueryInformationPolicy.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-02 16:19:43 +01:00
Dmitry Timoshkov
eb077e9fac
advapi32: Return correct short domain name.
...
Also remove suffix and uppercase the returned name as Windows does.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-02 16:19:43 +01:00
Dmitry Timoshkov
a3bcaca48d
advapi32: Use GetWindowsAccountDomainSid() to retrieve the domain SID.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-02 16:19:43 +01:00
Dmitry Timoshkov
09cd27871b
advapi32: Initialize more fields in LsaQueryInformationPolicy(PolicyDnsDomainInformation).
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-01 19:25:56 +01:00
Michael Müller
badcabc188
advapi32: Added a stub for LsaLookupPrivilegeDisplayName().
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-03 09:53:15 +01:00
Nikolay Sivov
2c8427e0dc
advapi32: Partially implement LsaLookupPrivilegeName().
...
Based on patch by Michael Müller.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-03 09:53:13 +01:00
Alex Henrie
252385db7f
advapi32: Add stub for LsaLookupPrivilegeName.
...
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-20 17:44:34 +02:00
Owen Rudge
02ad092868
advapi32: Return null-terminated buffer instead of null pointer for LsaLookupSids domains.
...
Signed-off-by: Owen Rudge <orudge@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-03 19:05:09 +01:00
Hans Leidekker
67e1cf839a
advapi32: Return success from LsaAddAccountRights.
2014-11-04 21:19:35 +09:00
Nikolay Sivov
b60a2710f8
advapi32: Use heap helpers in security code.
2014-08-27 19:23:04 +02:00
Nikolay Sivov
397c2200a6
advapi32: Allocate temporary name buffer once.
2013-04-29 13:33:54 +02:00
Nikolay Sivov
bc52f1c029
advapi32: Fix allocation length for domain list (Valgrind).
2013-04-29 13:33:54 +02:00
Nikolay Sivov
f8aabe2247
advapi32: Fix LsaLookupNames2() regarding referenced domain list allocation.
2013-01-21 12:51:13 +01:00
Nikolay Sivov
af641dc94c
advapi32: Make it possible to free data buffer returned from LsaLookupSids().
2013-01-21 12:51:13 +01:00
Andrew Eikum
ac615a7e9a
advapi32: Consolidate helper function.
2012-09-14 12:03:01 +02:00
Huw Davies
e8859699e8
advapi32: Fix incorrect pointer increment.
2011-05-05 16:31:58 +02:00
Hans Leidekker
837fc836aa
advapi32: Use a fixed computer SID that matches local user SIDs.
2011-03-02 12:50:59 +01:00
Hans Leidekker
ee18ead545
advapi32: Fix a buffer size query in LsaLookupSids.
2010-10-06 20:46:47 +02:00
Alexandre Julliard
ffb29fd335
advapi32: Fix Unicode string lengths in LsaLookupSids.
...
Found by Louis Lenders.
2010-06-10 11:23:35 +02:00
Gerald Pfeifer
0351f56e67
advapi32: Remove variable ret which is not really used from LsaLookupNames2.
2010-04-26 07:02:56 -05:00
Aric Stewart
6308f40da7
advapi32: Fill the PLSA_REFERENCED_DOMAIN_LIST parameters for LsaLookupNames2 and LsaLookupSids.
2009-10-01 15:39:58 +02:00
Aric Stewart
caf66f0fe2
advapi32: Implement LsaLookupSids.
2009-09-24 16:04:24 +02:00
Alexandre Julliard
4f71d33dfa
advapi32: Fix sid pointer calculation in LsaLookupNames2.
2009-08-18 13:23:38 +02:00
Hans Leidekker
bf021af0ee
advapi32: Add a basic implementation of LsaLookupNames2.
2009-08-07 11:39:43 +02:00
Hans Leidekker
508322a8bf
advapi32: LsaFreeMemory returns NTSTATUS.
2009-08-04 15:25:12 +02:00
Ge van Geldorp
dcf4a9903b
advapi32: Set values to 0 in LsaEnumerateAccountRights.
2009-06-16 13:40:31 +02:00
Kai Blin
b740819e30
advapi32: Implement LsaSetSecret stub.
2008-11-11 14:03:00 +01:00
Andrew Talbot
3b695ae33a
advapi32: Constify some variables.
2007-03-12 12:01:17 +01:00
Andrew Talbot
d05fabb660
advapi32: Eliminate wild pointers.
2006-12-05 11:37:57 +01:00
Eric Pouech
5425cb35ed
advapi32: Fixed a couple items from previous patch (spotted by G Pfeifer).
2006-10-23 12:27:12 +02:00
Eric Pouech
4dfd319dbf
advapi32: Plug a couple of memory leaks.
2006-10-20 13:49:50 +02:00
Hans Leidekker
4301816d47
advapi32: Win64 printf format warning fixes.
2006-10-03 16:21:58 +02:00
Robert Reif
b0498a76e0
advapi32: Move duplicated code into function.
2006-08-14 20:17:09 +02:00
Robert Reif
1b8cfc5151
advapi32: Add a computer SID to the registry.
2006-08-04 12:04:06 +02:00
Robert Reif
0424424e34
advapi32: LsaQueryInformationPolicy: do the right thing for both domains and accounts.
2006-08-02 11:42:10 +02:00
Robert Reif
3879fef21d
advapi32: LsaQueryInformationPolicy update.
...
Update LsaQueryInformationPolicy to use correct computer name and SID.
Add support for PolicyDnsDomainInformation.
2006-08-01 11:01:04 +02:00
Robert Reif
3f000d8c71
advapi32: Make ADVAPI_IsLocalComputer global and remove duplicate copy.
...
Make debugstr_sid global.
2006-07-31 11:15:21 +02:00
Robert Reif
9733f6e75c
advapi32: Fix LsaQueryInformationPolicy HeapAlloc bug.
2006-07-12 13:15:44 +02:00
Jonathan Ernst
360a3f9142
Update the address of the Free Software Foundation.
2006-05-23 14:11:13 +02:00
Robert Reif
b871ac4ff1
advapi32: Fix LsaClose return value.
2006-05-05 17:31:10 +02:00
Robert Reif
d2a59d86d9
advapi32: Fix LsaQueryInformationPolicy return values.
2006-04-21 11:28:18 +02:00
Hans Leidekker
93676b10c6
advapi32: Add stub implementations for a bunch of documented Lsa APIs.
2006-03-13 14:18:29 +01:00
Ge van Geldorp
1a1583a364
Match PSDK STATUS_* definitions.
2005-11-28 17:32:54 +01:00
Paul Vriens
e6b0dc2a2f
Return a real error in LsaLookupSids.
2005-11-24 19:22:30 +01:00
Francois Gouget
28dc5a8afc
Assorted spelling fixes.
2005-07-11 10:59:41 +00:00
James Hawkins
fb46998825
Branch the LSA functions from security.c to lsa.c.
2005-07-06 10:37:50 +00:00