summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* s3-net: Fix Coverity #886 (FORWARD_NULL).Günther Deschner2009-04-151-1/+1
| | | | | | Guenther (cherry picked from commit 2c186be0df33664eea980c17720be41f25f91288) (cherry picked from commit 990917cbe3f8cd00e2d13dd67ee752fffae94401)
* s3-samr: try to to fix password_expired flag handling.Günther Deschner2009-04-153-52/+161
| | | | | | Guenther (cherry picked from commit 842edcd2b08763a35dbdea3518fcc039aa70aad4) (cherry picked from commit 98dd60a0e85d37945deaa997d87f5cb173eaaea9)
* Fix crash in async_smb.cBo Yang2009-04-151-3/+6
| | | | (cherry picked from commit b20cace3a7c312f44f39390954bc087b888d9b27)
* add a versiontest program to print samba_version_string().Michael Adam2009-04-152-0/+30
| | | | | | | | This is to allow for testing samba_version_string() without the need to compile any of the larger binaries like smbd or net... Michael (cherry picked from commit a75c184cafbb80adb0a3b056e55608d2d263a0c6)
* version: fix handling of SAMBA_VERSION_VENDOR_PATCH.Michael Adam2009-04-151-1/+2
| | | | | | | We need a string version of this, or else version.c does not compile. Michael (cherry picked from commit 21bf5cac5f352f51432ad717b2e5051a3a63cac9)
* s3: Fix a free of an uninitialized variable in winbind_get_sid_aliasesDan Sledz2009-04-151-1/+0
| | | | (cherry picked from commit c50490e4af2f4270cf8b59f868b45630efb55efd)
* fix build on old Heimdal based systemsBjörn Jacke2009-04-151-5/+3
| | | | | | Signed-off-by: Günther Deschner <gd@samba.org> (cherry picked from commit 011ad7245d53a716c4c766f5ef8d317bb3a53d0f) (cherry picked from commit 3b74ba990e5b96e17ef76845551ab03fdddc59f8)
* s3:libsmb: always create bytes array in cli_trans codeStefan Metzmacher2009-04-151-5/+14
| | | | | | | | | | | Otherwise we return NO_MEMORY without a reason for fragmented trans requests, as talloc_append_blob() returns buf if we append a 0 length blob. When we pass buf = NULL we'll get back NULL and then assume NO_MEMORY... metze (cherry picked from commit 88dd6af605dc5754b7e146a068272d37651da710) (cherry picked from commit 5bbf96dd63227a19fe1f95ff8d8f2b3c75a5a497)
* s3:libsmb: fix smb signing for fragmented trans/trans2/nttrans requestsStefan Metzmacher2009-04-151-23/+7
| | | | | | | | | | | | | | | | | | | | | | | | Before we send the secondary requests we need to remove the old mid=>seqnum mapping and reset cli->mid and make the new mid=>seqnum mapping "persistent". The bug we had in cli_send_trans was this: The first cli_send_smb() incremented cli->mid and the secondary requests used the incremented mid, but as cli->outbuf still had the correct mid, we send the correct mid to the server. The real problem was that the cli_send_smb() function stored the seqnum under the wrong mid. cli_send_nttrans() was totally broken and now follows the same logic as cli_send_trans(). The good thing is that in practice the problem is unlikely to happen, because max_xmit is large enough to avoid secondary requests. metze (cherry picked from commit 880fbc4e8cd67de73c4bcda94489eb1e1422a04b) (cherry picked from commit 70466990b4b7c68ae95dbbcf741cd3f41f2dd0b3)
* s3:lib/util_sock: use sys_recv() instead of sys_read() on socketsStefan Metzmacher2009-04-151-2/+2
| | | | | | | | This ways the pcap support in socket wrapper sees the received data. metze (cherry picked from commit 0dfdb7b911ed4fe013fc4a22a8c3a28620277a67) (cherry picked from commit 6ec3d902e16edd6d911b6883f565ddf1938b47bf)
* fix some typosBjörn Jacke2009-04-151-3/+3
| | | | | Signed-off-by: Michael Adam <obnox@samba.org> (cherry picked from commit 4ce43918e6e942c4e50d30283e5a542f5f8465ad)
* Modify simple POSIX open test to use filenames containing a ':'Jeremy Allison2009-04-151-2/+2
| | | | | | character. Should stop regressions of bug #6196. Jeremy. (cherry picked from commit 69093de0a3ae958c214542bb4f374ed90ff1c82d)
* Allow DFS client paths to work when POSIX pathnames have beenJeremy Allison2009-04-151-2/+12
| | | | | | selected (we need to path in pathname /that/look/like/this). Jeremy. (cherry picked from commit 913d1f2af87fa449881a6fd2774a9dfdcb198fb4)
* Fix bug #6196 - Unable to serve files with colons to Linux CIFS/VFS clientJeremy Allison2009-04-151-2/+7
| | | | | | | Looks like the pathname parsing for POSIX paths got broken when the code for doing Windows streams parsing got added. Jeremy. (cherry picked from commit 8d8c25a34241c1b4a1d40d7ad02bd1e1baa605be)
* s3 onefs: Correctly error out when the read returns EOFTim Prouty2009-04-151-5/+9
| | | | | Also add some more debugging. (cherry picked from commit a398deb3fe71a6c4c237b1f64dd7bbb8cb6bfa28)
* Fix bug #6195 - Migrating from 3.0.x to 3.3.x can fail to update passdb.tdb ↵Jeremy Allison2009-04-152-19/+206
| | | | | | | | | | correctly. This is a really nasty one to fix as in order to successfully update the passdb.tdb we must do the equivalent of a tdbbackup to move to the new hash values before we do the upgrade. Jeremy. (cherry picked from commit 8e1c29a8be7ea21a6998b77e872bcef90160ee83)
* s3: remove POLICY_HND.Günther Deschner2009-04-1543-376/+360
| | | | | | Guenther (cherry picked from commit 531af136f9dd5c6050f78948837294aed02de440) (cherry picked from commit 91216ffa95b4ed53e54b11665e96b911cb4e4ab5)
* s3-rpc_parse: remove some unused parsing code.Günther Deschner2009-04-152-351/+0
| | | | | | Guenther (cherry picked from commit 7d7b1a8dcc338ea037cc02ef1b2dd9e9f6ce0943) (cherry picked from commit 032113b3fe5a8fa06672256cbc028833b519b83f)
* s3-spoolss: fix _spoolss_GetPrinterData printerserver handle query error code.Günther Deschner2009-04-151-1/+1
| | | | | | | | | | | When _spoolss_GetPrinterData receives a query on a printserver handle for a value that we have not stored or do not provide, we need to return WERR_INVALID_PARAM, not WERR_BADFILE. Tested with w2k and w2k3 servers. Found by torture test. Guenther (cherry picked from commit a1256594b047061d5fce8b7b4234dc725462392d) (cherry picked from commit 4a62b839c64ce309245a6167388f78e63918c5c4)
* s3-spoolss: fix _spoolss_EnumPrinterDataEx error path.Günther Deschner2009-04-151-0/+4
| | | | | | | | | | When a windows clients queries the "" key, we need to make sure to return with the appropriate error (WERR_INVALID_PARAM in that case), and not fall through to the buffer size handling macros. Found by torture test. Guenther (cherry picked from commit 43182fdff89bc5c238e7a90cf93500cef850ecd5) (cherry picked from commit 095eb03b14a7ddf4194dcafb618100c768369f1d)
* s3-rpc_parse: remove unused BUFFER5 and UNISTR3.Günther Deschner2009-04-155-183/+0
| | | | | | Guenther (cherry picked from commit 7a85a87edf3a589235b932a3c802278e78da4ec5) (cherry picked from commit 5bc2518950cce45dcbdccf17439c11a3d959f97d)
* s3-rpc_client: remove unused CLI_DO_RPC_WERR macro.Günther Deschner2009-04-151-30/+0
| | | | | | Guenther (cherry picked from commit e966719049702827c482c5e19783b9a7c725bdb1) (cherry picked from commit e1055c372a3b77fdd28f17635465a7a0a9c578fa)
* s3-smbcontrol: use correct PRINTER_NOTIFY flags.Günther Deschner2009-04-151-3/+3
| | | | | | Guenther (cherry picked from commit 21391f7fbe6c92ba050462750571cda661f5fb8a) (cherry picked from commit 6ac0a8d45e14deede30f56ab8c4d8288b83f15b4)
* spoolss: add my copyright.Günther Deschner2009-04-154-1/+4
| | | | | | Guenther (cherry picked from commit 9d1ab9a0013127d08bad01975a5204e8f63b9ddc) (cherry picked from commit ecc7537b6b0c7921160448b97a3cd8df1f4c77cf)
* s3-spoolss: remove include/rpc_spoolss.h.Günther Deschner2009-04-152-168/+0
| | | | | | Guenther (cherry picked from commit 7fbdf8aae93f143c879de705936279f42eb8ee6f) (cherry picked from commit 2471cb64f7d2d2e7eb594b1cf904af9d6befd389)
* s3-spoolss: remove rpc_server/srv_spoolss.c alltogether.Günther Deschner2009-04-154-601/+5
| | | | | | Guenther (cherry picked from commit 36d07858069ed8710a0ad822535074bed77ec130) (cherry picked from commit 931e48a757d40fb4dd5099560fe31afad201464c)
* s3-spoolss: remove rpc_parse/parse_spoolss.c alltogether.Günther Deschner2009-04-153-33/+1
| | | | | | | | Good-Bye, last hand-marshalled rpc functions, rest in peace. Guenther (cherry picked from commit a502392541bcb45babbb8ca57e17306aa726ee9b) (cherry picked from commit 82e78e67e00863437ef26914ff8d85007509b620)
* s3-spoolss: remove old spoolss_EnumPrinterDataEx.Günther Deschner2009-04-153-294/+0
| | | | | | Guenther (cherry picked from commit a4e999c7e3214de26bdc7a20d5ec25d4ffdf152d) (cherry picked from commit 92a9ede4ffc82a66531e716535db34416b387340)
* s3-spoolss: use pidl for _spoolss_EnumPrinterDataEx.Günther Deschner2009-04-153-115/+60
| | | | | | | | | | Please note that this has been the last call in samba3 that was using hand-marshalled rpc. With this commit all named pipe rpc services in samba3 have now fully moved to pidl generated code :-) Guenther (cherry picked from commit 0cfb1aea29929c0605d299d71784787aa516bc2a) (cherry picked from commit 0a20f7df770f2d460ff4034baf3ad29a96be4dd3)
* s3-spoolss: use printer and job notify enums provided by idl.Günther Deschner2009-04-153-109/+109
| | | | | | Guenther (cherry picked from commit 31106cdace883de16d5810386d69fc3da7d37c61) (cherry picked from commit 5b1035546673343f922679a1280b5203c1c1abc4)
* s3-spoolss: fix spoolss server after spoolss_Field changes.Günther Deschner2009-04-152-12/+12
| | | | | | Guenther (cherry picked from commit e61c9ca36d48167ea14d7d7cc41ac43a803d3aca) (cherry picked from commit a5fc8ef7e61442c14f0f39bb86ae57a50ddedc95)
* s3-rpcclient: fix spoolss notify test after spoolss_Field changes.Günther Deschner2009-04-151-4/+4
| | | | | | Guenther (cherry picked from commit 8b730ca1d8431d8d1eddee9523c64e60e06bc59c) (cherry picked from commit 0a876be5de06d0ca627bfdfe8769c08c5876f436)
* s4-smbtorture: fix spoolss notify test after spoolss_Field changes.Günther Deschner2009-04-151-4/+4
| | | | | | Guenther (cherry picked from commit 9744a7058c1f4805c9ca12080fd8ccffe3a038b8) (cherry picked from commit d63021ec7bc1b0dcfa500c258116bca268f71079)
* spoolss: add custom ndr_print_spoolss_Field.Günther Deschner2009-04-152-0/+23
| | | | | | Guenther (cherry picked from commit 65151077b31e8cc4a8bfedd8fb4a186804d36b9a) (cherry picked from commit 9fb3b11b9846ec259f9fffd629db59567db10f18)
* s3: re-run make samba3-idl.Günther Deschner2009-04-153-90/+288
| | | | | | Guenther (cherry picked from commit 0e21ea39d51583d9395628255dc34c173629a724) (cherry picked from commit c39be71ac70155c19098737d6dce42772b5bf9c6)
* spoolss: make spoolss_Field a nodiscriminant union of 2 sets of notify flag ↵Günther Deschner2009-04-151-30/+65
| | | | | | | | enums. Guenther (cherry picked from commit f9ddc6ae4ac750dd349f8103d045eb23bc4416a0) (cherry picked from commit 5c2b396dde289a6f37bb9cb40ae1ef6ec784818e)
* s3:winbindd: accept new connections via fd eventsStefan Metzmacher2009-04-151-52/+100
| | | | | | metze (cherry picked from commit 93c2057c8b5a3976cda65a9d27dc4dbb9c5c550a) (cherry picked from commit 00b65cc6ebcb4c67259e7fa618f6d961f7117396)
* s3:winbindd: move non event related code out of process_loop() in the the callerStefan Metzmacher2009-04-151-22/+21
| | | | | | metze (cherry picked from commit 3b8dd79f2bc775ed94130565ec2c4383a4864348) (cherry picked from commit ca31920af281ba9ea8f466ed0264118737a1b055)
* s3:winbindd: remove unused close_winbindd_socket() functionStefan Metzmacher2009-04-152-19/+0
| | | | | | metze (cherry picked from commit 0685031ccfc09feb0ad070df1c1a1d0cef5874f2) (cherry picked from commit e270b4f0f62699469cbaad024c893fe84142a256)
* s3:smbd: use tevent_loop_once() in the parent event loopStefan Metzmacher2009-04-151-34/+5
| | | | | | metze (cherry picked from commit 450252d2a1981fb04eb62eb095c1b762a96f7727) (cherry picked from commit 3ccc0bd5ea15da6b4daa53d9dcfb6a283330493d)
* s3:printing: use tevent_loop_wait() instead of manual loopingStefan Metzmacher2009-04-151-50/+6
| | | | | | metze (cherry picked from commit b659daf81f31678f7447545d015bd9d1db8811b9) (cherry picked from commit c43ef1f1eeb9176cda0d69b5f17c2b4885a0772b)
* s3:printing: use a fd event to monitor the pipe to the parentStefan Metzmacher2009-04-151-3/+23
| | | | | | metze (cherry picked from commit 339ea0503d5ce3bf85cf61528956345c73c668c6) (cherry picked from commit c9eac30fbbd4af6d73b803b19f0dec8ce72baf59)
* s3:smbd: don't exit the parent when we have no connectionsStefan Metzmacher2009-04-151-7/+0
| | | | | | | | | | This code path can't really happen anymore, because launchd support was removed with commit e5a951325a6cac8567af3a66de6d2df577508ae4. But it's confusing to have that code there... metze (cherry picked from commit 445b37f4f35ff4256c46dbacc2d3b3a1e47e62b2) (cherry picked from commit a527e24b80abf5aeaafdd67db21b5b021d1effe0)
* s4:build: require tevent 0.9.5Stefan Metzmacher2009-04-151-1/+1
| | | | | | metze (cherry picked from commit e95d0b548e344dbc8cb3dd0a0f29854711bd0cac) (cherry picked from commit a6a4acddbcfcb36d581c1c7d15ddb8405c0b2bb2)
* tevent: change version to 0.9.5 after the ABI has changedStefan Metzmacher2009-04-151-1/+1
| | | | | | metze (cherry picked from commit 7d07266ca26f7069269601043b713a91f1a4693c) (cherry picked from commit c0a0f504e1477648542aae27b8a58d4db4867d84)
* tevent: store the location where a request was finishedStefan Metzmacher2009-04-153-19/+48
| | | | | | | | | | | This is very useful to find bugs. You can use 'p *req' in gdb to show where tevent_req_done(), tevent_req_error() or tevent_req_nomem() was called. metze (cherry picked from commit 9eaf53d98eced9ea70f411b9936b475c42e4d490) (cherry picked from commit 8053941b377d3fd2e58e67f68eecb2551be49c10)
* tevent: use an immediate event as trigger for tevent_queueStefan Metzmacher2009-04-152-42/+60
| | | | | | metze (cherry picked from commit 3a831e46204979550dc6ee7652cea6b8296f10c1) (cherry picked from commit 7fcb16a79681a24ca3b96ec73bc44b43e57c3c8f)
* tevent: use an immediate event fot tevent_req_post()Stefan Metzmacher2009-04-152-19/+13
| | | | | | | | Now tevent_req_post() never fails metze (cherry picked from commit 4bdf299385220988a4fe16f82aab528283204c7f) (cherry picked from commit d88a254c5d2fbdda642d469924411d4d6d5f8422)
* tevent: use TALLOC_FREE() in tevent_req.cStefan Metzmacher2009-04-151-9/+5
| | | | | | metze (cherry picked from commit a78cd2a24b818bc7d843a8e56ffaafc9f6578662) (cherry picked from commit 54af7b9da45dcef881d9fee7c414d363ca6cdab4)
* s3:events: add support for immediate eventsStefan Metzmacher2009-04-151-9/+15
| | | | | | metze (cherry picked from commit 6c290586e41b3f5f7748a5b8c782be67cafe6c57) (cherry picked from commit ba8a0b59d6f486f09d73e0bcac5712584c9580cc)