summaryrefslogtreecommitdiffstats
path: root/source3
Commit message (Collapse)AuthorAgeFilesLines
...
* fix the build of net: dos_errstr is replaced by win_errstr...Michael Adam2009-04-281-1/+1
| | | | | | | I had the patch locally but forgot to commit before pushing - sorry... Michael (cherry picked from commit 986a36fd30f7f65c7ef79b945f7b95014872f30f)
* In net_conf_import, start a transaction when importing a single share.Martin Schwenke2009-04-281-0/+8
| | | | | | | | | | | | | Commit d69c3db9d44ad5d9fd1f5d7a9499f3bd79ecfb47 caused the transaction start to be conditional but the commit is still unconditional, so an error occurs when importing a single share. An alternate fix would be to return the transaction start to be unconditional but then it would occur before other error checking. Signed-off-by: Martin Schwenke <martin@meltin.net> Signed-off-by: Michael Adam <obnox@samba.org> (cherry picked from commit e344341ddd46e45b2ecdaf604cdd5d64adab6343)
* s3-lsa: Fix Bug #6263. Unexpected LookupSids reply crashes XP pre-SP3.Günther Deschner2009-04-281-1/+9
| | | | | | | LookupSids needs to bounce back string sids in case of NT_STATUS_NONE_MAPPED. Guenther (cherry picked from commit 1c9266c8caa59e287b993393b6050732a0b33547)
* Fix bug #6089 - Winbind samr_OpenDomain not possible with Samba 3.2.6+Jeremy Allison2009-04-288-53/+45
| | | | | | | | What a difference a name makes... :-). Just because something is missnamed SAMR_ACCESS_OPEN_DOMAIN, when it should actually be SAMR_ACCESS_LOOKUP_DOMAIN, don't automatically use it for a security check in _samr_OpenDomain(). Jeremy. (cherry picked from commit 1994a8a5db5c3abd6292b81aa975e7b8fe8311d0)
* Remove the so-far unused lua-stuff for the 3.4 releaseVolker Lendecke2009-04-15103-28194/+3
| | | | (cherry picked from commit 0349dad1633cd9574e0d8c7d2054e4c7dd0fdc21)
* s3/configure: Disable the automatic merged build.Karolin Seeger2009-04-151-3/+4
| | | | | Karolin (cherry picked from commit 3b028d8609d29de2610d1c91d3098aa6002b90c4)
* s3-spoolss: Fix format of description string in spoolss_PrinterInfo1.Günther Deschner2009-04-151-10/+6
| | | | | | | | | This is what windows does and should get us closer to show the appropriate printer location string in explorer. Guenther (cherry picked from commit 4721be488ceb8229d564e4b63ca9937603394e51) (cherry picked from commit 90643d5d5457959cf18a4b99f6ecb1bb88886fe0)
* netdomjoin-gui: make sure to grey out change fields when not running as root.Günther Deschner2009-04-151-0/+15
| | | | | | Guenther (cherry picked from commit ca3de0103b545c86c8507dfc7d042f1838d5dfb2) (cherry picked from commit cb96e70a1d9112d9e4fff1fda4cf64abc7985347)
* s3-nsswitch: fix make test_wbpad.Günther Deschner2009-04-151-1/+1
| | | | | | Guenther (cherry picked from commit 1b9384a11f2957bcfbe9f23e023c79535d4a7bc9) (cherry picked from commit e7c9c2f279eaa424ba7cfecd0bfd827520640f5d)
* s3-svcctl: fix memcpy in _svcctl_EnumServicesStatusW().Günther Deschner2009-04-151-2/+1
| | | | | | | | | | Make sure we are not copying more than what we have as valid data. Fix from Jeremy. Thanks a lot for watching this so closely! Guenther (cherry picked from commit fa302020ee39bf39bf324983cf8e381232691e76) (cherry picked from commit 5fc2656e600791667835775c94a86f788abbcc1a)
* s3-spoolss: remove unused dup_nt_devicemode().Günther Deschner2009-04-152-29/+0
| | | | | | Guenther (cherry picked from commit e3ceb0c65333cb870463971021e3af24d82abf26) (cherry picked from commit 0f48d27d6fb45bc61899916037a5133e3022ec59)
* s3-rpcclient: add set_job command.Günther Deschner2009-04-151-0/+55
| | | | | | Guenther (cherry picked from commit fc056e561b95fb7869053bdec810e8c47e6c6dc2) (cherry picked from commit d99b3025eb54030e90d0c32b2967490d41a1e02a)
* 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-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)
* 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)
* 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)
* 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)
* 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)
* 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)
* 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)
* 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-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)
* 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)
* s3-eventlog: move rpc_server/srv_eventlog_lib.c out of rpc_server.Günther Deschner2009-04-153-2/+2
| | | | | | Guenther (cherry picked from commit 98d703a6b7c102db49b6cdc2a57545a90efefabf) (cherry picked from commit 76fdbdcb3a58d90d669101fe303e5ccc14992b26)
* s3-rpc-server: remove unused rpc_server/srv_util.c file.Günther Deschner2009-04-151-88/+0
| | | | | | Guenther (cherry picked from commit 5654f141a2067692992d3a83aa3b16fa59b6bab9) (cherry picked from commit 142c88e51f14d547a96d6e018ba395da4f2017be)
* s3-selftest: As Samba3 now passes RPC-SPOOLSS-WIN enable it against ourself.Günther Deschner2009-04-151-1/+1
| | | | | | Guenther (cherry picked from commit c1b354531faaef43d632f6a77c5eb04d39461069) (cherry picked from commit a8f99c883a90b1884eda614049b03e0607d427fb)
* s3-selftest: add root for make test as well (not only make selftest).Günther Deschner2009-04-151-0/+1
| | | | | | Guenther (cherry picked from commit fa7f2ffe5116dce69e89b990f816a32721474fb6) (cherry picked from commit 367fb7b7d28bcdd392ca60806a5f15b4ef260193)
* s3-util-sock: add ismyaddr() check in is_myname_or_ipaddr().Günther Deschner2009-04-151-0/+4
| | | | | | Guenther (cherry picked from commit 78951bd7f4d8bfe13691b3291151c8dedd8e29ef) (cherry picked from commit e674c9d469d9ae4d63cd34af04b2634f7c370573)
* s3-selftest: Samba3 passes RPC-SVCCTL so enable it during make test.Günther Deschner2009-04-151-0/+1
| | | | | | Guenther (cherry picked from commit 403422e1ea8f654a9dee12566b8b28c09fe301c8) (cherry picked from commit 98000d20c189697da4f3e8a1c1207c1d7369cc78)
* svcctl: use offered/needed for buffer sizes as in spoolss.Günther Deschner2009-04-151-14/+14
| | | | | | Guenther (cherry picked from commit 8e3145e55194cfef56fa792edbed724ef4bf111a) (cherry picked from commit ee6fe209ef2df223434faddc9b0e5ade7a677234)
* s3-svcctl: no need to define SVCCTL_NUM_INTERNAL_SERVICES twice in a file.Günther Deschner2009-04-151-2/+0
| | | | | | Guenther (cherry picked from commit b36fab0491a7f73ac9dffea6397167c5bdd82a2a) (cherry picked from commit 7109bb4fc38d9fa798e3bdd5e55b7825e10ceda8)
* s3:lib Use push_ucs2_talloc() in ms_fnmatch()Andrew Bartlett2009-04-151-7/+7
| | | | | | Signed-off-by: Günther Deschner <gd@samba.org> (cherry picked from commit 6859b805e84af91eca641ec1b91b844cbdab4065) (cherry picked from commit e27c0d668bd93f7d64a2fe0c6aef6edc63af64d4)
* s3-spoolss: set servername to global_myname() in set_printer_hnd_name().Günther Deschner2009-04-151-1/+1
| | | | | | | | | This allows spoolss_OpenPrinterEx to open a printer by printername. Now the Samba3 spoolss server passes the RPC-SPOOLSS-WIN test. Guenther (cherry picked from commit c5b24d65cdb1b32196681499dcaf23ea70e1019b) (cherry picked from commit 3db2ef0394a3fdb11c8a54777360cbcdb94c87da)
* s3:charcnv Remove unused unistrcpy() and unistrlen()Andrew Bartlett2009-04-152-39/+0
| | | | | | Signed-off-by: Günther Deschner <gd@samba.org> (cherry picked from commit 0c22d55134b39a6bc983b4f852f623a51af4d362) (cherry picked from commit 779ddf78f13940ef402331b68d86276241479a86)
* s3:rpc_parse remove unused prs_unistr2()Andrew Bartlett2009-04-152-39/+0
| | | | | | Signed-off-by: Günther Deschner <gd@samba.org> (cherry picked from commit 3277b19800c6c56a32b7641d293e496475d8c62a) (cherry picked from commit 92688cded5d6018ca9f4c1588f418da6297f7d61)
* s3:charcnv Remove unused unistr2 functionsAndrew Bartlett2009-04-152-121/+0
| | | | | | | | | | Natrually, the hard work to make these unsued was done by GD, not me :-) Andrew Bartlett Signed-off-by: Günther Deschner <gd@samba.org> (cherry picked from commit 80163b5ac5bfff3698aeb9c5c43a2cc94947055c) (cherry picked from commit 22e82a52ded2ae43edb20c0898bd0a9316e563a2)
* s3:charcnv Remove unused ucs2_to_unistr2()Andrew Bartlett2009-04-152-47/+0
| | | | | | Signed-off-by: Günther Deschner <gd@samba.org> (cherry picked from commit 5fff53882002bf5378690ddeb8251e2c99490266) (cherry picked from commit 6cf0e88ee6cefdab7d2d5f272e6d9e23005f9b61)