summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* s3-rpcclient: add set_job command.Günther Deschner2009-04-151-0/+55
| | | | | | Guenther (cherry picked from commit fc056e561b95fb7869053bdec810e8c47e6c6dc2) (cherry picked from commit d99b3025eb54030e90d0c32b2967490d41a1e02a)
* s4-smbtorture: fix two valgrind warnings.Günther Deschner2009-04-151-0/+2
| | | | | | Guenther (cherry picked from commit 1dbb6530fa044fbbc65409238b5b57dfd0e850a3) (cherry picked from commit 4a12f9e09355236fc2d50651177197fc68b075e0)
* s4-smbtorture: disable test_SecondaryClosePrinter when running against s3 ↵Günther Deschner2009-04-151-4/+8
| | | | | | | | for now. Guenther (cherry picked from commit 56f5105400e1eda7baf5babe7ad1e608d0ffa04b) (cherry picked from commit 677b57deeb96e3e4c2b604abca29b6a49471fc01)
* s4-smbtorture: move test_ReplyOpenPrinter from RPC-SPOOLSS to ↵Günther Deschner2009-04-152-36/+36
| | | | | | | | RPC-SPOOLSS-NOTIFY. Guenther (cherry picked from commit 0f76e2d0bd8120d27ec6b782da6fb63407012fa2) (cherry picked from commit 03b5a3dd11c7e7300acf1c07d25c4374802d4fc5)
* s3-spoolss: fix typo in fill_printer_driver_info3().Günther Deschner2009-04-151-1/+1
| | | | | | Guenther (cherry picked from commit a79e1ce0488f80f40ddb4c9b32a7be4d5e1cb9d4) (cherry picked from commit 8f08c873a69c8a9a210ba0c1943a2f053c22b225)
* s3-loadparm: Fix resume command typo for "printing = vlp".Günther Deschner2009-04-151-1/+1
| | | | | | Guenther (cherry picked from commit e1a76de03aecb2e5e554c0594664a846efbbe65a) (cherry picked from commit 5fd2ea50e390c1d9ecee7e8473f94f8e0c366650)
* s3-spoolss: Fix permission checks for _spoolss_AddForm,SetForm and DelForm.Günther Deschner2009-04-151-12/+34
| | | | | | | | Found by smbtorture test. Guenther (cherry picked from commit 3ef0b8671ddf246e32b479443ce97851a671a1a8) (cherry picked from commit ed058b0cdace655b3080a06a7b2a7c717c4e21c1)
* s3: re-run make samba3-idl.Günther Deschner2009-04-153-3/+29
| | | | | | Guenther (cherry picked from commit baeee974495d1be18c61f74ce49a93cd02eac538) (cherry picked from commit d9a6162532129f28514b186dfddb502e958d2031)
* spoolss: add spoolss_DriverAttributes bitmask.Günther Deschner2009-04-151-2/+6
| | | | | | Guenther (cherry picked from commit 63b22a74f69cbc5035e8875d656041b5da975f66) (cherry picked from commit 8cf32e47823c624ed591eabd34531e2037e2e149)
* s3-spoolss: use enumprinterdrivers_level() for level 3 enum.Günther Deschner2009-04-151-67/+6
| | | | | | Guenther (cherry picked from commit 97ffd709f85ca0ecd101aac614fea19151394677) (cherry picked from commit 2b3eff6261767b9994b9efeee6c0c8dfc174b322)
* s3-spoolss: use enumprinterdrivers_level() for level 2 enum.Günther Deschner2009-04-151-66/+6
| | | | | | Guenther (cherry picked from commit 9b3d3e8aebac25c55b2bcfb3daf3ba3d7df9d280) (cherry picked from commit d264f7d1fd9020cd85e1ae822974e87c25eff759)
* s3-spoolss: use enumprinterdrivers_level() for level 1 enum.Günther Deschner2009-04-151-67/+7
| | | | | | Guenther (cherry picked from commit f325c342031d11d6133d417bdf57d918f4f10981) (cherry picked from commit 8e15179c5c8e30548727cbc07c8292e97600eacf)
* s3-spoolss: add generic enumprinterdrivers_level function.Günther Deschner2009-04-151-0/+86
| | | | | | Guenther (cherry picked from commit 0393c99302dc12f18f06db83201f096624682ea2) (cherry picked from commit 227ebae3ce2ddf3f65f3aeb446352912f1d3f906)
* s4-smbtorture: use printerinfo level 1 name, not description inGünther Deschner2009-04-151-4/+11
| | | | | | | | test_EnumPrinters_old(). Guenther (cherry picked from commit 81aca44d30783d1c162498a257fc47cc44a649fb) (cherry picked from commit 9948d33049864436bb2bb9b444822458c19156c8)
* s3: re-run make samba3-idl.Günther Deschner2009-04-152-73/+73
| | | | | | Guenther (cherry picked from commit 609e401b976a99ad82e37c2c3617684c8bb3e6c4) (cherry picked from commit 9f6d54aba0d3d0e0730c17d414a5231b8a46ede7)
* spoolss: fix order of strings in PrinterInfo1 structs.Günther Deschner2009-04-151-2/+2
| | | | | | Guenther (cherry picked from commit 3918ee88701942c35dc8ed957d507076ead8d3f5) (cherry picked from commit 8303246b3025e6dbda3c8f7e49ae394fd676323f)
* Fix a bug in smbclient not sending the correct called nameVolker Lendecke2009-04-151-1/+5
| | | | | | | | | | | | | | | 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 (cherry picked from commit f13763ca4be49c08dfc533e39dd338b508ba4709)
* We have to deny a level 2 oplock if kernel oplocks are enabledVolker Lendecke2009-04-151-0/+6
| | | | | | | | | | | | | | | | | | | | | | | 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. (cherry picked from commit 17962ba589f24b7d2a67474978d06e33adad56c2)
* Fix a memleak in an unlikely error path in change_notify_create()Volker Lendecke2009-04-151-0/+1
| | | | (cherry picked from commit fb8707e2c2d1657294b0660064e1b16590d1ca6c)
* socket_wrapper: fix crash bug in swrap_readv/writevStefan Metzmacher2009-04-151-4/+10
| | | | | | metze (cherry picked from commit f20f5ae8e6b9ca5c90441a3083f6904168388fdf) (cherry picked from commit 44576254f8c0d35327cfe8f9928f0efc987b5822)
* s3-spoolss: implement dummy _spoolss_AddPort().Günther Deschner2009-04-151-11/+12
| | | | | | Guenther (cherry picked from commit bc5cd077643bc73d93fa73970761f8d1708d14a9) (cherry picked from commit 4a4047c3b08412cfdd8c03b1994a925e10fc4c4a)
* s3-spoolss: add support for level 8 in _spoolss_GetPrinter().Günther Deschner2009-04-151-0/+37
| | | | | | Guenther (cherry picked from commit 65ee4ae30b952841e97f54c5eaa4d43ca66a02c1) (cherry picked from commit 55fc8bb906293b5d2a2ae0a6e64bdc7ef046b230)
* s3-eventlog: implement _eventlog_FlushEventLog().Günther Deschner2009-04-151-6/+15
| | | | | | Guenther (cherry picked from commit bcd042e595d63eae8cfc9e9d51e9567a4f9ccc63) (cherry picked from commit e6ff89bf11c14736863057e4b4db7ec9c3c71856)
* s3-eventlog: implement _eventlog_GetLogInformation().Günther Deschner2009-04-151-6/+44
| | | | | | Guenther (cherry picked from commit 9b585a1282a9211ae101072361aead86d123045e) (cherry picked from commit 9beaaddb4be46960576306b055f1cbbb05d4dae7)
* s3: re-run make samba3-idl.Günther Deschner2009-04-153-1/+34
| | | | | | Guenther (cherry picked from commit 2b0293d42b3daecbe41c760a1ea41235d24105d3) (cherry picked from commit f017b26f35ffeb8796f2ee97e5c29b896da1e7ac)
* eventlog: make EVENTLOG_FULL_INFORMATION a public struct.Günther Deschner2009-04-151-1/+1
| | | | | | Guenther (cherry picked from commit 7f74f27d6c60d46b51372a2d5c289788038daeb5) (cherry picked from commit 895945637c7cbcf70695cb8fbabf364ebff85548)
* Fix bug #6254 - PUT/GET produces an error in IPv6 to a smb-server(3.3) has ↵Jeremy Allison2009-04-151-18/+23
| | | | | | | | | | | | 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. (cherry picked from commit b8251a7e01304afce96cb0bee15a1fee2bd57490)
* s3-selftest: enable the RPC-NTSVCS torture test against Samba3.Günther Deschner2009-04-151-1/+1
| | | | | | Guenther (cherry picked from commit f930f504e1d5e78d2f6f36cab9ce36dbeb34e955) (cherry picked from commit cd4c88dbe6a292d9244165748b9121eae30d93d0)
* s3-ntsvcs: fix _PNP_GetDeviceList and _PNP_GetDeviceListSize.Günther Deschner2009-04-151-17/+24
| | | | | | Guenther (cherry picked from commit b7caf138518028507809bd6d356ec53b1564f0a1) (cherry picked from commit 0d64245da273bb4452e29bdd01e059ea91625559)
* s4-smbtorture: perform the ntsvcs devicelist tests against the Spooler service.Günther Deschner2009-04-151-18/+38
| | | | | | Guenther (cherry picked from commit c0b71db8e155c1d5e09b5be23ea681fd90955ac7) (cherry picked from commit b2d3a08c8f9f091fb3f9576d892ec2c80bb64a62)
* s3-rpcclient: allow to set flags in cmd_ntsvcs_get_dev_list().Günther Deschner2009-04-151-4/+8
| | | | | | Guenther (cherry picked from commit ade9ef19835b6464eeddd351a165eb4b9bf2366c) (cherry picked from commit 0f2314f2fc8d78736c009bf6ecab3247e1720672)
* error-codes: add WERR_CM_INVALID_POINTER.Günther Deschner2009-04-151-0/+1
| | | | | | Guenther (cherry picked from commit 43eb50655e71e5f407ffbd7069cc2d45a3b478b6) (cherry picked from commit 21eee66cd83db85701aafa4db898f85e1d941ec8)
* s3: re-run make samba3-idl.Günther Deschner2009-04-153-6/+51
| | | | | | Guenther (cherry picked from commit e4b4a07357920756f5bf0ca991ec8f4b38dc7968) (cherry picked from commit 59638bc290681e4d8bc11faa4cc36b70242b314f)
* ntsvcs: add PNP_GetIdListFlags flags.Günther Deschner2009-04-151-2/+17
| | | | | | Guenther (cherry picked from commit 7065b2b2ad604a3faf8df0e123e04ed7f532afda) (cherry picked from commit 4c1a5133ab73552fe1be80a50da1c44875e93340)
* s3-svcctl: minor fix for _svcctl_EnumDependentServicesW().Günther Deschner2009-04-151-0/+9
| | | | | | Guenther (cherry picked from commit 76da89daaadc358c836817cf597a1ff1489a9029) (cherry picked from commit fa1ca9ab110d43e1c56c8d28d8143c79891ff8a0)
* s4-smbtorture: add test_EnumDependentServicesW() to RPC-SVCCTL.Günther Deschner2009-04-151-1/+66
| | | | | | Guenther (cherry picked from commit 693c2e95294909292cd28982983681ea24912d28) (cherry picked from commit 09397f1889db4957218d780117b6ce312f03e638)
* s3: re-run make samba3-idl.Günther Deschner2009-04-154-12/+12
| | | | | | Guenther (cherry picked from commit 2d211450420ee4848d3c5ad73ce9d529a267c13a) (cherry picked from commit f1e3ae21d3d7a5f05b6306c25a5f0084ff549400)
* svcctl: use svcctl_ServiceState type for dependent calls in IDL.Günther Deschner2009-04-151-2/+2
| | | | | | Guenther (cherry picked from commit af32ab94eb5cb954328174f6809ff3c856d3ef6e) (cherry picked from commit 6fd320aa148a81fba79fcab4996cabc7d07224b2)
* s3-svcctl: Fix invalid buffer memset in _svcctl_QueryServiceObjectSecurity().Günther Deschner2009-04-151-1/+0
| | | | | | | | Found by torture-test. Guenther (cherry picked from commit 8b9f2abfcb956f3ad496cefcc9d8ced8eadf1470) (cherry picked from commit 8af57b3e79e401dc9f1d7e4223b1e4801dc0020d)
* s4-smbtorture: add test_QueryServiceObjectSecurity() to RPC-SVCCTL test.Günther Deschner2009-04-151-0/+55
| | | | | | Guenther (cherry picked from commit 1632a4ebabc7414c8fd05084cd7ca83fb9233297) (cherry picked from commit 658c00828f825c0a2ec8ed062dabe4c433811a75)
* s3-svcctl: Fix _svcctl_Set/GetServiceObjectSecurity after IDL changes.Günther Deschner2009-04-151-2/+3
| | | | | | Guenther (cherry picked from commit acd7fef984cba906163b7114a087ca3904e47566) (cherry picked from commit d3946e41a35eb64fd2f02b6a5c06954fb4539b5d)
* s3: re-run make samba3-idl.Günther Deschner2009-04-155-40/+40
| | | | | | Guenther (cherry picked from commit 0ee3c433c84cd740960216535f181b59bedbd374) (cherry picked from commit 1763968949d23b180e6905a35ea7862190cb9cf4)
* svcctl: Fix IDL for svcctl_QueryServiceObjectSecurity and Set call.Günther Deschner2009-04-151-6/+6
| | | | | | Guenther (cherry picked from commit f0d045be4fbbdc1cd3d76281b0cc3c2fc36e20de) (cherry picked from commit 38ff81c37ef26981c08ada5968d913303fc00cbe)
* s4-smbtorture: add test_QueryServiceConfigW() to RPC-SVCCTL.Günther Deschner2009-04-151-0/+44
| | | | | | Guenther (cherry picked from commit 9945d15a5d184dc9a809072b7c01e5ddff96d26b) (cherry picked from commit d837e55bf9e267ac42686b23d27ca81eaafb7ec7)
* s4-smbtorture: add test_QueryServiceStatus() to RPC-SVCCTL.Günther Deschner2009-04-151-0/+32
| | | | | | Guenther (cherry picked from commit 544113f9dd97b183bb510b92cf7626d93ac9bcf8) (cherry picked from commit 1d7a9c156602912c9935ed1da5dd67c1e0794952)
* s3-svcctl: Fix _svcctl_EnumServicesStatusW (again).Günther Deschner2009-04-151-3/+1
| | | | | | | | | The final plan is to use the same macro based code that we have in spoolss to handle the buffers and calculate the buffer-sizes. Guenther (cherry picked from commit d8a6ea8141fba4876b6674806b629748ecf41876) (cherry picked from commit a1513ce0851a64df0d80306b13e0ebd2fbfe28ce)
* s3-net: Fix Bug #5329: add "net rpc service delete/create".Günther Deschner2009-04-151-0/+204
| | | | | | | | Patch from Danny Tylman <danny.tylman@insightix.com>. Guenther (cherry picked from commit d0c307af56006d6fb898e395613d7e9c29b84116) (cherry picked from commit 75fbdebda09c1f6029194234cd9f5275a096bce7)
* error-codes: add some service related error codes.Günther Deschner2009-04-152-0/+6
| | | | | | | | Patch initially from: Danny Tylman <danny.tylman@insightix.com> Guenther (cherry picked from commit cc98d3ae9f5c1aa29a6ccda2f88351431849e9fd) (cherry picked from commit f29abd83d8bc7f7eee965fb7b812095f64c01f82)
* s4-smbtorture: fix test_ReportEventLog in RPC-EVENTLOG.Günther Deschner2009-04-151-2/+3
| | | | | | Guenther (cherry picked from commit 0be30e8ced4fd9a3afb72ee211cdcd2a66709f13) (cherry picked from commit e763c0a1a6fb8e578d9506ea79761800216863f6)
* s3-eventlog: split out evlog_convert_tdb_to_evt().Günther Deschner2009-04-153-52/+80
| | | | | | Guenther (cherry picked from commit 47bda3f3c7095044ae4c9b1535198be6d052060d) (cherry picked from commit eaf85ca22b441d4632eed0400c3ad61026a0f2ac)