1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-04 05:18:06 +03:00
Commit Graph

2182 Commits

Author SHA1 Message Date
Stefan Metzmacher
78e29c0491 r2952: add idl and torture test for DsCrackNames
(I need to find out what the fields mean but it works)

metze
(This used to be commit eff51fc623)
2007-10-10 12:59:51 -05:00
Andrew Tridgell
0bd8d427d0 r2951: fixed the intptr_t test for discard_const()
(This used to be commit 3318cf2722)
2007-10-10 12:59:51 -05:00
Andrew Tridgell
2475863ce7 r2950: 0x40000 is clearer than 262144
(This used to be commit c17d9254d4)
2007-10-10 12:59:51 -05:00
Andrew Tridgell
7c9e113f1d r2949: added some range checks in samr.idl
(This used to be commit 8921e34f98)
2007-10-10 12:59:50 -05:00
Andrew Tridgell
8d0f79595b r2948: added support for the [range(low,high)] attribute in pidl. This allows
range checking of any integer value, to help protect against denial of
service attacks (which could otherwise cause large memory allocations)
(This used to be commit dbe6430d78)
2007-10-10 12:59:50 -05:00
Andrew Tridgell
2003ab2598 r2941: added pvfs_flush() implementation to the posix backend
(This used to be commit dac00ef3b0)
2007-10-10 12:59:50 -05:00
Jelmer Vernooij
7c31786a0d r2940: Complain when there is an attempt to register a backend for a subsystem that does
not (yet) exist
(This used to be commit 0130713fbe)
2007-10-10 12:59:50 -05:00
Jelmer Vernooij
8d656e9faa r2939: Use /* */ style comments
(This used to be commit c5d4fae3b1)
2007-10-10 12:59:50 -05:00
Jelmer Vernooij
ae0aa86039 r2938: Use IDL to dissect the RHS of floors in protocol towers
(This used to be commit 273d0049b5)
2007-10-10 12:59:50 -05:00
Jelmer Vernooij
f2657b2cb1 r2937: Make sure all memory is initialized
(This used to be commit edf28c42f3)
2007-10-10 12:59:50 -05:00
Andrew Tridgell
59d3259171 r2934: - changed the unixuid module to use the nt_user_token instead of the server supplied info structure.
- added SID_WORLD and SID_NETWORK to the foreign sids in the
  provisioning, as these are auto-added to the nt_user_token (why is
  that done? Andrew?)
(This used to be commit 1dff12fba8)
2007-10-10 12:59:49 -05:00
Jelmer Vernooij
2e8b3926c6 r2933: Only pull a union once when it occurs in a subcontext
(This used to be commit 309623447e)
2007-10-10 12:59:49 -05:00
Andrew Tridgell
94c18cd1a3 r2932: character expansion in strlower_m or strupper_m is considered fatal
(as it could cause a overflow). Print a message giving the character
values involved in the expansion so it can be debugged if it happens.
(This used to be commit 2a6f59f376)
2007-10-10 12:59:49 -05:00
Andrew Tridgell
2ec58445ca r2931: use next_codepoint() to ensure we properly handle multi-byte characters in pvfs_unix_path()
(This used to be commit 0acf95d84c)
2007-10-10 12:59:49 -05:00
Andrew Tridgell
ca23572f70 r2930: added a security context cache to the unixuid module. The module
doesn't actually leave us in the requested sec context between
requests yet, but it does prevent us from doing the samdb lookup on
every packet.

This change speeds up the BASE-MANGLE test against Samba4 with 5000
operations from 61 seconds to 16 seconds. For reference, Samba3 takes
27 seconds for the same test (the string and filename handling in
Samba4 is much more efficient than Samba3)
(This used to be commit da0481ac75)
2007-10-10 12:59:49 -05:00
Andrew Tridgell
a1abaa6ba9 r2929: longhorn does not produce sorted directory listings! This is
excellent, as it means we don't lose any compatibility by also not
giving sorted listings. I was very much afraid that applications had
begun to rely on this (as its guaranteed by w2k NTFS).

no longer mark a non-sorting server as an error
(This used to be commit 1d21c9a9d1)
2007-10-10 12:59:49 -05:00
Andrew Tridgell
4962d9d03e r2928: - fixed the handling of reserved names (rejecting them with ACCESS_DENIED)
- don't check for '.' specially in checking for legal names. Longhorn
  doesn't do this any more, and its a real pain. Longhorn allows for
  filenames ending in '.', and with as many '.' elements as you like.
(This used to be commit 0a475175c5)
2007-10-10 12:59:49 -05:00
Andrew Tridgell
52f525c104 r2927: imported the hash2 name mangling code from Samba3 into Samba4, but
heavily modified to suit the Samba4 architecture.

Samba4 with posix backend now passes the BASE-MANGLE test
(This used to be commit ed52d69e8a)
2007-10-10 12:59:49 -05:00
Andrew Tridgell
c7130b816b r2926: name->dos.attrib is not valid unless name->exists is true
(This used to be commit f85a0b725d)
2007-10-10 12:59:48 -05:00
Andrew Tridgell
08edfb3283 r2925: added the definition for a new rpc fault code I am seeing on epmapper from lhorn
(This used to be commit 9ef399a769)
2007-10-10 12:59:48 -05:00
Jelmer Vernooij
1bf52be31e r2922: Add note about 'server-side' binding strings
(This used to be commit 666611d034)
2007-10-10 12:59:48 -05:00
Jelmer Vernooij
e2d27b9d23 r2921: Add a few more protocols and fix the numbers associated with some of
the current ones. It took me three hours to realise that the DCOM standard
contains false protocol numbers (apparently someone converted the protocol
numbers to hex twice, i.e. 13 -> 0c and 14 to 0d). There are no longer
duplicates in the list with protocol numbers now.
(This used to be commit f355cd4264)
2007-10-10 12:59:48 -05:00
Jelmer Vernooij
8e1ffff226 r2920: Support passing a handle to a SAMR pipe to a RPC Binding or Select
Host dialog so that one can select a domain from the list of known
domains.
(This used to be commit 5e0bab8911)
2007-10-10 12:59:48 -05:00
Andrew Tridgell
4d69d2d52b r2916: longhorn client doesn't bother setting the directory bit in ntcreatex
when opening directories. This change allows samba4 server to work
with longhorn client.
(This used to be commit 4a8b0302ef)
2007-10-10 12:59:48 -05:00
Jelmer Vernooij
8caf54869e r2915: Open domain first before enumerating users and groups
(This used to be commit 9560a6c8cc)
2007-10-10 12:59:47 -05:00
Jelmer Vernooij
fe8aaa5d07 r2914: ... and support enumerating values (data is not handled yet, only the names)
(This used to be commit b3bc055ac7)
2007-10-10 12:59:47 -05:00
Jelmer Vernooij
aed95ba66f r2913: - Don't print hive name if it is NULL (regtree)
- Initialise hive name (reg_interface)
- Fix LDB backend (enumerating keys works now!)
(This used to be commit 5086d6b249)
2007-10-10 12:59:47 -05:00
Volker Lendecke
b33be58874 r2912: Test for the sort-of weird file stamp semantics. The last_write seems to be
updated only by an arbitrary close() after the file was actually written to.

Volker
(This used to be commit ab52ebfdcc)
2007-10-10 12:59:47 -05:00
Jelmer Vernooij
6df5d77c89 r2911: Fix bug in opening relative keys
(This used to be commit e7c256a92c)
2007-10-10 12:59:47 -05:00
Andrew Tridgell
d186e63b01 r2910: I noticed that the samr torture test was doing its own DOS->UNIX
string conversion. For RPC, all string conversions are supposed to be
done by the NDR layer, using string flags set in the IDL. The reason
this wasn't working is that I had been too lazy to do the STR_ASCII
string types properly at the NDR layer when initially writing
ndr_basic.c.

This commit fixes the ndr_basic code properly to do all ASCII
varients, by re-using the non-ascii code and a "byte_mul" local
variable. I have also removed the manual string conversion in the SAMR
torture test code.
(This used to be commit aad0e7e9d8)
2007-10-10 12:59:47 -05:00
Andrew Tridgell
fea0571034 r2909: fix some RAW-SEARCH torture mem leaks
(This used to be commit 75ca5ba509)
2007-10-10 12:59:47 -05:00
Simo Sorce
2d2f43c939 r2908: fix typo
(This used to be commit f544f83063)
2007-10-10 12:59:47 -05:00
Andrew Tridgell
925251ea59 r2907: auto destroy iconv memory handles on exit, to make valgrind leak
reports easier to read (less noisy)
(This used to be commit e3009492b8)
2007-10-10 12:59:46 -05:00
Andrew Tridgell
38807f046b r2906: fixed a memory leak in the smbclient -L code
(This used to be commit 0181fe06b4)
2007-10-10 12:59:46 -05:00
Andrew Tridgell
af3866903e r2904: - fixed the old style SMBsearch to return the pvfs shortname, not a truncated long name.
- short name can be up to 12 bytes, not 11
(This used to be commit 657103ec62)
2007-10-10 12:59:46 -05:00
Andrew Tridgell
4aebdb779a r2903: a considerably more efficient (both in terms of CPU and memory)
convert_string_talloc() implementation.

the previous version used a minimum of 512 bytes, which is way above the average
of what is needed.
(This used to be commit abcd841a85)
2007-10-10 12:59:46 -05:00
Andrew Tridgell
173ec86fc0 r2902: make toupper_w() and tolower_w() slightly faster by putting the most common
conditions first
(This used to be commit 878f6b565f)
2007-10-10 12:59:46 -05:00
Andrew Tridgell
51009f7052 r2901: if we can't load upcase.dat or lowcase.dat then don't waste 256k
making fake tables, instead just do the approximate upper/lower inline
with toupper() and tolower().
(This used to be commit 994392d085)
2007-10-10 12:59:46 -05:00
Andrew Tridgell
598e82e7ad r2900: rusty pointed out to me that discard_const() can be done via a macro
on systems that have the intptr_t type, and for systems that don't
have it, they also almost certainly won't have -Wcast-qual, so we can use a
void* cast.
(This used to be commit 2132d38f9c)
2007-10-10 12:59:46 -05:00
Jelmer Vernooij
e2a4771909 r2898: - Support enumerating remote registry values
- Some LDB updates
(This used to be commit 4b5bf739f5)
2007-10-10 12:59:45 -05:00
Jelmer Vernooij
ffa0cf3af0 r2897: Fix double registration (of the registry subsystem) bug
(This used to be commit f4860afc48)
2007-10-10 12:59:45 -05:00
Jelmer Vernooij
235a847e68 r2896: Add torture test for EnumValue()
(This used to be commit e9a7f729b3)
2007-10-10 12:59:45 -05:00
Volker Lendecke
3b6a240284 r2895: Another nut to crack, not sure how hard: The statinfo on a file does obviously
not change during a write. The nasty thing: Excel 2003 obviosly does depend on
this.

Volker
(This used to be commit 8e26775134)
2007-10-10 12:59:45 -05:00
Andrew Tridgell
18dc1cd00f r2893: added very primitive name mangling support to pvfs
(This used to be commit 749fa73544)
2007-10-10 12:59:45 -05:00
Stefan Metzmacher
585571a824 r2892: fix compiler warning
metze
(This used to be commit 1a3b546fce)
2007-10-10 12:59:44 -05:00
Stefan Metzmacher
22f0d7012c r2891: call rootDSE only with LDAP_SEARCH_SCOPE_BASE
this is needed because of the global catalog

metze
(This used to be commit 071c19c25d)
2007-10-10 12:59:43 -05:00
Stefan Metzmacher
437a037b7b r2890: fix segfault when call is destroyed and we dereference it
metze
(This used to be commit 82e792a0ce)
2007-10-10 12:59:43 -05:00
Stefan Metzmacher
3dd56175ab r2889: add DRSUAPI server
- with DsBind and DsUnbind implmented :-)
  the RPC-DRSUAPI test works

metze
(This used to be commit 536af87ef1)
2007-10-10 12:59:42 -05:00
Stefan Metzmacher
594082233f r2888: - add 'Ds' prefix to Bind and Unbind call on drsuapi
- rename handle -> bind_handle

- change function types to NTSTATUS

metze
(This used to be commit de73676342)
2007-10-10 12:59:42 -05:00
Stefan Metzmacher
19a242eb3a r2887: fix comment
metze
(This used to be commit 5143a9bd8a)
2007-10-10 12:59:42 -05:00