summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* s4-provision: move zone file to dns subdirectoryAndrew Tridgell2010-02-112-14/+54
| | | | | | | | This allows the permissions to be correctly set for bind to write to a journal file. It also sets the right group ownership and permissions on the files that bind needs to access. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4:provision Be more polite to long-suffering Samba testers.Andrew Bartlett2010-02-111-2/+3
| | | | | | Our testers put up with a lot of odd things when testing out Samba4. Andrew Bartlett
* Fix unused variable warning after change to new DLINK macros.Jeremy Allison2010-02-101-2/+0
| | | | Jeremy.
* Fix bad use when freeing linked list. Todd Stecher (Original author) please ↵Jeremy Allison2010-02-101-6/+8
| | | | | | check ! Jeremy.
* test:local added LOCAL-DLINKLIST testsuiteAndrew Tridgell2010-02-103-0/+132
| | | | (cherry picked from commit 95a5bee2c30a67a35604b0456ab7836f6dc67702)
* util: rewrite dlinklist.h so that DLIST_ADD_END() is O(1)Andrew Tridgell2010-02-104-179/+334
| | | | | | | | | | | | | | This changes the meaning of the ->prev pointer in our doubly linked lists to point at the end of the list from the front of the list. That allows us to implement DLIST_ADD_END() and related functions in O(1) time, which can be a huge saving in many places in Samba. This also means that the 'type' argument to various DLIST_*() macros is no longer needed, but I have left it in for now to keep the patchset small, which will make it easier to revert if any problems are found. In the future we should remove the 'type' arguments. (jra. Move the one use of DLIST_TAIL over to the new macros).
* s3-smbd: update to use new DLIST macrosAndrew Tridgell2010-02-102-6/+5
| | | | (cherry picked from commit 365b408c458c848a818637d9b36a0423aeb1ba54)
* s3-registry: update to use new DLIST macrosAndrew Tridgell2010-02-101-2/+2
| | | | (cherry picked from commit 3437713ad7e5bccafde30553a8232119fd2a9eb9)
* s3-perfcount: update to use new DLIST macrosAndrew Tridgell2010-02-102-3/+2
| | | | (cherry picked from commit a13b507f2d8be7f90c8872094cd0732926a6fcbb)
* s3-locking: update to use DLIST_ADD_AFTER()Andrew Tridgell2010-02-101-5/+1
| | | | (cherry picked from commit 6c6df527e14514027cbcaa6deac25adf04363926)
* s3-libsmb: update libsmb to use new DLIST macrosAndrew Tridgell2010-02-102-23/+25
| | | | | manipulating p->prev directly is not safe any more (cherry picked from commit 3c650ac1e3e1cdbbabecfddcd29325f20b5dcb48)
* s3-memcache: update memcache to use new DLIST macrosAndrew Tridgell2010-02-101-18/+3
| | | | | we don't need a separate lru pointer any more (cherry picked from commit 4ffd7aca3e38728077bd80c2a65c4efbcfd216fc)
* s3-ldb: update the old ldb in s3 to use new DLIST macrosAndrew Tridgell2010-02-102-30/+4
| | | | (cherry picked from commit a7d8bfd373392eecf4fff33d39b85e1b55ad901d)
* s3-nmbd: update nmbd to use new DLIST_ macrosAndrew Tridgell2010-02-104-73/+9
| | | | (cherry picked from commit 4d23d777bc6d4fad20d0f3084fe658635812bee9)
* s4-ldb: update ldb_tdb to use new DLIST_ macrosAndrew Tridgell2010-02-101-15/+3
| | | | (cherry picked from commit 6ede911654566a7e21ded70dacac68df3b6a1bca)
* s4-dsdb: update repl_meta_data.c to use new DLIST_ macrosJeremy Allison2010-02-101-3/+2
|
* Temporary changes to dlinklist to keep the implementation static whilstJeremy Allison2010-02-103-0/+48
| | | | | | | uses of (list)->prev are moved over to DLIST_PREV. This will be replaced when the final (new) version of the dlinklist.h header is added. Jeremy.
* Revert "Change the default of "nmbd bind explicit broadcast" to "no""Jeremy Allison2010-02-102-5/+6
| | | | | | | | | This reverts commit 84fba3c1bc962804259f201d465acfdf0cd3c6a8. Now we have a "processed packet queue" in nmbd we can go back to doing this by default. Jeremy.
* More of the fix for bug #7118 - nmbd problems with socket address.Jeremy Allison2010-02-101-0/+89
| | | | | | | | | | | | | | | | | | | | | Add a simple "processed packet queue" cache to stop nmbd responding to packets received on the broadcast and non-broadcast socket (which it has opened when "nmbd bind explicit broadcast = yes"). This is a very simple packet queue - it only keeps the packets processed during a single call to listen_for_packets() (i.e. one select call). This means that if the delivery notification for a packet received on both broadcast and non-broadcast addresses is done in two different select calls, the packet will still be processed twice. This is a very rare occurrance and we can just live with it when it does as the protocol is stateless. If this is ever flagged as a repeatable problem then we can add a longer lived cache, using timeout processing to clear etc. etc. But without storing all packets processed we can never be *sure* we've eliminated the race condition so I'm going to go with this simple solution until someone proves a more complex one is needed :-). Jeremy.
* Change the default of "nmbd bind explicit broadcast" to "no"Jeremy Allison2010-02-102-6/+5
| | | | | | until the double processing problem in bug #7118 is fixed. Jeremy.
* testprogs: add more error codes for spoolss test.Günther Deschner2010-02-101-0/+2
| | | | Guenther
* s3: change ldap filter to what really was intendedBjörn Jacke2010-02-101-1/+1
|
* tdb: fix recovery reuse after crashRusty Russell2010-02-101-4/+10
| | | | | | | | | | | | | | | If a process (or the machine) dies after just after writing the recovery head (pointing at the end of file), the recovery record will filled with 0x42. This will not invoke a recovery on open, since rec.magic != TDB_RECOVERY_MAGIC. Unfortunately, the first transaction commit will happily reuse that area: tdb_recovery_allocate() doesn't check the magic. The recovery record has length 0x42424242, and it writes that back into the now-valid-looking transaction header) for the next comer (which happens to be tdb_wipe_all in my tests). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb: give a name to the invalid recovery area constant (0)Rusty Russell2010-02-103-4/+5
| | | | Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* s4:provision Just 'do the right thing' with empty smb.conf filesAndrew Bartlett2010-02-102-2/+26
| | | | | | | | For some reason, JHT keeps on creating an empty smb.conf file, expecting it to be the same as a non-existant one. It is easier to just realise what he meant. Andrew Bartlett
* s4-smbtorture: use test_GetPrinter_level in RPC-SPOOLSS-NOTIFY.Günther Deschner2010-02-102-45/+27
| | | | Guenther
* Fix bug #7122 - Reading a large browselist fails (server returns invalid ↵Jeremy Allison2010-02-092-3/+6
| | | | | | | | | | | | | | values in subsequent SMBtrans replies) There are two problems: 1). The server is off-by-one in the end of buffer space test. 2). The server returns 0 in the totaldata (smb_vwv1) and totalparams (smb_vwv0) fields in the second and subsequent SMBtrans replies. This patch fixes both. Jeremy.
* Missed one check on the memcpy for bug #7063.Jeremy Allison2010-02-091-1/+1
| | | | Jeremy.
* Second part of fix for bug 7063 - Samba 3.4.5 on ubuntu 8.04 64 bit - Core ↵Jeremy Allison2010-02-091-1/+4
| | | | | | | | | | dumps. Ensure we have no naked memcpy calls. This isn't a crash bug (it's already checked in the data_blob_talloc_zero() above, but I want to get into the pattern of having all memcpy's covered by safety checks. Jeremy.
* Fix off-by-one error in working out the limit of the NetServerEnum comment.Jeremy Allison2010-02-091-1/+1
| | | | Jeremy.
* s3:smbd: use StrCaseCmp() instead of strcasecmpStefan Metzmacher2010-02-091-4/+3
| | | | metze
* s3:smbd: Fix really ugly bool vs. int bug!!!Stefan Metzmacher2010-02-091-2/+2
| | | | | | | | A comparison function for qsort needs to return an 'int'! Otherwise you'll get random results depending on the compiler and the architecture... metze
* check_python.m4 - Raise the minimum python version up to 2.4Matthias Dieter Wallnöfer2010-02-091-0/+5
| | | | | | | | This is needed since we at the s4 side have some code which requires this. I think everybody should be fine since we got no complaints on the mailing list about this change. Patch template: Jelmer Vernooij <jelmer@samba.org>
* pidl - Remove "Py_RETURN_NONE" compatibility codeMatthias Dieter Wallnöfer2010-02-091-4/+0
| | | | This was needed only by Python 2.3 which we no longer support.
* s4:Remove "Py_RETURN_NONE" compatibility codeMatthias Dieter Wallnöfer2010-02-0911-44/+0
| | | | This was needed only by Python 2.3 which we no longer support.
* s3-docs: Fix make manpages3.Karolin Seeger2010-02-091-1/+1
| | | | Karolin
* s3-docs: Add missing para end tag.Karolin Seeger2010-02-091-0/+1
| | | | | Karolin (cherry picked from commit b78de63ef3cde53e3aabbe46654aac5a335f16a8)
* testprogs: regenerate printlib prototypes for spoolss test.Günther Deschner2010-02-091-27/+39
| | | | Guenther
* testprogs: print job info levels in EnumJobs() spoolss tests.Günther Deschner2010-02-092-0/+101
| | | | Guenther
* testprogs: print datatypes info levels in EnumPrintProcessorDatatypes() ↵Günther Deschner2010-02-092-0/+42
| | | | | | spoolss tests. Guenther
* testprogs: print printprocessor info levels in EnumPrintProcessors() spoolss ↵Günther Deschner2010-02-092-0/+35
| | | | | | tests. Guenther
* testprogs: print monitor info levels in EnumMonitors() spoolss tests.Günther Deschner2010-02-092-0/+45
| | | | Guenther
* testprogs: print port info levels in EnumPorts() spoolss tests.Günther Deschner2010-02-092-0/+79
| | | | Guenther
* testprogs: print form info levels in EnumForms(),GetForm() spoolss tests.Günther Deschner2010-02-092-0/+67
| | | | Guenther
* s3:selftest: make selftest requires bash for nowStefan Metzmacher2010-02-091-1/+1
| | | | | | So force bash until we removed the dependency to bash. metze
* s3:passdb: only use gid_to_sid() result if the result is a group of our ↵Stefan Metzmacher2010-02-091-4/+16
| | | | | | | | local sam Otherwise retry with pdb_gid_to_sid(). metze
* s3: fix some wrong newlines in de translation stringsBjörn Jacke2010-02-091-8/+8
|
* vfs_catia: fix return type warningsBjörn Jacke2010-02-091-2/+2
|
* s4-torture: allow host-only in unc lists in smbtortureAndrew Tridgell2010-02-092-4/+7
| | | | | | | | | | Allow UNC lists like this: 192.168.2.1 192.168.2.2 192.168.2.3 the share name will be taken from the command line
* Make "nmbd bind explicit broadcast" on by default.Jeremy Allison2010-02-083-6/+12
| | | | | | Fix a comment typo. Jeremy.