summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* lib/tevent: remove spectacularly complicated manual subtractionRusty Russell2009-09-091-4/+1
| | | | | | | | | | | | | To be completely honest, I don't quite know whether to laugh or cry at this one: 1 + (0xFFFFFFFF & ~(s.seen - s.count)) == 1 + (~(s.seen - s.count)) # s.seen, s.count are uint32_t == s.count - s.seen # -A == ~A + 1 Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (cherry picked from commit 4279879c9847ca069527e11ca934b8906009cad8) (cherry picked from commit fdcc157d51cce8561df37fa9eed39332772bacb9)
* tevent: avoid using reserved c++ word.Günther Deschner2009-09-091-1/+1
| | | | | | Guenther (cherry picked from commit 965a079535bd11a7870d45991a0d0628d6579b3b) (cherry picked from commit c78d2a86f7410b6e09d0c326233e06f09dfc6ddb)
* Fix for bug 6651 - smbd SIGSEGV when breaking oplocks. Based on a patch ↵Jeremy Allison2009-09-091-17/+54
| | | | | | submitted by Petr Vandrovec <petr@vandrovec.name>. Multiple pending signals with siginfo_t's weren't being handled correctly leading to smbd abort with kernel oplock signals. Jeremy (cherry picked from commit ba52f18bfecfd7b0ba22c4ad9e9b5bfd18f34c93) (cherry picked from commit 4c63af17eda7e22fd6c258524204a44879006db7)
* tevent: fix a commentMichael Adam2009-09-091-1/+1
| | | | | | Michael (cherry picked from commit 5270efab1a8dd06158aa45467958939b677e4b7b) (cherry picked from commit 1157ff3353b528d285f456d8e946d98bf202a560)
* tevent: change version to 0.9.7 after adding tevent_req_cancel infrastructureStefan Metzmacher2009-09-091-1/+1
| | | | | | metze (cherry picked from commit 97a1ed53ca4255ac7fc5643292019ad30c276de5) (cherry picked from commit 6e8becce900e7686dcd81307722105d175103c06)
* tevent: add tevent_req_cancel() infrastructureStefan Metzmacher2009-09-093-0/+70
| | | | | | | | | This offers a generic way for callers to cancel an async request. metze (cherry picked from commit 45e4be0d96abdc729252df1e97bb9a56302e5a4a) (cherry picked from commit 0a14a3daa8c1f6d402865b8b1f24d91c64085176)
* tevent: add some more doxygen comments for tevent_req functionsStefan Metzmacher2009-09-091-0/+38
| | | | | | metze (cherry picked from commit 95c3d3b5d8fdc05f20c826a48312f1230f036029) (cherry picked from commit f6d54b0db737f3474820b491488c68de41e8e659)
* tevent: try to fix the build on QNX qnx18 6.4.1 it doesn't have SA_RESTART ↵Stefan Metzmacher2009-09-091-1/+11
| | | | | | | | defined metze (cherry picked from commit 39684d2cbe1c8c69dc9ca5c6e05861e24091bb83) (cherry picked from commit 80d62cc788211cf2783e315359f832a95b88cdc5)
* Change to talloc_zero_size instead of extra memset. Jeremy. (cherry picked ↵Jeremy Allison2009-09-091-2/+1
| | | | | | from commit 5927ca7067a0ead65c00042a62545b0d940f2b2a) (cherry picked from commit 5a66d5776923647169ab2ae816f6a632b0f4e8aa)
* When tallocing a memory block for the state in a tevent_req struct, ensure ↵Jeremy Allison2009-09-091-0/+1
| | | | | | it's zeroed out. Vl & Metze please check. Jeremy. (cherry picked from commit 7be1d727a31b34debbcf8faa1e0bea911112d145) (cherry picked from commit 620dde3a0fa246ebac35e64f1a99f56415b15e97)
* Sort the signature files (cherry picked from commit ↵Stefan Metzmacher2009-09-092-45/+45
| | | | | | 7119241c0d12768b31ebdb489aa0bbba6ca21e40) (cherry picked from commit be0191b0c416f2fbf03d2cdb0a5ea3e8ce3d58e9)
* Expose functions need by backend writersSimo Sorce2009-09-095-52/+67
| | | | | | | | | move publicly needed structures and functions in the public header. Stop installing internal headers. Update the signature and exports files with the new exposed function. (cherry picked from commit 30b2014a01b31d66dd76e0562c5d769dfacf167b) (cherry picked from commit 3ee857b058780fd3df915d8dab3e7d4ede682ce8)
* Revert "For tevent to install tevent_util.h"Simo Sorce2009-09-091-1/+0
| | | | | | | | This reverts commit b112cc5503350b248949bdbcce8072f5523ce877. tevent_util.h is a private header. Must not be installed. (cherry picked from commit c92505817d6453c100ed52c9c3ab289f5589ce25) (cherry picked from commit 1e460e95956e9c1352ad9879ed2a9833b96b8746)
* For tevent to install tevent_util.hEric Sandall2009-09-091-0/+1
| | | | | | | | | Patch for bug #6270 This patch is for the future when samba4 builds using external libraries. With this patch, tevent now installs tevent_util.h which is required by samba4. (cherry picked from commit b112cc5503350b248949bdbcce8072f5523ce877) (cherry picked from commit 6c002a988bd37cc04b488d78c910540b19cac88e)
* Add exports file and abi checker for teventSimo Sorce2009-09-097-2/+157
| | | | | | | | | | This is a first attempt at exporting symbols only for public functions We also provide a rudimentary ABI checker that tries to check that function signatures are not changed by mistake. Given our use of macros this is not an API checker. It's all based on tevent.h contents and the gcc -aux-info option (cherry picked from commit efccef09aec93180a06955b5e03f1ceb99dc39e8) (cherry picked from commit 5543fc2599b3ec7e3a676f95d8283d0f55113ec5)
* Increase tevent version for tevent_req_notify_callback() (cherry picked from ↵Stefan Metzmacher2009-09-092-2/+2
| | | | | | commit d0aedeb46e5d2da582b5c030114186f8d755b528) (cherry picked from commit 000d2835d78b6beb6db573a1946346e01de2ff7d)
* Add tevent_req_notify_callbackVolker Lendecke2009-09-092-4/+13
| | | | | | | This is necessary for requests that have multiple results. Examples would be SMBEcho and ldap_search. (cherry picked from commit c6f39b46a7b0505331612a1bee15a82f97009f0d) (cherry picked from commit 8d988b165d373d074b8be321bcc9c20a8e85a6fc)
* tevent/python: Makefile was still trying to build some non AC_SUBST python ↵Jelmer Vernooij2009-09-091-7/+1
| | | | | | | targets Signed-Off-By: Jelmer Vernooij <jelmer@samba.org>(cherry picked from commit cf9636ea99bb5063a8c7d771c1e29f684b4b753a) (cherry picked from commit d0ab357d3bae114bda2d678049e89272614da713)
* tevent: Define TALLOC_FREE() if it's not defined yet, to allow building with ↵Jelmer Vernooij2009-09-091-0/+6
| | | | | | released versions of talloc. (cherry picked from commit 72b744f38ebb9f9576c05c7bb0a00de26697ec8f) (cherry picked from commit ce80afbe3ad7534d659109e60874540531738aaf)
* tevent: Remove python module.Stefan Metzmacher2009-09-097-220/+0
| | | | | | | | | | | This module didn't have any functionality that we actually used yet, and it was quite small. Tevent is quite low level and perhaps doesn't make much sense to expose directly as a Python module. It was also causing build problems when used with a system-tevent. We can always back later if necessary. (cherry picked from commit 5065cf70f8bf41193d6d33413f2285f62bba0502) (cherry picked from commit 1d0e302bc49c77542fa39a18d995268e8685d141)
* tevent: Install tevent_internal.h in the standalone build.Jelmer Vernooij2009-09-092-1/+4
| | | | | | | This is not ideal, but at least it fixes the build of samba-gtk for now. I've also added a warning about API guarantees at the top of the header. (cherry picked from commit 857c3f8322005efd460c2f516a9486a2de059e9f) (cherry picked from commit 30acc30ce5c01a30a96a6ce80ab99576574d8196)
* Update copies of config.guess and config.sub. (cherry picked from commit ↵Jelmer Vernooij2009-09-0916-536/+1982
| | | | | | 6230eb94af2305f479db3b76479a0dc841c3d1d5) (cherry picked from commit c20026a9afe1527f6442e8eedf669d199d8cdb26)
* tevent: Don't install headers, since we don't install a shared lib either ↵Jelmer Vernooij2009-09-091-5/+0
| | | | | | (from Samba). (cherry picked from commit 06864b4469f5f3d77637f8e6c97ec0558289cd29) (cherry picked from commit 49c97fb7a1bc49b160677fc7fae69b05bd6161a4)
* tevent: fix typo async_req_done() => tevent_req_done()Stefan Metzmacher2009-09-091-1/+1
| | | | | | metze (cherry picked from commit 6f7cd213dd38e770224cf131054862b76069aed8) (cherry picked from commit 915a516da4ef536d09075e14959cfa7e866f7e7b)
* tevent: fix the nesting logicStefan Metzmacher2009-09-091-7/+7
| | | | | | | | | | | | | | | Only tevent_loop_once and tevent_loop_until() should care about the nesting level. This fixes the samba3 printing code where we use tevent_loop_wait() and don't allow nested events. We still call the nesting hook for all levels, we need to decide if we really want this... metze (cherry picked from commit 36e7045340bbc7d6567008bdd87c4cdf717835bd) (cherry picked from commit 01a4ec433627fe36c9eef7a8f1a7f45b86eb8262)
* fixed a logic bug in the tevent nesting codeAndrew Tridgell2009-09-091-1/+13
| | | | | | | | | | | | The event nesting code never triggered as nesting.level was never greater than 1. The main event loop needs to increase the nesting level by 1. I also added a paranoia check to the nesting setup call. The API as currently written cannot support multiple nesting hooks, so we need to abort if multiple hooks are tried. (cherry picked from commit 13b6663e23a424473d14324ac229a21e1e90580a) (cherry picked from commit 6e968a6f12de83be431e6244c34bb3cecf52ee42)
* s3-winbindd: Fix Bug #6700: Use dns domain name when needing to guess server ↵Günther Deschner2009-09-091-1/+1
| | | | | | | | | | | principal. Patch from Robert LeBlanc <robert@leblancnet.us>. Thanks! Guenther (cherry picked from commit 1f6f0fc92b1bb487fb99ac1e9c96f8f09adb9fbc)
* WHATSNEW: Update changes since 3.4.0.Karolin Seeger2009-09-081-0/+16
| | | | | Karolin (cherry picked from commit d5098d7372fb3ab5991df5ce6daa994372934b39)
* s3-schannel: Fix Bug #6697. Interdomain trusts with Windows 2008 R2 DCs.Günther Deschner2009-09-082-2/+2
| | | | | | | | | The Schannel verifier (aka NL_AUTH_SIGNATURE) structure (32 byte) sent from a W2k8r2 DC is passed in a buffer with the size of a NL_AUTH_SHA2_SIGNATURE (56 byte). We should just ignore the remaining 12 zeroed bytes and proceed. Guenther (cherry picked from commit ebd5019ef422a85119a7ea25025ff22d5a3bd757)
* Check we read off the compelte event from inotifySimo Sorce2009-09-081-2/+8
| | | | | | | | | | The kernel may return a short read, so we must use read_data() to make sure we read off the full buffer. If somethign bad happens we also need to kill the inotify watch because the filedescriptor will return out of sync structures if we read only part of the data. Fixes bug #6693. (cherry picked from commit ada543569f498ef526ea9602eb19850e37f62fe2)
* s3: Fix crsh in net usershare listBo Yang2009-09-081-0/+1
| | | | | Signed-off-by: Bo Yang <boyang@samba.org> (cherry picked from commit 726762c3793adc4e404dc12420c450a71519bbce)
* s3: make linking of rpcclient --as-needed safeBjörn Jacke2009-09-081-2/+2
| | | | | | | Second part of a fix for bug #6105. (cherry picked from commit 5236b3699da2b5cc55d55310de76e4ab65a8bb46) (cherry picked from commit 5839491d9d9e270e807048a4a505ce42bd99ea18)
* s3: make linking of cifs.upcall --as-needed safePeter Volkov2009-09-081-1/+1
| | | | | | | | Part of a fix for bug #6105. See http://www.gentoo.org/proj/en/qa/asneeded.xml for details. (cherry picked from commit 2df4550aae1e326511fe4e7e0d2d98be3e578caf) (cherry picked from commit b9c07dd26d5177d25b4e136b790ee279aeb63887)
* s4: disable source4 directory for the 3.4.x releasesStefan Metzmacher2009-09-032-275/+10
| | | | | | metze (cherry picked from commit 6ced4bcadf05578bba83cb061310ad4dcf1e9c94) (cherry picked from commit f97a1a0d3b708872534c85dbc5ae53215577057c)
* WHATSNEW: Update release date.Karolin Seeger2009-09-031-1/+1
| | | | | Karolin (cherry picked from commit a527dd4a2be8879700b7adc138c2f041b49b41be)
* WHATSNEW: Update changes since 3.4.0.Karolin Seeger2009-09-031-0/+4
| | | | | Karolin (cherry picked from commit a0f2336ed6f5adb29d636eb880b0f6cd6cfc70f3)
* s3-pdb_ldap: Fix bug #4296: Clean up group membership while deleting a user.Günther Deschner2009-09-031-0/+46
| | | | | | | Note that this only is tried with editposix=yes. Guenther (cherry picked from commit 272e389ff63d929fc6b06305e00fa042d71dbec0)
* Fix an uninitialized variableVolker Lendecke2009-09-031-0/+2
| | | | | | | Fix bug #6684. (cherry picked from commit b8cd1cff2dfad726cf6dab368dfcc31a29952889) (cherry picked from commit 050ded0624a49f2ffb53dcd88a93fd1d8c17595e)
* s3:libwbclient: Fix bug 6349, initialize domain info structVolker Lendecke2009-09-031-0/+2
| | | | (cherry picked from commit e1a50994800ce311925214254c0a471a9f32c1f7)
* s3-smbpasswd: Fix Bug #6584: allow DOM\user when changing passwords remotely.Simo Sorce2009-09-031-3/+16
| | | | | Signed-off-by: Günther Deschner <gd@samba.org> (cherry picked from commit 8cb103372be4eb3232e5e13b67f63562e5506c7e)
* wbclient: Fix Bug #6680: always activate handling of large (> 256 byte) ↵Günther Deschner2009-09-031-4/+15
| | | | | | | ntlmv2 blobs in wbcAuthenticateUserEx(). Guenther (cherry picked from commit dadc57b140b4379f9f2f6fafe40332061df4d5a5)
* s3-docs: Update build howto.Karolin Seeger2009-09-011-1/+3
| | | | | | | | This addresses bug #6661. Karolin (cherry picked from commit 1bc05ca3bb6499d25d54ba49f2abbc54edad37ed) (cherry picked from commit ea0f119e7b671f3566b8eecdd0013e9c57079566)
* WHATSNEW: Update changes since 3.4.0.Karolin Seeger2009-09-011-1/+7
| | | | | Karolin (cherry picked from commit c424fce877806bc6aef57941f6e4268300af21bf)
* make smbcontrol smbd ping work proper checking for arguments handle short ↵Olaf Flebbe2009-09-012-14/+21
| | | | | | | | | pid_t correctly Fixes bug #6655. (cherry picked from commit 5359e397ff190c35414f6961be61a5110e237dd5) (cherry picked from commit 86c1dbb473323ef9480cb57584be9e02363e80af)
* Fix bug 5886Volker Lendecke2009-09-011-8/+26
| | | | | | | | | | Ok, that's a very long-standing one. I finally got around to install a recent OpenLDAP and test the different variants of setting a NULL password etc. Thanks all for your patience! Volker (cherry picked from commit 6fb3222504a0d2b42cd9292f9e11b2ff246d5c19)
* s3:netlogon: replace cred_hash3 by des_crypt112_16Stefan Metzmacher2009-09-012-5/+4
| | | | | | | | This makes sure we don't truncate the session key to 8 bytes Fixes bug #6664 metze (cherry picked from commit 2467671ba55c5ac834a8aa7ae8ad736958baab1d)
* WHATSNEW: Update changes since 3.4.0.Karolin Seeger2009-08-241-3/+9
| | | | | Karolin (cherry picked from commit 0911f7137bf37a9a14e6ebff9a0990482a11375b)
* s3: fix bug #6650, authentication at member servers when winbindd is not runningMichael Adam2009-08-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Authentication of domain users on the member server fails when winbindd is not running. This is because the is_trusted_domain() check behaves differently when winbindd is running and when it isn't: Since wb_is_trusted_domain() calls wbcDomainInfo(), and this will also give a result for our own domain, this succeeds for the member server's own domain when winbindd is running. When winbindd is not running, is_trusted_domain() checks (and possibly updates) the trustdom cache, and this does the lsa_EnumTrustDom() rpc call to the DC which does not return its own domain. In case of winbindd not running, before 3.4, the domain part was _silently_ mapped to the workgroup in auth_util.c:make_user_info_map(), which effectively did nothing in the member case. But then the parameter "map untrusted to domain" was introduced and the mapping was made to the workstation name instead of the workgroup name by default unless "map untrusted to domain = yes". (Commits d8c54fddda2dba3cbc5fc13e93431b152813892e, 5cd4b7b7c03df6e896186d985b6858a06aa40b3f, and fbca26923915a70031f561b198cfe2cc0d9c3aa6) This was ok as long as winbindd was running, but with winbindd not running, these changes actually uncovered the above logic bug in the check. So the correct check is to treat the workgroup as trusted / or known in the member case. This is most easily achieved by not comparing the domain name against get_global_sam_name() which is the host name unless for a DC but against my_sam_name() which is the workgroup for a DC and for a member, too. (These names are not very intuitive...) I admit that this is a very long commit message for a one-liner, but this has needed some tracking down, and I think the change deserves some justification. Michael (cherry picked from commit 6afb02cb53f47e0fd7e7df3935b067e7e1f8a9de) (cherry picked from commit d4c82fcb106ba872a9987ae40e0fe2d58b7ef1bb)
* Fix Red Hat bugzilla bug : https://bugzilla.redhat.com/show_bug.cgi?id=516165Jeremy Allison2009-08-241-1/+1
| | | | | | | | | | | | | | nautilus fails to copy files from an SMB share. This is a show-stopper for 3.4.1. Although gnome-vfs is doing *incredibly* stupid things by asking for a read size of 65535 - this translates on the wire to a 65534 byte read followed by a 1 byte read. Please send this back to the gnome developers that they will ge horrid on the wire performance for this. Jeremy. Fixes bug #6649. Fixed in master with commit 33d27797d3ae9ab3ff7e1aa940941cc450f5ad1d. (cherry picked from commit ef891070288cd13aff7c730de7c1baf54dddb90f)
* Fix bug 6638 - ADS Domain Member: Computer Mgr can not set share ACLs Add ↵Jeremy Allison2009-08-241-3/+19
| | | | | | good error message for share modification denial. Jeremy. (cherry picked from commit ed122f5e9d1e1287eb13efc99e4129492d34abbc)