1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-31 01:48:16 +03:00

52896 Commits

Author SHA1 Message Date
Günther Deschner
9b3d3e8aeb s3-spoolss: use enumprinterdrivers_level() for level 2 enum.
Guenther
2009-04-13 16:12:49 +02:00
Günther Deschner
f325c34203 s3-spoolss: use enumprinterdrivers_level() for level 1 enum.
Guenther
2009-04-13 16:12:42 +02:00
Günther Deschner
0393c99302 s3-spoolss: add generic enumprinterdrivers_level function.
Guenther
2009-04-13 16:12:35 +02:00
Günther Deschner
81aca44d30 s4-smbtorture: use printerinfo level 1 name, not description in
test_EnumPrinters_old().

Guenther
2009-04-13 16:10:50 +02:00
Günther Deschner
609e401b97 s3: re-run make samba3-idl.
Guenther
2009-04-13 16:10:39 +02:00
Günther Deschner
3918ee8870 spoolss: fix order of strings in PrinterInfo1 structs.
Guenther
2009-04-13 16:10:31 +02:00
Volker Lendecke
94d3047de1 Use convert_string_talloc, thanks Andrew! 2009-04-13 09:30:18 +02:00
Volker Lendecke
3c10d06524 We have to deny a level 2 oplock if kernel oplocks are enabled
The second r/o opener of a file is supposed to get a level2 oplock. The first
opener due to the protection in process_oplock_break_message() has been forced
to break to no oplock. The second opener according to locking.tdb gets a level2
oplock. Further down in open_file_ntcreate we try to set this level2 oplock in
the kernel, and the non-clustered Linux kernel disallows this. The rules for
the kernel leases are a bit baroque, but the attempt to do the SETLEASE
correctly fails and we end up with no oplock for any client.

In the clustered case however the linux kernel on the second opening node has
not seen the open fd of the first node, it is only the cluster fs that has this
information. If the cluster fs does not have the very same notion of leases as
the local kernel has, we can end up with a WRLCK style kernel lease for the
second opener where locking.tdb only indicates a level2 oplock. Getting a
kernel oplock break signal with just a level2 oplock in locking.tdb is
something smbd is not prepared for. For example after sending out the break in
response to the kernel signal we set a timeout, waiting for a reply.

More work needs to be done to make level2 kernel oplocks real for us. This
patch addresses a real problem we have right now without them.
2009-04-12 14:56:23 +02:00
Volker Lendecke
602059a6ab Fix a bug in smbclient not sending the correct called name
Jeremy, I think the ability to say

smbclient //foo/bar -I <ip-address> -p 139

making the called name to "foo" got lost with 3d2d0203. Was this removed
deliberately? If so, please revert this patch. If not, please merge
appropriately.

Thanks,

Volker
2009-04-12 14:51:15 +02:00
Volker Lendecke
b742b4547e Add "netbios retarget"
This is fun -- XP still does this :-)

netbios retarget : foo = 192.168.234.10:1139

and if you connect to port 139 name foo, XP will happily do SMB over 1139
2009-04-12 14:51:15 +02:00
Volker Lendecke
dcda3ab8ca Reactivate get_socket_port 2009-04-12 14:51:15 +02:00
Volker Lendecke
c344ad3043 write_data already guarantees everything was written 2009-04-12 14:51:15 +02:00
Volker Lendecke
a36472dd38 Extract and print the server name type the client connects to 2009-04-12 14:51:15 +02:00
Volker Lendecke
e9569ae925 Fix some nonempty blank lines 2009-04-11 11:06:21 +02:00
Volker Lendecke
5fc9ca93f3 Fix a memleak in an unlikely error path in change_notify_create() 2009-04-11 11:06:21 +02:00
Volker Lendecke
ea6094d2cb Use talloc_tos() for a temp convert_string_allocate() 2009-04-11 11:06:21 +02:00
Jeremy Allison
2ff80f0d76 Link in the threads functions, not yet used.
Jeremy.
2009-04-10 14:45:45 -07:00
Stefan Metzmacher
971c30a4fc s4:rpc_server: split out the parsing of the ncacn_packet from analyzing of the content
metze
2009-04-10 19:38:30 +02:00
Stefan Metzmacher
225a4f7cc2 s4:rpc_server: report available output for all replies
metze
2009-04-10 19:38:30 +02:00
Stefan Metzmacher
f20f5ae8e6 socket_wrapper: fix crash bug in swrap_readv/writev
metze
2009-04-10 19:38:29 +02:00
Günther Deschner
bc5cd07764 s3-spoolss: implement dummy _spoolss_AddPort().
Guenther
2009-04-10 13:25:09 +02:00
Günther Deschner
65ee4ae30b s3-spoolss: add support for level 8 in _spoolss_GetPrinter().
Guenther
2009-04-10 13:25:01 +02:00
Günther Deschner
bcd042e595 s3-eventlog: implement _eventlog_FlushEventLog().
Guenther
2009-04-10 13:15:25 +02:00
Günther Deschner
9b585a1282 s3-eventlog: implement _eventlog_GetLogInformation().
Guenther
2009-04-10 13:15:24 +02:00
Günther Deschner
2b0293d42b s3: re-run make samba3-idl.
Guenther
2009-04-10 13:15:24 +02:00
Günther Deschner
7f74f27d6c eventlog: make EVENTLOG_FULL_INFORMATION a public struct.
Guenther
2009-04-10 13:15:24 +02:00
Jeremy Allison
7f10bf980e Merge branch 'master' of ssh://jra@git.samba.org/data/git/samba 2009-04-09 22:46:59 -07:00
Jeremy Allison
f8f68703da Fix bug #6254 - PUT/GET produces an error in IPv6 to a smb-server(3.3) has parameter "msdfs root = yes"
This was broken by the refactoring around create_file().
MSDFS pathname processing must be done FIRST.
MSDFS pathnames containing IPv6 addresses can
be confused with NTFS stream names (they contain
":" characters.
Jeremy.
2009-04-09 22:44:56 -07:00
Günther Deschner
f930f504e1 s3-selftest: enable the RPC-NTSVCS torture test against Samba3.
Guenther
2009-04-10 01:07:01 +02:00
Günther Deschner
b7caf13851 s3-ntsvcs: fix _PNP_GetDeviceList and _PNP_GetDeviceListSize.
Guenther
2009-04-10 01:06:57 +02:00
Günther Deschner
c0b71db8e1 s4-smbtorture: perform the ntsvcs devicelist tests against the Spooler service.
Guenther
2009-04-10 01:06:56 +02:00
Günther Deschner
ade9ef1983 s3-rpcclient: allow to set flags in cmd_ntsvcs_get_dev_list().
Guenther
2009-04-10 01:06:56 +02:00
Günther Deschner
43eb50655e error-codes: add WERR_CM_INVALID_POINTER.
Guenther
2009-04-10 01:06:55 +02:00
Günther Deschner
e4b4a07357 s3: re-run make samba3-idl.
Guenther
2009-04-10 01:06:55 +02:00
Günther Deschner
7065b2b2ad ntsvcs: add PNP_GetIdListFlags flags.
Guenther
2009-04-10 01:06:51 +02:00
Günther Deschner
76da89daaa s3-svcctl: minor fix for _svcctl_EnumDependentServicesW().
Guenther
2009-04-09 16:42:28 +02:00
Günther Deschner
693c2e9529 s4-smbtorture: add test_EnumDependentServicesW() to RPC-SVCCTL.
Guenther
2009-04-09 16:42:22 +02:00
Günther Deschner
2d21145042 s3: re-run make samba3-idl.
Guenther
2009-04-09 16:41:56 +02:00
Günther Deschner
af32ab94eb svcctl: use svcctl_ServiceState type for dependent calls in IDL.
Guenther
2009-04-09 16:41:55 +02:00
Günther Deschner
8b9f2abfcb s3-svcctl: Fix invalid buffer memset in _svcctl_QueryServiceObjectSecurity().
Found by torture-test.

Guenther
2009-04-09 15:08:29 +02:00
Günther Deschner
1632a4ebab s4-smbtorture: add test_QueryServiceObjectSecurity() to RPC-SVCCTL test.
Guenther
2009-04-09 14:52:30 +02:00
Günther Deschner
acd7fef984 s3-svcctl: Fix _svcctl_Set/GetServiceObjectSecurity after IDL changes.
Guenther
2009-04-09 14:51:21 +02:00
Günther Deschner
0ee3c433c8 s3: re-run make samba3-idl.
Guenther
2009-04-09 14:41:36 +02:00
Günther Deschner
f0d045be4f svcctl: Fix IDL for svcctl_QueryServiceObjectSecurity and Set call.
Guenther
2009-04-09 14:41:29 +02:00
Günther Deschner
9945d15a5d s4-smbtorture: add test_QueryServiceConfigW() to RPC-SVCCTL.
Guenther
2009-04-09 14:33:37 +02:00
Günther Deschner
544113f9dd s4-smbtorture: add test_QueryServiceStatus() to RPC-SVCCTL.
Guenther
2009-04-09 14:33:28 +02:00
Andrew Tridgell
65ad2ced60 Merge branch 'wspp-schema' 2009-04-09 14:40:19 +10:00
Andrew Tridgell
9d50c6b603 enable testing of possibleInferiors generation 2009-04-09 14:37:52 +10:00
Andrew Tridgell
87506b4a19 make the memory usage of possibleInferiors much more efficient 2009-04-09 14:29:36 +10:00
Andrew Tridgell
fd7c52231f added _const versions of some of the str_list_*() functions
These const versions don't copy the strings themselves, which
is useful when those strings point at known constant data (into the
schema in this case)
2009-04-09 14:28:38 +10:00