summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2009-07-20Make tdb transaction lock recursive (samba version)Rusty Russell3-21/+20
This patch replaces 6ed27edbcd3ba1893636a8072c8d7a621437daf7 and 1a416ff13ca7786f2e8d24c66addf00883e9cb12, which fixed the bug where traversals inside transactions would release the transaction lock early. This solution is more general, and solves the more minor symptom that nested traversals would also release the transaction lock early. (It was also suggestd in Volker's comment in 6ed27ed). This patch also applies to ctdb, if the traverse.c part is removed (ctdb's tdb code never received the previous two fixes). Tested using the testsuite from ccan (adapted to the samba code). Thanks to Michael Adam for feedback. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: Michael Adam <obnox@samba.org>
2009-07-20Re-add accidently removed shares test.Jelmer Vernooij1-0/+74
2009-07-20s4:kdc Add in a simple check for constrained delegation to selfAndrew Bartlett1-1/+70
To do this properly, we must use the PAC, but for now this is enough to check that we are delegating to another name on the same host (which must be safe). (Windows 7 does this a lot, also noted in bug 6273) Andrew Bartlett
2009-07-20[SAMBA 4 directory] Refactoring and clean up of directory structureMatthias Dieter Wallnöfer9-81/+167
- Adds more system objects which make sense to have them in SAMBA 4 also to have them when we add more and more services related to the directory (volume support, DFS, replication service, COM...) - Make sure that "isCriticalSystemObject" and "showInAdvancedViewOnly" attributes are set correctly on each object
2009-07-19pidl: Print actual type names in errors about unknown origins rather than ↵Jelmer Vernooij2-17/+20
'HASH(0x....)'.
2009-07-19pidl: Print proper errors when arrays don't have a specified size rather ↵Jelmer Vernooij2-7/+18
than spewing pages of perl warnings.
2009-07-19Remove unused parameter setting.Jelmer Vernooij2-11/+0
2009-07-19Remove unnecessary imports.Jelmer Vernooij6-14/+9
2009-07-19Merge branch 'master' of git://git.samba.org/sambaJelmer Vernooij20-194/+100
2009-07-19Include ntsvc NDR in libndr-standard.Jelmer Vernooij1-8/+5
2009-07-19Remove unused variable.Jelmer Vernooij1-1/+0
2009-07-19source4/lib/registry/patchfile.c(reg_diff_load): fixed possible resource leak.Slava Semushin1-0/+1
File descriptor leaks when write(2) fails and we are returning from function. Found by cppcheck: [./source4/lib/registry/patchfile.c:319]: (error) Resource leak: fd
2009-07-19lib/util/util_file.c(file_save): fixed file descriptor leak when read(2) fails.Slava Semushin1-0/+1
Found by cppcheck: [./lib/util/util_file.c:383]: (error) Resource leak: fd
2009-07-19Fix broken password quality checkMatthieu Patou2-1/+4
This fixes broken password tests when the passwords contain non ASCII characters (e.g. accentuated chars like ('e, `e, ...)
2009-07-19Fix typoMatthias Dieter Wallnöfer1-1/+1
2009-07-19[SAMBA 4] Some cosmetic changes for the LDB modulesMatthias Dieter Wallnöfer2-12/+12
Some corrections which make the code a bit more readable (no functional changes here)
2009-07-19include unix.h if it's availableMatt Kraai2-0/+5
2009-07-19Cosmetic correctionMatthias Dieter Wallnöfer1-1/+1
Changes the order of two commands. First set up the "priv" structure, then assign it to the "ntvfs" structure.
2009-07-19Merge more ndr interfaces into libndr-standard.Jelmer Vernooij2-59/+23
2009-07-19librpc: Integrate some subsystems now part of libndr-standard and integrate ↵Jelmer Vernooij1-30/+14
ndr_dfs in libndr-standard.
2009-07-19Add missing includes.Jelmer Vernooij2-0/+2
2009-07-19provision: Remove unused imports.Jelmer Vernooij1-4/+0
2009-07-19Create libndr-standard, which includes the NDR marshalling code forJelmer Vernooij4-19/+41
the "standard" set of DCE/RPC interfaces found on Windows.
2009-07-19Remove unnecessary include, update README.Jelmer Vernooij2-4/+0
2009-07-19Remove outdated status file about samba3 -> samba4 upgrade project.Jelmer Vernooij1-68/+0
2009-07-19Fix a few type errors in VFS modulesVolker Lendecke6-10/+18
2009-07-18VFS examples: Update copy of config.{guess,sub}.Jelmer Vernooij2-75/+282
2009-07-18python: Set right ldb modules directory when using system ldb.Jelmer Vernooij1-0/+2
2009-07-18Actually fill in ldb modules directory.Jelmer Vernooij1-1/+1
2009-07-18Remove pyldb_util and simply duplicate the 5-line function it contains,Jelmer Vernooij6-53/+21
rather than creating a separate shared library for it.
2009-07-18ldb: Display SHLD_FLAGS when building.Jelmer Vernooij1-0/+1
2009-07-17Fix Coverity CIDs 887, 888. Don't pass NULL's to functionsJeremy Allison1-4/+3
that deref them. Jeremy.
2009-07-17Fix Coverity CID 928. Removed check as this can never be null.Jeremy Allison1-1/+1
Jeremy.
2009-07-17Fix Coverity CID 929. Potential NULL deref after code refactoring.Jeremy Allison1-0/+5
Jeremy.
2009-07-17Fix coverity CID 930. Pointer check can never be null here.Jeremy Allison1-1/+1
Jeremy
2009-07-17Fix coverity CID 931. This check is redundent as smb_fname canJeremy Allison1-1/+1
never be null in this function. Jeremy.
2009-07-17Fix a typo reading uninitialized memory. Caught by valgrind.Jeremy Allison1-3/+1
Jeremy.
2009-07-17Move the initialization of smbd_server_conn from smbd/process,Jeremy Allison2-5/+5
after the accept and fork, to smbd_init_globals(), so it's done immediately on server startup. This is needed as some messages are sent to all active smbd processes (including the master listening daemon). If it gets a message that forces it to scan it's current connections (ie. conn_find()) then it discovers that sconn->smb1.tcons.Connections dereferences null (as sconn == NULL in the parent) and crashes. Yes, I could fix all cases where sconn is used and explicitly check for NULL but this fix is easier. It means that the smbd_event_context() is initialized in the master daemon and then re-initialized after fork, but that should be being done correctly in every fork call anyway. Without this change the previous fix 6a9e0039100b57f9626e87defec6720c476b9789 still panics in the reproducible test case for bug 6564, as this is one case where such a message (MSG_SMB_CONF_UPDATED) is sent to the parent. Metze please check. This change passes valgrind. Jeremy.
2009-07-17Fix bug #6564 - SetPrinter fails (panics) as non root.Jeremy Allison2-0/+5
Missing become_root()/unbecome_root() around reload_services. Jeremy.
2009-07-173.4 is released...Volker Lendecke1-1/+1
2009-07-17s4-spoolss: fix the build after OsVersion changes.Günther Deschner1-3/+6
Guenther
2009-07-17spoolss: fill in some unknowns in spoolss_OSVersion and spoolss_OSVersionEx.Günther Deschner3-18/+33
Guenther
2009-07-18s3: add failure check.Bo Yang1-1/+4
Signed-off-by: Bo Yang <boyang@samba.org>
2009-07-17s3-rpcclient: add createprinteric command.Günther Deschner1-0/+43
Guenther
2009-07-17spoolss: fill in spoolss_Create/DeletePrinterIC + rerun make samba3-idl.Günther Deschner6-2/+134
Guenther
2009-07-17s3-lsa: let _lsa_Delete return NT_STATUS_NOT_SUPPORTED as w2k3 does.Günther Deschner1-6/+10
Guenther
2009-07-17s3-lsa: Fix access_mask calculation for new handle in _lsa_CreateAccount().Günther Deschner1-6/+24
Guenther
2009-07-17s3-lsa: add (not yet activate) level specific access checks for ↵Günther Deschner1-0/+42
_lsa_QueryInfoPolicy. Guenther
2009-07-17s3-lsa: also implement level 13 in lsa_QueryInfoPolicy.Günther Deschner1-19/+24
Guenther
2009-07-17s3-lsa: Fix policy handle memleak and handle type check in _lsa_DeleteObject().Günther Deschner1-4/+14
Guenther