1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
Commit Graph

31604 Commits

Author SHA1 Message Date
Jeremy Allison
556b42a351 On compound requests, MS-SMB2 says clients MAY use 0xFFFFFFFF for compound tid and 0xFFFFFFFFFFFFFFFF for compound sessionid values. Cope with this.
Jeremy.
2010-04-07 10:32:01 -07:00
Jeremy Allison
146c1618e4 Don't forget to initialize *p_creds_requested.
Jeremy.
2010-04-07 10:31:43 -07:00
Andreas Schneider
eebc66ce32 s3-spoolss: Added a winreg_getform1 function.
Signed-off-by: Günther Deschner <gd@samba.org>
2010-04-07 15:16:53 +02:00
Andreas Schneider
c7fb84a58f s3-spoolss: Added a winreg_setform1 function.
Signed-off-by: Günther Deschner <gd@samba.org>
2010-04-07 15:16:53 +02:00
Andreas Schneider
0d46ab0f3e s3-spoolss: Added a winreg_deleteform1 function.
Signed-off-by: Günther Deschner <gd@samba.org>
2010-04-07 15:16:53 +02:00
Andreas Schneider
93575d6d70 s3-spoolss: Added a winreg_addform1 function.
Signed-off-by: Günther Deschner <gd@samba.org>
2010-04-07 15:16:53 +02:00
Andreas Schneider
fbd3235610 s3-spoolss: Added a winreg_enumforms1 function.
Signed-off-by: Günther Deschner <gd@samba.org>
2010-04-07 15:16:53 +02:00
Andreas Schneider
20e96d9243 s3-spoolss: Fixed winreg_printer_openkey to be used in a more generic way.
Signed-off-by: Günther Deschner <gd@samba.org>
2010-04-07 15:16:53 +02:00
Andreas Schneider
adfd4854fa s3-spoolss: Added a delete_printer_key function using the winreg pipe.
Signed-off-by: Günther Deschner <gd@samba.org>
2010-04-07 15:16:52 +02:00
Andreas Schneider
f0054d8361 s3-spoolss: Added a enum_printer_key function using the winreg pipe.
Signed-off-by: Günther Deschner <gd@samba.org>
2010-04-07 15:16:52 +02:00
Andreas Schneider
77d1b73a3e s3-spoolss: Added a delete_printer_dataex function using the winreg pipe.
Signed-off-by: Günther Deschner <gd@samba.org>
2010-04-07 15:16:52 +02:00
Andreas Schneider
e498338f6f s3-spoolss: Added a enum_printer_dataex function using the winreg pipe.
Signed-off-by: Günther Deschner <gd@samba.org>
2010-04-07 15:16:52 +02:00
Andreas Schneider
511dba5ae8 s3-spoolss: Added a get_printer_dataex function using the winreg pipe.
Signed-off-by: Günther Deschner <gd@samba.org>
2010-04-07 15:16:52 +02:00
Andreas Schneider
bc23545909 s3-spoolss: Added a set_printer_dataex function using the winreg pipe.
Signed-off-by: Günther Deschner <gd@samba.org>
2010-04-07 15:16:52 +02:00
Andreas Schneider
4f3893f814 s3-spoolss: Added a function to open a regkey using the winreg pipe.
Signed-off-by: Günther Deschner <gd@samba.org>
2010-04-07 15:16:52 +02:00
Günther Deschner
95b9c48ef1 s3-rpcclient: allow to define server_unc in cmd_srvsvc_srv_query_info().
Guenther
2010-04-07 14:41:13 +02:00
Björn Jacke
3fdebc0646 s3: add comment about what the FSCTL_QUERY_ALLOCATED_RANGES currently does 2010-04-07 12:22:47 +02:00
Jeremy Allison
3d113a6ffb Ensure we total up the correct number of creds requested in a compound request. 2010-04-06 16:31:26 -07:00
Jeremy Allison
9c410118cb Parameterize "smb2 max read", "smb2 max write", "smb2 max trans".
Set to 64k by default.

Jeremy.
2010-04-06 15:43:35 -07:00
Christian Ambach
96ae3ee803 fix a segfault in the notify subsystem
When the notify_array cannot be loaded correctly,
do not keep the half-baked parsing results in the global variable.

This can lead to segfaults next time notify_load is entered and
the seqnum has not changed. This has been seen in a case
where mixed smbd versions were running in a CTDB cluster
(versions with and w/o commit c216d1e6 that changed the
notify_entry structure).
There will be missed notifications until all smbds are at the
same software level, but this should be acceptable and is better
than crashing and interrupting client operations.

This fix cleans up the notify_array, removes the unparseable data
from the TDB and returns a fresh notify_array that can be worked
with.

The NDR_PRINT_DEBUG had to be moved to only be called when the
parsing succeeded, it was seen to cause additional segfaults.

The status variable is intentionally left to NT_STATUS_OK to not
make callers abort and report errors to the clients and make them
disconnect.

Signed-off-by: Christian Ambach <christian.ambach@de.ibm.com>
2010-04-06 14:09:06 +02:00
Andrew Tridgell
553324bc10 s4-waf: move to a universal method of recursing into subdirs
This works with both standalone lib builds and bundled builds
2010-04-06 20:27:25 +10:00
Andrew Tridgell
c2d17cf978 s4-waf: set default for bundled libraries 2010-04-06 20:27:12 +10:00
Andrew Tridgell
f9eae32f4b s4-waf: mark the wscript files as python so vim/emacs knows how to highlight them 2010-04-06 20:27:11 +10:00
Andrew Tridgell
a247ce8ef9 s3-waf: added options for static/shared module building
Pair-Programmed-With: Kai Blin <kai@samba.org>
2010-04-06 20:27:08 +10:00
Andrew Tridgell
ab343e037d s3-waf: build version.h 2010-04-06 20:27:08 +10:00
Andrew Tridgell
0b47bda816 s3-waf: charsets needs to be quoted as strings in config.h
Pair-Programmed-With: Kai Blin <kai@samba.org>
2010-04-06 20:27:08 +10:00
Andrew Tridgell
6b3a72dd45 s3-waf: fixed tests for charsets
Pair-Programmed-With: Kai
2010-04-06 20:27:08 +10:00
Kai Blin
ecafbd3ec8 s3-waf: check for default charsets 2010-04-06 20:27:07 +10:00
Andrew Tridgell
8f5551c4b3 s3-waf: use new variable expansion feature 2010-04-06 20:27:06 +10:00
Andrew Tridgell
b2f01b54d2 s3-waf: modulesdir is in the base set of options now 2010-04-06 20:27:06 +10:00
Andrew Tridgell
b4d34f849e s3-waf: the start of the main build for s3 2010-04-06 20:27:04 +10:00
Andrew Tridgell
e19196110c s3-waf: more configure tests and minor fixes 2010-04-06 20:27:04 +10:00
Andrew Tridgell
e642c5a155 s3-waf: added build subdir for dynconfig generation 2010-04-06 20:27:04 +10:00
Kai Blin
8f33da10da build: Change checks to conform to new CHECK_* behaviour 2010-04-06 20:27:04 +10:00
Kai Blin
38f8b86c77 build: Check if the compiler will optimize out functions 2010-04-06 20:27:03 +10:00
Kai Blin
f7569922d9 build: check for int types included from rpc/rpc.h 2010-04-06 20:27:03 +10:00
Kai Blin
3bc6cf8097 build: Check for POSIX capabilities 2010-04-06 20:27:03 +10:00
Kai Blin
22d9f3d7c5 build: Check for various members of struct stat 2010-04-06 20:27:03 +10:00
Kai Blin
ea76743394 build: Fix package name and package string case 2010-04-06 20:27:03 +10:00
Kai Blin
998a9da867 build: Check for functions needed by Samba3 2010-04-06 20:27:03 +10:00
Kai Blin
c37f6e649d build: Check for kernel share modes 2010-04-06 20:27:03 +10:00
Kai Blin
565191e39f build: Check for IRIX kernel oplock types 2010-04-06 20:27:03 +10:00
Kai Blin
23ba9ad6e2 build: Check for Linux kernel oplocks 2010-04-06 20:27:03 +10:00
Kai Blin
207869dbf4 build: Check for kernel change notify support 2010-04-06 20:27:02 +10:00
Kai Blin
048b821b29 build: check for inotify support 2010-04-06 20:27:02 +10:00
Kai Blin
208bb86aae build: check for headers needed to generate stack traces 2010-04-06 20:27:02 +10:00
Kai Blin
33ef088f3d build: Check for krb5 headers 2010-04-06 20:27:02 +10:00
Kai Blin
ac9d39d108 build: Check for LDAP libraries 2010-04-06 20:27:02 +10:00
Kai Blin
59074dcfb1 build: Check for CUPS 2010-04-06 20:27:02 +10:00
Kai Blin
41e8e54406 build: Add a basic wscript file for Samba3 2010-04-06 20:27:02 +10:00