1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-29 11:21:54 +03:00
Commit Graph

2589 Commits

Author SHA1 Message Date
Andrew Tridgell
220c289ecf r3247: FILE_ATTRIBUTE_NORMAL is only a null-op for setattr and setattre, not basic_info
(This used to be commit 36286e477c)
2007-10-10 13:04:46 -05:00
Andrew Tridgell
67bd7a7cb9 r3246: new files should get created with FILE_ATTRIBUTE_ARCHIVE
(This used to be commit 090574c698)
2007-10-10 13:04:45 -05:00
Andrew Tridgell
920c0bba82 r3245: use __location__ in RAW-SEARCH
(This used to be commit 3d5f7f4ac4)
2007-10-10 13:04:45 -05:00
Andrew Tridgell
b96fcd9d56 r3244: pvfs now passes the RAW-UNLINK and RAW-READ tests
(This used to be commit 230ec4d980)
2007-10-10 13:04:45 -05:00
Andrew Tridgell
8962ec3a68 r3243: read the high offset count in SMBreadx in the server
(This used to be commit 977bc87d18)
2007-10-10 13:04:45 -05:00
Andrew Tridgell
2b5b463892 r3242: make the RAW-READ test not exercise the 0-0 lock, which is not deterministic
(This used to be commit ecd4e315b9)
2007-10-10 13:04:45 -05:00
Andrew Tridgell
ba15d622d3 r3241: don't skip the read completely for a zero-length read, as it could give a lock conflict
(This used to be commit 7ce6139f98)
2007-10-10 13:04:45 -05:00
Andrew Tridgell
e9820e1b6e r3240: - update the rules for what error codes should be given on the
different type of unlink an seach mismatches

- wildcard directory listings that have attribute
  FILE_ATTRIBUTE_DIRECTORY and match "." or ".." should be failed.

- don't set the write_time on SMBclose unless it is non-zero

- added much better support for setfileinfo and setpathinfo in pvfs

- better (and more efficient) handling of .. and . components in filenames
(This used to be commit 9305b07af3)
2007-10-10 13:04:45 -05:00
Andrew Tridgell
84bbf02e95 r3239: reads of more than UINT16_MAX bytes should return 0 bytes
(This used to be commit 16c7dd6417)
2007-10-10 13:04:45 -05:00
Andrew Tridgell
0b6c611b11 r3238: rename null_mtime() to the more accurate name "null_time()", and
expose it for use by the posix backend
(This used to be commit 687633b5d6)
2007-10-10 13:04:44 -05:00
Andrew Tridgell
fef66179dd r3237: - allow for readx calls larger than 64k
- combine setattre and standard levels in setfileinfo, as they use the
  same structure
(This used to be commit e9aa1f7899)
2007-10-10 13:04:43 -05:00
Andrew Tridgell
3511e5e806 r3236: test a few more combinations in RAW-UNLINK
(This used to be commit 5b239ad57b)
2007-10-10 13:04:43 -05:00
Andrew Tridgell
1f7fbaf493 r3235: try readx beyond 64k in RAW-READ
(This used to be commit e07c557eca)
2007-10-10 13:04:43 -05:00
Andrew Tridgell
ea43c2a3ed r3234: in SMBreadx, if the client asks for exactly 65535 bytes then don't try
to align the buffer, as that would make the read reply not fit
(This used to be commit 70be45de05)
2007-10-10 13:04:43 -05:00
Andrew Tridgell
d5fd12648e r3227: added a per-share option "case insensitive filesystem", that tells the
backend that the underlying filesystem is case insensitive, so it can
bypass the directory search if the name is not found.
(This used to be commit d84ade90ce)
2007-10-10 13:04:43 -05:00
Andrew Tridgell
bf3f9757e5 r3224: add the LOCAL-* tests to test_posix.sh
(This used to be commit b2bdde6d14)
2007-10-10 13:04:43 -05:00
Andrew Tridgell
1915f1ca43 r3223: continue the effort on LIBREPLACE to try to get the ldb tools to
compile on platforms like solaris without having to link to the whole
of the Samba4 lib directory.
(This used to be commit f6862bfc1c)
2007-10-10 13:04:43 -05:00
Volker Lendecke
101a407dd7 r3219: Hi, Andrew B.!
Not sure which Samba3 you mean, but *my* one bails out with
INVALID_PARAMETER...

Volker
(This used to be commit d91659b037)
2007-10-10 13:04:42 -05:00
Volker Lendecke
5a75c3b060 r3218: Fix the build
(This used to be commit 478ba62915)
2007-10-10 13:04:42 -05:00
Tim Potter
8ade4d9785 r3217: Start of a spoolss_GetPrinter test.
(This used to be commit 994fe92feb)
2007-10-10 13:04:42 -05:00
Tim Potter
974d048493 r3216: Add tests for OpenPrinterEx and ClosePrinter.
(This used to be commit b7ff5f0ded)
2007-10-10 13:04:42 -05:00
Tim Potter
d8be728100 r3215: access_required -> access_mask for OpenPrinterEx
(This used to be commit 6a9e18528c)
2007-10-10 13:04:42 -05:00
Jelmer Vernooij
1444d2148d r3214: Load the config file (required for ncacn_np:)
(This used to be commit 636d209814)
2007-10-10 13:04:42 -05:00
Jelmer Vernooij
00f43d5eeb r3213: Make credentials in a binding dialog optional
Small fixes in gepdump
(This used to be commit a9473750f6)
2007-10-10 13:04:42 -05:00
Jelmer Vernooij
90732ae549 r3212: Never put a hostname in a ncalrpc binding string
(This used to be commit 4808b2a2f7)
2007-10-10 13:04:42 -05:00
Jelmer Vernooij
883fdf1a17 r3211: Add a graphical endpoint mapper view tool
(This used to be commit 71dfc27b8e)
2007-10-10 13:04:41 -05:00
Andrew Tridgell
98f9d5cdf6 r3210: split lib/replace.o into a separate build subsystem LIBREPLACE, and
make the ldb tools depend on it. This should help the build of the ldb
tools on platforms without strnlen() or strndup()
(This used to be commit e6ddb9d8f3)
2007-10-10 13:04:41 -05:00
Jelmer Vernooij
17781196bf r3209: - Create directory for ncalrpc with correct mode
- Support binding strings like :

ncacn_np:[sign]
ncacn_np:myhost[seal,sign,endpoint]

again
(This used to be commit b53f4cd169)
2007-10-10 13:04:41 -05:00
Andrew Tridgell
dd476f06ac r3208: fixed permissions of ncalrpc directory creation
(This used to be commit adbfd206f4)
2007-10-10 13:04:41 -05:00
Andrew Tridgell
ee0c87b4c9 r3207: - reformat error msgs in BASE-DIR* tests
- added support for mandatory attributes in old style directory search

- we now pass BASE-DIR1 and BASE-DIR2
(This used to be commit efaa0eaec4)
2007-10-10 13:04:41 -05:00
Andrew Tridgell
e1c43f243a r3206: - added the reverse map for ERRbaduid to NT_STATUS_INVALID_HANDLE
- force disable spnego in the RAW-CONTEXT test (it breaks the test)
(This used to be commit 3f247ec21c)
2007-10-10 13:04:41 -05:00
Jelmer Vernooij
3b252b765d r3205: Create ncalrpc directory if it didn't exist yet
(This used to be commit 1161c33794)
2007-10-10 13:04:41 -05:00
Tim Potter
266e36aa54 r3204: Got unpacking of an array of PrinterInfo union elements working. Phew.
(This used to be commit f490cd719c)
2007-10-10 13:04:40 -05:00
Andrew Tridgell
d200f9385f r3203: moved more test functions into torture/basic/*.c
the idea is that torture/torture.c should eventually be just the
harness code, which will make it easier to read
(This used to be commit eca85d26ed)
2007-10-10 13:04:40 -05:00
Andrew Tridgell
611e9e601c r3202: return a old DOS error code ERRSRV:ERRbaduid for a bad vuid. This means we now pass the BASE-VUID test.
(This used to be commit 560300c002)
2007-10-10 13:04:40 -05:00
Andrew Tridgell
5d1c5d3853 r3201: we now pass the BASE-OPEN test
(This used to be commit 3a150ab57e)
2007-10-10 13:04:40 -05:00
Andrew Tridgell
7fa912e708 r3200: - improved the accuracy of openx emulation. We now nearly pass the openx portion of RAW-OPEN
- fixed directory size reporting to make it consistent. we now pass
  the ntcreatex portion of RAW-OPEN
(This used to be commit 6282e5811b)
2007-10-10 13:04:40 -05:00
Andrew Tridgell
925cb13fcd r3199: added a couple more test paths to RAW-CHKPATH
(This used to be commit 17f10a39c8)
2007-10-10 13:04:40 -05:00
Andrew Tridgell
7780bec7b4 r3198: check for too many .. components in filenames
pvfs now passes RAW-MKDIR
(This used to be commit 41adb385f1)
2007-10-10 13:04:40 -05:00
Andrew Tridgell
6b2fc6e2d4 r3197: fixed error code mapping for ENOTDIR
(This used to be commit 2c852539ed)
2007-10-10 13:04:40 -05:00
Tim Potter
1ca4b01031 r3196: Grr - add more useless dependencies to get swig wrappers to build.
(This used to be commit cc3f71c465)
2007-10-10 13:04:39 -05:00
Andrew Tridgell
53e22ff509 r3195: fill in more of the fsinfo fields, and avoid calling the potentially
expensive sys_fsusage() call unless we really need to
(This used to be commit 57eb14773b)
2007-10-10 13:04:39 -05:00
Andrew Tridgell
a555d2eadc r3194: fixed an uninitialised variable
(This used to be commit 8123cfc59e)
2007-10-10 13:04:39 -05:00
Andrew Tridgell
1be85de588 r3193: improved the initial permissions choice for file create, based upon dos attribute
(This used to be commit f6fb1e3493)
2007-10-10 13:04:39 -05:00
Andrew Tridgell
3918ae351d r3192: make sure we don't call pvfs_can_delete() until after we have confirmed that name->exists
it true
(This used to be commit d368d2f4fe)
2007-10-10 13:04:39 -05:00
Andrew Tridgell
9c10d74be7 r3191: use __location__ in RAW-UNLINK test
(This used to be commit fb1929743a)
2007-10-10 13:04:38 -05:00
Andrew Bartlett
596d2de763 r3190: When we don't have a PAC, do a lookup in the local ldb instead.
This required reworking the auth_sam code, so that it would export the
'name -> server_info' functionality.  It's a bit ugly from a modular
point of view, but it's what we have to do...

Fix up some of the code to better use the new talloc()

Andrew Bartlett
(This used to be commit 18e08b4497)
2007-10-10 13:04:38 -05:00
Andrew Tridgell
5c95896499 r3189: improved the share_conflict() logic (both in terms of readability and
correctness). pvfs now passes the BASE-RENAME test.
(This used to be commit 4cf3f65a5c)
2007-10-10 13:04:38 -05:00
Andrew Tridgell
ced8ad3d04 r3188: tidy up the rename test a bit more
(This used to be commit 3f60775916)
2007-10-10 13:04:38 -05:00
Andrew Bartlett
db9b96d8e5 r3187: This 'optional' part of the ASN.1 in SPNEGO is required by Samba3 (but
not Microsoft).  Unfortunetly it's harder to fix Samba3 than to make
Samba4 cope...

Andrew Bartlett
(This used to be commit bbd52ab264)
2007-10-10 13:04:38 -05:00
Andrew Bartlett
e5fc6dd0bb r3186: Use the properties of the new talloc() system to handle the auth
session info and server info structures.

Andrew Bartlett
(This used to be commit 5bdf391b3b)
2007-10-10 13:04:38 -05:00
Andrew Bartlett
f7c6a9438d r3185: Machines can login with krb5, so we need to allow them to map to a unix account.
Andrew Bartlett
(This used to be commit fbe932ddd4)
2007-10-10 13:04:38 -05:00
Andrew Tridgell
6b280c1300 r3184: don't setup socket options on unix domain sockets (our smb.conf socket options are really meant for tcp)
(This used to be commit 238febb008)
2007-10-10 13:04:38 -05:00
Andrew Tridgell
75ed4f7cc4 r3183: moved the unlink of the messaging unixdom socket to the messaging destructor
(This used to be commit ab222b236a)
2007-10-10 13:04:37 -05:00
Andrew Tridgell
35a11f0e61 r3182: separate out the BASE-RENAME test into torture/basic/rename.c
(This used to be commit c5e72b05d7)
2007-10-10 13:04:37 -05:00
Andrew Tridgell
304a9eafd4 r3181: shutdown the secrets db on exit so we don't constantly get talloc leak warnings
(This used to be commit 11713da2ef)
2007-10-10 13:04:37 -05:00
Andrew Tridgell
3cf018b517 r3180: - basic support for SEC_RIGHT_MAXIMUM_ALLOWED in pvfs
- RAW-CONTEXT test now passes
(This used to be commit 0dae9fef09)
2007-10-10 13:04:37 -05:00
Andrew Tridgell
8af9b5e42e r3179: - fixed error return on utime failure
- formatting fix
(This used to be commit 8ca4d7c51e)
2007-10-10 13:04:37 -05:00
Andrew Tridgell
e90ab07050 r3178: honor the write_time on pvfs_close()
(This used to be commit 4e28c45baf)
2007-10-10 13:04:36 -05:00
Andrew Tridgell
2a5eb0ceba r3177: check for open files on rename
(This used to be commit c334182095)
2007-10-10 13:04:36 -05:00
Andrew Tridgell
1e7e580020 r3176: added a script to run all the filesystem torture tests that are
expected to pass. This allows easy testing for regressions when I
change core routines in the posix backend.
(This used to be commit 867cae7466)
2007-10-10 13:04:36 -05:00
Andrew Bartlett
7397361dae r3175: Add winbind back into includes.h (spotted by tpot)
Andrew Bartlett
(This used to be commit 2b0f04167d)
2007-10-10 13:04:36 -05:00
Andrew Tridgell
c1c696460b r3174: added pvfs_is_open() to allow us to check for open files on unlink. We
now pass BASE-UNLINK.
(This used to be commit f23a2f8538)
2007-10-10 13:04:36 -05:00
Andrew Tridgell
def9a12bcc r3173: make the RAW-QFILEINFO test cope better with null strings from the server
(This used to be commit a10fca41de)
2007-10-10 13:04:36 -05:00
Andrew Tridgell
06d9380114 r3172: much better qfileinfo implementation in pvfs. We now pass RAW-QFILEINFO
(This used to be commit 65c2c81b8c)
2007-10-10 13:04:36 -05:00
Andrew Tridgell
7bcf3ce8f6 r3171: in qfileinfo getattre and standard have identical structures, so
simplify code by making them aliases
(This used to be commit 91a1dc121c)
2007-10-10 13:04:35 -05:00
Andrew Bartlett
4298624589 r3170: Add winbind client support back into Samba4. This is to allow
auth_winbind to work, and to therefore use the new ntlm_auth and
GENSEC in an otherwise Samba3 setup.

I'm not quite sure what fun-and games my svn cp caused as I merged
this from samba_3_0, but anyway...

Andrew Bartlett
(This used to be commit 5925b94a59)
2007-10-10 13:04:31 -05:00
Jelmer Vernooij
d164190deb r3169: unlink() is called on the listening unix socket every time a child process
exits. Commenting it out until we have a clean way of doing this.
(This used to be commit fa0760dd5f)
2007-10-10 13:02:29 -05:00
Jelmer Vernooij
dbdd217435 r3168: Use generic function for looking up endpoints
(This used to be commit 45a3e2a981)
2007-10-10 13:02:29 -05:00
Jelmer Vernooij
06b3879c8f r3167: Add a member 'endpoint' to the dcerpc_binding struct to use instead of
options[0].
(This used to be commit 18582083af)
2007-10-10 13:02:28 -05:00
Jelmer Vernooij
36db6faff3 r3166: Bunch of small GUI updates. gwcrontab works again, as does selecting a
domain in gwsam
(This used to be commit 575e380ab4)
2007-10-10 13:02:28 -05:00
Jelmer Vernooij
026bae22de r3165: Support local connections in Gtk+ tools
(This used to be commit 3de0cf22dd)
2007-10-10 13:02:28 -05:00
Jelmer Vernooij
b9956de1b1 r3164: Look up ncalrpc identifiers using the EPMAPPER. ncalrpc now works nicely :-)
The various interface that support ncalrpc work nicely when tested
with smbtorture and ncalrpc.

Running RPC-SAMR against local smbd here is slightly faster using ncalrpc:
ncalrpc: 		1.8 sec
ncacn_ip_tcp:	1.9 sec
ncacn_np:		2.5 sec
(This used to be commit 2cfc8f24ce)
2007-10-10 13:02:28 -05:00
Jelmer Vernooij
78e5bc76b6 r3163: Add server side support for ncalrpc: and ncacn_unix_stream:
Examples of binding strings are :

ncalrpc:[EPMAPPER]
ncacn_unix_stream:[/tmp/epmapper]

N.B. The unix socket support in lib/socket/ appears to close and remove the
socket it is listening on after the first client disconnects so until
that has been fixed, it is only possible to do one ncalrpc: or ncacn_unix_stream: request per instance of smbd :-)

Support for looking up NCALRPC names via the endpoint mapper will be added later.
(This used to be commit 426f3e63ca)
2007-10-10 13:02:28 -05:00
Jelmer Vernooij
40c5a1d99f r3162: Add client-side support for the ncalrpc: and ncacn_unix_stream: transports.
ncalrpc uses the new config option "ncalrpc dir" for creating unix sockets.
(This used to be commit b15cfbe251)
2007-10-10 13:02:27 -05:00
Andrew Tridgell
62e58ea718 r3161: pvfs now passes the RAW-SEEK test
(This used to be commit a953d4a42c)
2007-10-10 13:02:27 -05:00
Andrew Tridgell
36e3262846 r3160: recognise RAW_SFILEINFO_DISPOSITION_INFORMATION (fixes temporary files from excel)
(This used to be commit 1c05147f71)
2007-10-10 13:02:27 -05:00
Andrew Tridgell
5ea5d5c235 r3159: use easy to recognise file handle numbers for new file, old file and directory
in pvfs_open, to make analysing sniffs easy
(This used to be commit 5c16ed0254)
2007-10-10 13:02:27 -05:00
Jelmer Vernooij
3965113fc7 r3158: Use the new tower build functions to generate protocol towers, making it
easier to deal with more different transports.
(This used to be commit ee9bcfddf0)
2007-10-10 13:02:27 -05:00
Jelmer Vernooij
86cd076c0b r3157: Add ncacn_http
(This used to be commit a0c4138edf)
2007-10-10 13:02:27 -05:00
Jelmer Vernooij
f1dd80e74e r3156: Couple of fixes in the conversion functions between binding structs and
protocol towers
(This used to be commit f41dfc6c5a)
2007-10-10 13:02:26 -05:00
Andrew Tridgell
2641612a49 r3155: reformat a delete test
(This used to be commit 739c9e401c)
2007-10-10 13:02:26 -05:00
Andrew Tridgell
2a16fd5453 r3154: pvfs now passes all of BASE-DELETE
(This used to be commit abbfca1401)
2007-10-10 13:02:26 -05:00
Andrew Tridgell
d581727138 r3153: pvfs now passes the first 9 of the BASE-DELETE tests
(This used to be commit f8041feaeb)
2007-10-10 13:02:26 -05:00
Andrew Tridgell
e9381dfd70 r3152: reformatted some of the delete test code
(This used to be commit d7b0dece6f)
2007-10-10 13:02:26 -05:00
Andrew Tridgell
5a698367e1 r3150: printing __location__ is more useful than a operation number
(This used to be commit 022b21460a)
2007-10-10 13:02:26 -05:00
Andrew Tridgell
86457e659c r3149: separate the delete on close test into torture/basic/delete.c
(This used to be commit 50379a0a58)
2007-10-10 13:02:26 -05:00
Andrew Tridgell
f539cc1b7d r3148: make --failures work for the BASE-DENY1 and BASE-DENY2 tests
(This used to be commit 6e87feb89c)
2007-10-10 13:02:25 -05:00
Andrew Tridgell
3d5f3e39e5 r3147: added basic share modes support for pvfs (or more precisely, ntcreatex
share_access support).  This is enough for us to pass the BASE-DENY2
test, but is a long way from fully correct share modes.
(This used to be commit b5a6dd3cbf)
2007-10-10 13:02:25 -05:00
Andrew Tridgell
c785ca6504 r3142: fill in all the ntcreatex response fields explicitly, rather than
zeroing. This makes it clearer what bits are not yet implemented (and
is more valgrind friendly)
(This used to be commit 18b471327b)
2007-10-10 13:02:25 -05:00
Jelmer Vernooij
8debe5a6b8 r3136: - Allow specifying socket type when adding smbd service
- Make sure a epm_tower struct is completely initialized
- Some more minor fixes
(This used to be commit d560dcbdb8)
2007-10-10 13:02:25 -05:00
Andrew Tridgell
020b386560 r3135: split the "create new" logic out from the "open existing" logic in
pvfs_open, and handle the various race conditions that are inherent in
cifs on unix, so we do the best we can when the race happens.

the ntcreatex code is really starting to take shape now
(This used to be commit 395c3815b4)
2007-10-10 13:02:25 -05:00
Andrew Tridgell
7d30e54927 r3134: use struct idr_context * in tid allocation
(This used to be commit 3ea9445226)
2007-10-10 13:02:25 -05:00
Andrew Tridgell
f71e7ae1e3 r3133: - more consistent error checking in rename and setfileinfo
- add paranoid checking of device/inode change during open to detect race conditions
(This used to be commit 043361fed4)
2007-10-10 13:02:25 -05:00
Andrew Tridgell
6e8867bff5 r3132: - fixed a type conflict found by talloc_array_p()
- use struct idr_context * in ipc code
(This used to be commit c33cdd0d55)
2007-10-10 13:02:24 -05:00
Andrew Tridgell
651f3903f0 r3131: - make map_nt_error_from_unix() return NT_STATUS_UNSUCCESSFUL if errno is 0
- more consistent checking for system call return values in simple backend
(This used to be commit 375a9a1347)
2007-10-10 13:02:24 -05:00
Andrew Tridgell
517238f0aa r3130: - added a LOCAL-IDTREE test suite
- made idtree return a "struct idr_context *" instead of a void*

- more efficient idr_remove for ids that are not present (patch from Jim Houston)
(This used to be commit f8d12d4b4a)
2007-10-10 13:02:24 -05:00
Volker Lendecke
e51ae38d7b r3129: typo
(This used to be commit f9dfd5ff1f)
2007-10-10 13:02:24 -05:00
Andrew Bartlett
450359e282 r3128: Return the correct error code for a secrets/kerberos login, but
skipping 'bad encryption type'.

Andrew Bartlett
(This used to be commit 4efb87eb03)
2007-10-10 13:02:24 -05:00
Andrew Tridgell
1cd1b172d5 r3127: added the initial code for the open files database. Doesn't do
anything yet, but will soon be the core of the shares modes code.
(This used to be commit ad1edabf95)
2007-10-10 13:02:24 -05:00
Andrew Tridgell
1ec644619d r3126: in the brlock code I had used a void* for the brl context as I didn't
want to expose the brl context structure outside the brlock.c
code. Instead, I now use "struct brl_context *" and rely on C being
happy to pass around pointers to unknown structures as long as they
are not dereferenced. I will be interested to see how the build farm
likes this.
(This used to be commit cb155c8ad8)
2007-10-10 13:02:24 -05:00
Jelmer Vernooij
27129573ff r3125: Store object UUID directly instead of using a pointer (struct dcerpc_binding)
Let test fail if messaging_init() fails instead of generating segfault in the LOCAL-MESSAGING test
(This used to be commit 0609f410ef)
2007-10-10 13:02:23 -05:00
Jelmer Vernooij
77b691e670 r3124: Add dcerpc_binding_from_tower()
Add tests for dcerpc_binding_from_tower()
(This used to be commit 88c6d34bba)
2007-10-10 13:02:23 -05:00
Jelmer Vernooij
a8d4d3c9f6 r3123: Add dcerpc_binding_build_tower()
Add local test for testing the functions dcerpc_parse_binding(),
	dcerpc_binding_string() and dcerpc_binding_build_tower()
(This used to be commit 7a07c2c769)
2007-10-10 13:02:23 -05:00
Jelmer Vernooij
a9081b527b r3118: Eliminate struct dcesrv_ep_description and replace it with
struct dcerpc_binding.
(This used to be commit 2046e14cf8)
2007-10-10 13:02:23 -05:00
Andrew Bartlett
f30a08813c r3115: Bugfixes and extra debug in our kerberos verify code.
Andrew Bartlett
(This used to be commit 9f19aae0c0)
2007-10-10 13:02:23 -05:00
Jelmer Vernooij
ac989eda6d r3114: - More work on merging the various structs that describe endpoints
- Add protocol sequence to dcerpc transports (will be used later on)
- Add more transports to the list
(This used to be commit ab110192e6)
2007-10-10 13:02:23 -05:00
Stefan Metzmacher
18324abda7 r3113: make us able to generate the PAC with the same align as a MS KDC
(we should fix pidl to handle NDR_ALIGN8 correct as a real fix for this problem)

metze
(This used to be commit ab7a26a950)
2007-10-10 13:02:22 -05:00
Jelmer Vernooij
0d35bae3c4 r3112: Fix two more instances of epm_towers (sorry, metze!)
(This used to be commit 7baf493966)
2007-10-10 13:02:22 -05:00
Jelmer Vernooij
aa1c83bdbb r3111: Add a few more protocol identifiers, rhs for ncalrpc
(This used to be commit 53567a83cb)
2007-10-10 13:02:22 -05:00
Andrew Bartlett
6a304256d0 r3110: Fix the krb5 client and server, so that it doesn't segfault. There
were also gensec bugs that didn't turn up until we hit error paths in
the krb5 code.

Andrew Bartlett
(This used to be commit e08366ffeb)
2007-10-10 13:02:22 -05:00
Andrew Bartlett
1d990b526e r3109: Give krbtgt and our machine account a random password in provision.
Andrew Bartlett
(This used to be commit 560a8c9f42)
2007-10-10 13:02:22 -05:00
Andrew Tridgell
a3ff7f7d37 r3108: try to cope with servers that put FILE_ATTRIBUTE_NONINDEXED on files in the RAW-OPEN test
(This used to be commit bed7d12f26)
2007-10-10 13:02:22 -05:00
Andrew Tridgell
d33ae23165 r3107: slight tweak to the openx -> ntcreatex mapping routine. This mapping
can never be perfect, as openx can do things that ntcreatex can't, but
with this tweak we get close (the BASE-DENY1 test passes completely,
for example)
(This used to be commit 88112b9677)
2007-10-10 13:02:22 -05:00
Andrew Tridgell
4b95dd5516 r3106: don't call a tree disconnect in the cifs backend, as during a smbd
server shutdown we don't want a synchronous operation which may block
to be called, thus delaying the shutdown.
(This used to be commit 5882f7305f)
2007-10-10 13:02:21 -05:00
Andrew Tridgell
d3c5d8ccfd r3105: using __location__ instead of __LINE__ to give info on error locations is more useful
(This used to be commit 80dd22a1f1)
2007-10-10 13:02:21 -05:00
Andrew Bartlett
542c839dbb r3104: My Win2k3 server, with current updates, still sends the LM key for level 6.
I'm not quite sure what's going on here, but adjust expected values
till I can find out how to reproduce this the other way...

Andrew Bartlett
(This used to be commit 3f0f6b38f2)
2007-10-10 13:02:21 -05:00
Andrew Tridgell
34f84aae55 r3103: use a destructor to ensure that on abnormnal rpc request termination
it is removed from the pending list.
(This used to be commit 33176e9751)
2007-10-10 13:02:21 -05:00
Stefan Metzmacher
5b09d503ff r3102: typo
metze
(This used to be commit 3bbda7475a)
2007-10-10 13:02:21 -05:00
Stefan Metzmacher
a1063840e7 r3101: some minor fixes
metze
(This used to be commit 61de2229e2)
2007-10-10 13:02:21 -05:00
Stefan Metzmacher
95ddbe5ad2 r3100: support 'bin/smbclient //w2k3-101/c$ -U \\administrator@w2k3.vmnet1.vm.base'
we need to send an empty string as userdomain in this case.
fix bug #1317 in the client side

metze
(This used to be commit 958aa8de63)
2007-10-10 13:02:21 -05:00
Stefan Metzmacher
98c8cb195a r3099: implment sldb_ModifyDN()
metze
(This used to be commit a25d1c4419)
2007-10-10 13:02:21 -05:00
Stefan Metzmacher
d970cafc4b r3098: - fix segfault in sldb_Compare()
- be more verbose on the INVALID_DN errstr

metze
(This used to be commit 4b8d90866e)
2007-10-10 13:02:20 -05:00
Stefan Metzmacher
fd07fc88e7 r3097: - an empty string is a valid DN
- detect in valid DN's

- some error handling fixes

metze
(This used to be commit d92eff2328)
2007-10-10 13:02:20 -05:00
Stefan Metzmacher
367b3bfa12 r3096: typo
metze
(This used to be commit c730d7d638)
2007-10-10 13:02:20 -05:00
Stefan Metzmacher
6d18904b03 r3095: - fix a free'ing of msg.dn
- reenable index tests

metze
(This used to be commit 1e7e94fdb1)
2007-10-10 13:02:20 -05:00
Stefan Metzmacher
86ab5f1267 r3094: import all LDAP error codes from the RFC 2251
metze
(This used to be commit f1d8f4bc5d)
2007-10-10 13:02:20 -05:00
Stefan Metzmacher
a9bd405497 r3093: - implment ldb_rename() and ldbrename
- add tests for ldbrename

- disable all tests which regenerate the index
  (this is broken for me...the process hangs,
   tridge we need to discuss that)

- link only the needed stuff to the ldb tools

- build ldbtest inside samba

metze
(This used to be commit 18552f4786)
2007-10-10 13:02:20 -05:00
Stefan Metzmacher
8d48ca63db r3092: prepare for build inside samba
metze
(This used to be commit f7564bf4d2)
2007-10-10 13:02:20 -05:00
Stefan Metzmacher
3b96f7d0dd r3091: link only the needed stuff
metze
(This used to be commit 71ccac56c2)
2007-10-10 13:02:19 -05:00
Stefan Metzmacher
900e2cdf6d r3089: fix memleak
metze
(This used to be commit 52eab8dc17)
2007-10-10 13:01:58 -05:00
Andrew Tridgell
82a56fae99 r3087: fixed a typo
(This used to be commit 3791b97694)
2007-10-10 13:01:58 -05:00
Andrew Tridgell
042a045025 r3086: fixed smbpid handling in the cifs backend
(This used to be commit fbc6949e95)
2007-10-10 13:01:57 -05:00
Andrew Tridgell
31a4070fcc r3085: make the RAW-WRITE tests more robust to errors in previous parts of the test
(This used to be commit 6ea815b6d4)
2007-10-10 13:01:57 -05:00
Andrew Tridgell
74e741037c r3084: mincnt and maxcnt were the wrong way around in readbraw server code
(This used to be commit e11b000319)
2007-10-10 13:01:57 -05:00
Andrew Tridgell
2e4c8c0159 r3083: fixed a couple of generic mapping errors found with RAW-* and cifs:mapgeneric
(This used to be commit 76329798ff)
2007-10-10 13:01:57 -05:00
Andrew Tridgell
4b14c8a09f r3082: added a "cifs:mapgeneric" option, which tells the cifs backend to use
the ntvfs_generic mapping functions rather than sending the exact
function asked for. This allows the generic mapping functions to be
tested by comparing the behaviour of smbtorture against two cifs
backend shares, one using "cifs:mapgeneric = true" and the other
"cifs:mapgeneric = False"
(This used to be commit c240c6bca5)
2007-10-10 13:01:57 -05:00
Andrew Tridgell
20d17b8057 r3081: several updates to ntvfs and server side async request handling in
preparation for the full share modes and ntcreatex code that I am
working on.

highlights include:

 - changed the way a backend determines if it is allowed to process a
   request asynchronously. The previous method of looking at the
   send_fn caused problems when an intermediate ntvfs module disabled
   it, and the caller then wanted to finished processing using this
   function. The new method is a REQ_CONTROL_MAY_ASYNC flag in
   req->control_flags, which is also a bit easier to read

 - fixed 2 bugs in the readbraw server code. One related to trying to
   answer a readbraw with smb signing (which can't work, and crashed
   our signing code), the second related to error handling, which
   attempted to send a normal SMB error packet, when readbraw must
   send a 0 read reply (as it has no header)

 - added several more ntvfs_generic.c generic mapping functions. This
   means that backends no longer need to implement such esoteric
   functions as SMBwriteunlock() if they don't want to. The backend
   can just request the mapping layer turn it into a write followed by
   an unlock. This makes the backends considerably simpler as they
   only need to implement one style of each function for lock, read,
   write, open etc, rather than the full host of functions that SMB
   provides. A backend can still choose to implement them
   individually, of course, and the CIFS backend does that.

 - simplified the generic structures to make them identical to the
   principal call for several common SMB calls (such as
   RAW_WRITE_GENERIC now being an alias for RAW_WRITE_WRITEX).

 - started rewriting the pvfs_open() code in preparation for the full
   ntcreatex semantics.

 - in pvfs_open and ipc_open, initially allocate the open file
   structure as a child of the request, so on error we don't need to
   clean up. Then when we are going to succeed the open steal the
   pointer into the long term backend context. This makes for much
   simpler error handling (and fixes some bugs)

 - use a destructor in the ipc backend to make sure that everthing is
   cleaned up on receive error conditions.

 - switched the ipc backend to using idtree for fnum allocation

 - in the ntvfs_generic mapping routines, use a allocated secondary
   structure not a stack structure to ensure the request pointer
   remains valid even if the backend replies async.
(This used to be commit 3457c1836c)
2007-10-10 13:01:57 -05:00
Andrew Bartlett
8050be6ea3 r3080: Make the Samba4 SAMR server pass the new, nasty torture test (now that
SAMR_FIELD_PASSWORD has been split up).

Andrew Bartlett
(This used to be commit 5f2295a5fb)
2007-10-10 13:01:57 -05:00
Andrew Bartlett
d0d86b5348 r3079: make code more pretty :-)
Andrew Bartlett
(This used to be commit 9c911b361c)
2007-10-10 13:01:56 -05:00
Andrew Bartlett
8839496790 r3078: Allow more things to be set as command line options to provision.
Andrew Bartlett
(This used to be commit 2df85686f5)
2007-10-10 13:01:56 -05:00
Andrew Bartlett
7afe85725f r3077: Add initial handling of Account Flags in SAMR user info level 21 and 25.
Andrew Bartlett
(This used to be commit 51774a9bca)
2007-10-10 13:01:56 -05:00
Andrew Bartlett
b261082333 r3076: Fix memory leak.
Andrew Bartlett
(This used to be commit 4091fee8e8)
2007-10-10 13:01:56 -05:00
Andrew Bartlett
a71b913571 r3075: Initialise (and check for intialisation) of the private pointer to
ensure we don't segfault on the cleanup from an incomplete schannel
bind.

Andrew Bartlett
(This used to be commit 173f29a1d8)
2007-10-10 13:01:56 -05:00
Andrew Bartlett
1ee3a7419e r3074: Add in a new 'field present' flag samr.idl for the Account Flags
field.  Add torture test for setting this feild - including all the
odd cases (not all the flags 'stick', and not others cannot be
removed).

Seperate the two 'password change' flags, and test them both in the
torture code.

Check that the password did change after every password set call.

Andrew Bartlett
(This used to be commit 3759128bd3)
2007-10-10 13:01:56 -05:00
Andrew Bartlett
31e96d8def r3073: Fix bug in the handling of null-terminated ASCII strings in RPC.
Because we didn't count the null terminator, we would not move past it
in the packet.

Andrew Bartlett
(This used to be commit 8b38bffc70)
2007-10-10 13:01:55 -05:00
Andrew Tridgell
72093ce62f r3064: - use UINT8_MAX and UINT16_MAX instead of hex values for idr_get_new() limits
- change idr_get_new() to use > instead of >= in the limit check
(This used to be commit 834b09929b)
2007-10-10 13:01:55 -05:00
Andrew Tridgell
343545a883 r3063: our default dos charset is CP850, but some systems don't have that, so
as a special case, automatically fall back to ASCII if its not found.
(This used to be commit 55aeb33343)
2007-10-10 13:01:55 -05:00
Andrew Tridgell
904f20a9fb r3062: handle spaces at the start of options in lp_set_cmdline()
(This used to be commit 069305adaf)
2007-10-10 13:01:55 -05:00
Andrew Tridgell
23d3b714f1 r3061: change a debug to help track down a charset problem
(This used to be commit 4d2497b7f4)
2007-10-10 13:01:55 -05:00
Tim Potter
b98218c84b r3060: Replace magic number with a C99 constant.
(This used to be commit b572be00b3)
2007-10-10 13:01:55 -05:00
Andrew Tridgell
24bba442bc r3059: completely get rid of the MAX_CONNECTIONS limit, as a idle tree
connect is very cheap now.
(This used to be commit 8856f010e9)
2007-10-10 13:01:55 -05:00
Andrew Tridgell
198be6fc77 r3058: we don't use the bitmap code any more, delete it
(This used to be commit 2b0554b3b5)
2007-10-10 13:01:54 -05:00
Andrew Tridgell
b2b8282b8c r3057: - moved the idtree.c code into lib/
- converted the tid handling to use a idtree instead of bitmaps
(This used to be commit 4220914179)
2007-10-10 13:01:54 -05:00
Andrew Tridgell
cf1b85348a r3056: added a id -> pointer data structure (a type of radix tree). This is
an extremely efficient way of mapping from an integer handle (such as
an open file handle) to a pointer (such as the structure containing
the open file information). The code is taken from lib/idr.c in the
2.6 Linux kernel, and is very fast and space efficient. By using
talloc it even has auto cleanup.

This commit converts the handling of open file handles and open
directory search handles to use the idtree routines. In combination
with talloc destructors, this simplifies the structure handling in the
pvfs backend a lot. For example, we no longer need to keep a linked
list of open directory searches at all, and we no longer need to do
linear scans of the list of open files on most operations.

The end result is that the pvfs code is now extremely scalable. You
can have 10s of thousands of open files and open searches and the code
still runs very fast.

I have also added a small optimisation into the file close path, to
avoid looking in the byte range locking database if we know that there
are no locks outstanding.
(This used to be commit 16835a0ef9)
2007-10-10 13:01:54 -05:00
Andrew Tridgell
2b8aa720f4 r3055: use talloc_zero_p()
(This used to be commit 7bea9afeed)
2007-10-10 13:01:54 -05:00
Andrew Tridgell
002f883202 r3054: use talloc_zero_array_p() in a couple of places
(This used to be commit cccd59009d)
2007-10-10 13:01:54 -05:00
Andrew Tridgell
c5465ae50f r3053: make the maxfid test use subdirectories, so it doesn't create 64k
files in one directory (running the test was very slow) and can clean
up after itself easily.
(This used to be commit 6dea60e3b9)
2007-10-10 13:01:54 -05:00
Andrew Tridgell
53e30b391d r3052: added talloc_zero_p() and talloc_zero_array_p() calls, for allocating zeroed memory
(This used to be commit 65b7316e9b)
2007-10-10 13:01:53 -05:00
Jelmer Vernooij
06fe5d6cd9 r3047: Always include a \ again before the pipe name we're opening. Without a
backslash works, but is not like Windows does it.
(This used to be commit f6deb3d065)
2007-10-10 13:01:53 -05:00
Jelmer Vernooij
2c081d2c47 r3046: \\PIPE\\ is internal (not actually included on the wire)
(This used to be commit 7771b5d8fa)
2007-10-10 13:01:53 -05:00
Jelmer Vernooij
80a30263aa r3045: Allow object-uuid@... binding strings
(This used to be commit 38e9290bcf)
2007-10-10 13:01:53 -05:00
Stefan Metzmacher
d78ae0b646 r3044: resolve the error code for WERR_DS_OBJ_NOT_FOUND to the name
metze
(This used to be commit c79bbe54b4)
2007-10-10 13:01:53 -05:00
Jelmer Vernooij
31403d548e r3043: Use binding strings for specifying endpoints. The property for
specifying a endpoint is now also 'endpoint' instead of 'endpoints'. The
default endpoint (if none is specified) is still "ncacn_np:[\\pipe\\ifacename]",
where ifacename is the name of the interface.

Examples:

[
  uuid(60a15ec5-4de8-11d7-a637-005056a20182),
  endpoint("ncacn_np:[\\pipe\\rpcecho]", "ncacn_ip_tcp:")
]
interface rpcecho
{
	void dummy();
}

dcerpc_binding is now converted to ep_description in the server, but I hope to
completely eliminate ep_description later on.

The eventual goal of all these changes is to make it easier to add
 transports as I'm going to add support for
 ncalrpc (local RPC over named pipes) and ncacn_unix_stream (Unix sockets).
(This used to be commit f3da7c8b44)
2007-10-10 13:01:53 -05:00
Stefan Metzmacher
b1b8f49a5b r3041: a start of a README/HOWTO for the samba4 build system.
(still incomplete, but should be a good start...)

can someone look for spelling and grammar mistakes...

metze
(This used to be commit 6656518772)
2007-10-10 13:00:01 -05:00
Jim McDonough
9529b4948e r3040: Add sleeps between operations to nbench. Submitted by aliguori@us.ibm.com.
(This used to be commit b1bbf0a431)
2007-10-10 13:00:01 -05:00
Andrew Tridgell
142d295aa8 r3039: This solves the problem of async handlers in ntvfs backends not being
in the right state when called. For example, when we use the unixuid
handler in the chain of handlers, and a backend decides to continue a
call asynchronously then we need to ensure that the continuation
happens with the right security context.

The solution is to add a new ntvfs operation ntvfs_async_setup(),
which calls all the way down through the layers, setting up anything
that is required, and takes a private pointer. The backend wanting to
make a async calls can use ntvfs_async_setup() to ensure that the
modules above it are called when doing async processing.
(This used to be commit a256e71029)
2007-10-10 13:00:01 -05:00
Tim Potter
3406ac3092 r3036: Add function to pull an array of structures. Abstracts away the
individual routines in ndr_spoolss_buf.c.
(This used to be commit e080a2483d)
2007-10-10 13:00:01 -05:00
Andrew Tridgell
8e8c6aef3c r3035: if the ntvfs layers prior to us have said that we can't perform an
operation asynchronously (such as the nbench module), then ignore lock
timeouts, as they would make no sense
(This used to be commit 2894dd0ac0)
2007-10-10 13:00:00 -05:00
Andrew Tridgell
384f87bd38 r3034: - fixed a bug in message dispatch, when the dispatch function called messaging_deregister()
- added a pvfs_lock_close_pending() hook to remove pending locks on file close

 - fixed the private ptr argument to messaging_deregister() in pvfs_wait

 - fixed a bug in continuing lock requests after a lock that is blocking a pending lock is removed

 - removed bogus brl_unlock() call in lock continue

 - corrected error code for LOCKING_ANDX_CHANGE_LOCKTYPE

 - expanded the lock cancel test suite to test lock cancel by unlock and by close

 - added a testsuite for LOCKING_ANDX_CHANGE_LOCKTYPE
(This used to be commit 5ef80f034d)
2007-10-10 13:00:00 -05:00
Jelmer Vernooij
a03a7d0aea r3033: Use the C struct directly if we can instead of generating a binding
string and parsing that.
(This used to be commit 1977932b54)
2007-10-10 13:00:00 -05:00
Jelmer Vernooij
656c04da48 r3032: Somewhat stricter syntax for binding strings:
[] is now mandatory
 : after the hostname is no longer allowed

examples of allowed binding strings:

ncacn_np:myhost[samr]
ncacn_ip_tcp:10.0.0.1[1045]
ncacn_ip_tcp:2001:7b8:37b:1:210:dcff:fecb:a9e3[1024,sign,seal]
ncacn_np:myhost
ncacn_ip_tcp:192.168.4.2
308FB580-1EB2-11CA-923B-08002B1075A7@ncacn_ip_tcp:192.168.4.2
308FB580-1EB2-11CA-923B-08002B1075A7@ncacn_ip_tcp:192.168.4.2[,print]

Note that the last two lines are not recognized by smbtorture as a binding
 string yet. dcerpc_parse_binding() does accept them though.
(This used to be commit c15862e778)
2007-10-10 13:00:00 -05:00
Andrew Tridgell
43a80e1d83 r3031: added support for lock cancelation, which effectively just triggers an early lock timeout
added support for more of the bizarre special lock offset semantics of w2k3
(This used to be commit d5bfc910b1)
2007-10-10 13:00:00 -05:00
Andrew Tridgell
0ca4a77005 r3030: added testing of lock cancel, and some more special offsets (locks
with the top bit set are special)
(This used to be commit f732a983d4)
2007-10-10 13:00:00 -05:00
Andrew Tridgell
d0cc571e30 r3029: implemented byte range lock timeouts.
This adds a pvfs_wait_message() routine which uses the new messaging
system, event timers and talloc destructors to give a nice generic
async event handling system with a easy to use interface. The
extensions to pvfs_lock.c are based on calls to pvfs_wait_message()
routines.

We now pass all of our smbtorture locking tests, although while
writing this code I have thought of some additonal tests that should
be added, particularly for lock cancel operations. I'll work on that
soon.

This commit also extends the smbtorture lock tests to test the rather
weird 0xEEFFFFFF locking semantics that I have discovered in
win2003. Win2003 treats the 0xEEFFFFFF boundary as special, and will
give different error codes on either side of it. Locks on both sides
are allowed, the only difference is which error code is given when a
lock is denied. Anyone like to hazard a guess as to why? It has
me stumped.
(This used to be commit 4395c0557a)
2007-10-10 13:00:00 -05:00
Andrew Tridgell
d37acd0fe7 r3028: use talloc_free() instead of talloc_unlink(), as the
event_context_merge() code leaves the events as grandchildren of the
events context, not children, so talloc_unlink() will not work after
the merge
(This used to be commit 2d0dfe607d)
2007-10-10 12:59:59 -05:00
Andrew Tridgell
260b012f22 r3027: got rid of some configure checks we don't need any more
(This used to be commit 6a3f356b76)
2007-10-10 12:59:59 -05:00
Andrew Tridgell
ca7e02fd37 r3026: - added automatic retry to messages when the servers listen queue is
full. This means callers can just "send and forget" rather than
  having to check for a temporary failure. The mechanism takes nice
  advantage of the timed events handling is our events code. A message
  will only fail now if we completely run out of some resource (such
  as memory).

- changed the test code not to do retries itself, but only to warn on real failures
(This used to be commit 8cddc610a2)
2007-10-10 12:59:59 -05:00
Andrew Tridgell
9a499a8010 r3025: don't warn about no path in a service, as some backends (like cifs) don't need a path
(This used to be commit a8c49a0de3)
2007-10-10 12:59:59 -05:00
Andrew Tridgell
e81230df4b r3024: run the *_connect() NTVFS initialisation operation as root, to allow
backends to open databases and perform any other privileged
operations that might be needed.
(This used to be commit 54fd395025)
2007-10-10 12:59:59 -05:00
Andrew Tridgell
6cc8941f05 r3023: added immediate send of messages when they are first queued. This makes things a bit more efficient
(This used to be commit 8380225d32)
2007-10-10 12:59:59 -05:00
Tim Potter
605560149e r3022: Work on unmarshalling arrays of structs in a buffer (Python string) for
spoolss.  Doesn't quite work yet.
(This used to be commit 9045645ddf)
2007-10-10 12:59:59 -05:00
Andrew Tridgell
21e72e0154 r3021: under heavy load the listen queue for messaging unix domain socket can fill up, leading to refused
connections. The caller needs to retry. This adds testing of the retry in LOCAL-MESSAGING
(This used to be commit 2c568d4dc2)
2007-10-10 12:59:58 -05:00
Andrew Tridgell
b071fe60d7 r3020: better error handling in socket_unix
(This used to be commit 64514ff5b7)
2007-10-10 12:59:58 -05:00
Andrew Tridgell
6723885121 r3019: make the LOCAL-MESSAGING test a 2 process test
(This used to be commit 68890247c1)
2007-10-10 12:59:58 -05:00
Andrew Tridgell
5882311fc4 r3018: handle STATUS_MORE_ENTRIES from socket_recv() in the messaging code
(This used to be commit 13739b68d8)
2007-10-10 12:59:58 -05:00
Andrew Tridgell
53891ed37e r3017: nicer memory handling for event_context_merge()
(This used to be commit 1cef44505e)
2007-10-10 12:59:58 -05:00
Andrew Tridgell
6591a22614 r3016: - converted the events code to talloc
- added the new messaging system, based on unix domain sockets. It
  gets over 10k messages/second on my laptop without any socket
  cacheing, which is better than I expected.

- added a LOCAL-MESSAGING torture test
(This used to be commit 3af06478da)
2007-10-10 12:59:57 -05:00
Andrew Tridgell
844de2b65c r3015: fixed typo noticed by abartlett
(This used to be commit b367209a9f)
2007-10-10 12:59:57 -05:00
Andrew Tridgell
8d1e35e243 r3014: got rid of the old intra-smbd messaging system in preparation for the new one
(This used to be commit 283e38aeb2)
2007-10-10 12:59:57 -05:00
Andrew Tridgell
f42402da83 r3013: added support for unix domain sockets in the generic socket library. I
will shortly be using this for a rewrite of the intra-smbd messaging
library, which is needed to get lock timeouts working properly (and
share modes, oplocks etc)
(This used to be commit 6f4926d846)
2007-10-10 12:59:57 -05:00
Andrew Tridgell
fef617c31b r3012: added initial support for byte range locking in the posix vfs. This is
enough for us to pass locktest, but does not yet support lock timeouts
and some of the other esoteric features.
(This used to be commit 58a92abd88)
2007-10-10 12:59:57 -05:00
Andrew Tridgell
f6da6a10de r3011: separated the locktest code into a separate module in smbtorture
(This used to be commit f4a91be635)
2007-10-10 12:59:57 -05:00
Tim Potter
85a2db200a r3010: Do some more PyInt vs PyLong checks.
(This used to be commit b19dc6cd9c)
2007-10-10 12:59:57 -05:00
Tim Potter
c7a762bc74 r3009: Fix up unmarshall functions to return Python dict instead of a NTSTATUS.
We can now unmarshall a single printer returned from an EnumPrinters.
(This used to be commit 89da7a9196)
2007-10-10 12:59:56 -05:00
Tim Potter
71aaba4ea7 r3007: uint32 values need to be stored in Python longs, as on 32-bit machines
Python ints can only hold int32 values.
(This used to be commit 7c5ada63bf)
2007-10-10 12:59:56 -05:00
Jelmer Vernooij
c209120056 r3006: Poptify
(This used to be commit 5c46747c36)
2007-10-10 12:59:56 -05:00
Andrew Tridgell
12ea0fd34c r3005: added talloc wrappers around tdb_open() and ldb_connect(), so that the
caller doesn't have to worry about the constraint of only opening a
database a single time in a process. These wrappers will ensure that
only a single open is done, and will auto-close when the last instance
is gone.

When you are finished with a database pointer, use talloc_free() to
close it.

note that this code does not take account of the threads process
model, and does not yet take account of symlinks or hard links to tdb
files.
(This used to be commit 04e1171996)
2007-10-10 12:59:56 -05:00
Andrew Tridgell
645067efc6 r3004: removed some unused functions
(This used to be commit 247421ee64)
2007-10-10 12:59:56 -05:00
Tim Potter
addb2a9fd4 r3001: Expose unmarshalling functions for structures marked "public" in the
idl.  This allows us to pass a buffer of bytes returned from a spoolss
call and convert it to a Python dictionary.  Works for enumprinters level
1!
(This used to be commit 4bc497a299)
2007-10-10 12:59:56 -05:00
Jeremy Allison
04767ce906 r2997: Added delete on close tests for readonly files.
Jeremy.
(This used to be commit 93efa87040)
2007-10-10 12:59:56 -05:00
Tim Potter
8f00427136 r2994: More cleanups. Move the generation of NTSTATUS and WERROR exceptions
from inside a swig %exception block and into the argout typemap.  This
will allow us to wrap functions that don't require exception handling, and
also get rid of some ugly code in dcerpc.i
(This used to be commit 558076cc8d)
2007-10-10 12:59:55 -05:00
Stefan Metzmacher
a8ce130383 r2993: fix comment
metze
(This used to be commit 23a2c5c158)
2007-10-10 12:59:55 -05:00
Stefan Metzmacher
1890e6a659 r2992: drsuapi uses WERROR not NTSTATUS
metze
(This used to be commit 757f67c08b)
2007-10-10 12:59:55 -05:00
Stefan Metzmacher
f4e4989cb7 r2991: add drsuapi_DsGetDomainControllerInfo() idl and torture test
metze
(This used to be commit 98ca7640c5)
2007-10-10 12:59:55 -05:00
Jelmer Vernooij
fe15b46d61 r2990: Add support to pidl for autogenerating ndr_size_*() functions. Adding
the [gensize] property to a struct or union will make pidl generate a
ndr_size_*() function.

(not all nasty bits of NDR are completely covered yet by the
 ndr_size*() functions, support for those will be added when necessary)

I also have a local patch (not applied now) that simplifies the pidl output
and eliminates the number of functions required. It would, however, make
pidl more complex.
(This used to be commit 7c823f886a)
2007-10-10 12:59:55 -05:00
Andrew Tridgell
42c810cea6 r2989: fix the printing of unions with negative cases when :print is used
(This used to be commit d8152f8961)
2007-10-10 12:59:55 -05:00
Andrew Tridgell
ddd1f092a5 r2988: this should fix support for negative switch levels in PIDL
(This used to be commit 21ed51d47f)
2007-10-10 12:59:55 -05:00
Andrew Tridgell
f1eaf60fa3 r2987: added support for signed 32 bit integers in pidl
(This used to be commit 24122eb93e)
2007-10-10 12:59:54 -05:00
Tim Potter
dc2df2530f r2986: Add correct value to dict when generating wrapper for functions that
return WERROR values.

Clean up WERROR vs NTSTATUS handling a bit.
(This used to be commit e6756e3ee0)
2007-10-10 12:59:54 -05:00
Andrew Tridgell
83928ac670 r2985: got rid of the unused tdb_lockkeys() and tdb_unlockkeys() functions
they have been broken for 4 years (ever since they were added) and
have been never used, which makes them prime candidates for
destruction.
(This used to be commit 0b53ab85aa)
2007-10-10 12:59:54 -05:00
Andrew Tridgell
9d9b42b059 r2984: fixed the error code for a non-terminal component of a path name not existing
(This used to be commit c6a922dbd8)
2007-10-10 12:59:54 -05:00
Andrew Tridgell
1edc2f95e3 r2983: report a failure if a server doesn't update the write time at all
after 2 minutes
(This used to be commit b2298a1c5f)
2007-10-10 12:59:54 -05:00
Andrew Tridgell
970ba3a736 r2982: added a test that shows the amount of time a server takes to update
the write time on a file after a write.
(This used to be commit efee3c90f9)
2007-10-10 12:59:54 -05:00
Jeremy Allison
ddd5f1163d r2981: Fix incorrect locks/unlocks in tdb_lockkeys()/tdb_unlockkeys().
Spotted by Taj Khattra <taj.khattra@gmail.com>.
Jeremy.
(This used to be commit a7d92301bb)
2007-10-10 12:59:54 -05:00
Tim Potter
acf657a7c2 r2975: Try to emulate NT_STATUS_IS_ERR() functionality for WERRORs. Unfortunately
this means enumerating all the ones we don't think are errors.
(This used to be commit a079e044f0)
2007-10-10 12:59:53 -05:00
Stefan Metzmacher
c88518cc0e r2974: fix the build
metze
(This used to be commit 1bb71e7a86)
2007-10-10 12:59:53 -05:00
Jelmer Vernooij
dc94f05f62 r2973: Allow comma's inside parentheses in property arguments
(This used to be commit ab2a788fe7)
2007-10-10 12:59:53 -05:00
Stefan Metzmacher
12f2ac5857 r2972: make names more consistent
metze
(This used to be commit 7aa91db53e)
2007-10-10 12:59:53 -05:00
Stefan Metzmacher
20ed511c1b r2971: fix DsBind idl
metze
(This used to be commit 9e50b3214b)
2007-10-10 12:59:53 -05:00
Stefan Metzmacher
64344b88d1 r2970: - give somefields names and typdef enums for the possible values
- do more crackname tests in the torture test

- move server code for cracknames to a different file

metze
(This used to be commit 18050ea603)
2007-10-10 12:59:53 -05:00
Andrew Tridgell
f345c4281a r2969: inet_ntoa() takes an address in network byte order, so now that we
parse the RHS as IDL, we need to use htonl() to convert back to
network byte order before we can display the IP
(This used to be commit 45508b85da)
2007-10-10 12:59:53 -05:00
Andrew Tridgell
da5cbd0886 r2968: fixed the byte order problem with the new RHS parsing on ncacn_ip_tcp
(This used to be commit cc00f9b6b8)
2007-10-10 12:59:53 -05:00
Tim Potter
b1a001e43f r2967: Add some printer enum constants from Samba3's rpc_spoolss.h
(This used to be commit 7983a99479)
2007-10-10 12:59:52 -05:00
Tim Potter
1c4b87c788 r2966: Handle conversion of DATA_BLOB fields from Python in a slightly nicer
manner.  I'm hoping to get rid of DATA_BLOB's but for the moment they
make it easy to get some spoolss action happening quickly.
(This used to be commit 15f8f73f8b)
2007-10-10 12:59:52 -05:00
Tim Potter
e3627c2c6e r2965: Ignore *.pyc files in torture directory.
Allow test module name to be specified on command line for pytorture
module.

Start spoolss torture test.
(This used to be commit 44bab84f76)
2007-10-10 12:59:52 -05:00
Tim Potter
913d5df89e r2964: Add spoolss to list of wrapped client functions.
(This used to be commit 96d31ff19d)
2007-10-10 12:59:52 -05:00
Tim Potter
1ddb14e22e r2963: Handle structures that contain more than one union as members.
(This used to be commit 6a47a079c0)
2007-10-10 12:59:52 -05:00
Tim Potter
9fb065f2a6 r2962: Tweak to get conversion function for pointers to union compiling again.
(This used to be commit 8c9c94d578)
2007-10-10 12:59:52 -05:00
Andrew Tridgell
70f182e8f5 r2961: fixed a silly typo
(This used to be commit f76a1cf640)
2007-10-10 12:59:52 -05:00
Andrew Tridgell
3c1fdfa7fb r2960: during a lunchtime discussion I found out that all powerpc processors
can correctly (and quickly!) handle unaligned little endian memory
accesses, just like i386. This should reduce code size and speeds
things up quite a lot on ppc, at the expense of some inline asm code
(whcih means it only works with gcc)
(This used to be commit 2a0c427c2b)
2007-10-10 12:59:51 -05:00
Andrew Tridgell
bcd6d19c50 r2958: the warnings from the swig code in pidl were totally swamping valid
warnings, making real errors impossible to spot.

this fixes the warnings, and probably fixes some pidl/python bugs as
well.
(This used to be commit 2f1e9954e3)
2007-10-10 12:59:51 -05:00
Jelmer Vernooij
24c0fbc0e8 r2956: Fix towers_length for now. I'm currently working on a pidl extension
that can generate these kinds of functions
(This used to be commit ebca251650)
2007-10-10 12:59:51 -05:00
Stefan Metzmacher
b5fde9d2df r2954: add server cracknames code:
- we currently only do it for our REALM

metze
(This used to be commit e2df8c4285)
2007-10-10 12:59:51 -05:00
Stefan Metzmacher
707661a87e r2953: add NTSTATUS_TALLOC_CHECK(x)
metze
(This used to be commit a2cc951720)
2007-10-10 12:59:51 -05:00
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