summaryrefslogtreecommitdiff
path: root/source3/Makefile.in
AgeCommit message (Collapse)AuthorFilesLines
2010-03-10s3: Fix a long-standing problem with recycled PIDsVolker Lendecke1-3/+4
When a samba server process dies hard, it has no chance to clean up its entries in locking.tdb, brlock.tdb, connections.tdb and sessionid.tdb. For locking.tdb and brlock.tdb Samba is robust by checking every time we read an entry from the database if the corresponding process still exists. If it does not exist anymore, the entry is deleted. This is not 100% failsafe though: On systems with a limited PID space there is a non-zero chance that between the smbd's death and the fresh access, the PID is recycled by another long-running process. This renders all files that had been locked by the killed smbd potentially unusable until the new process also dies. This patch is supposed to fix the problem the following way: Every process ID in every database is augmented by a random 64-bit number that is stored in a serverid.tdb. Whenever we need to check if a process still exists we know its PID and the 64-bit number. We look up the PID in serverid.tdb and compare the 64-bit number. If it's the same, the process still is a valid smbd holding the lock. If it is different, a new smbd has taken over. I believe this is safe against an smbd that has died hard and the PID has been taken over by a non-samba process. This process would not have registered itself with a fresh 64-bit number in serverid.tdb, so the old one still exists in serverid.tdb. We protect against this case by the parent smbd taking care of deregistering PIDs from serverid.tdb and the fact that serverid.tdb is CLEAR_IF_FIRST. CLEAR_IF_FIRST does not work in a cluster, so the automatic cleanup does not work when all smbds are restarted. For this, "net serverid wipe" has to be run before smbd starts up. As a convenience, "net serverid wipedbs" also cleans up sessionid.tdb and connections.tdb. While there, this also cleans up overloading connections.tdb with all the process entries just for messaging_send_all(). Volker
2010-03-08s3: add missing Makefile.in changes for vfs_crossrenameBjörn Jacke1-0/+5
2010-03-08samba: remove cifs-utils tools from build systemsJeff Layton1-49/+5
Now that cifs-utils are their own project, we need to go ahead and pull them out of the samba tree. This patch represents the first step toward that end. Remove the cifs-utilities from the source3 and source4 builds. Please pay particular attention to the source4 piece. I'm not at all familiar with the build system there, and would appreciate someone sanity checking my changes. It also adds a small README.cifs-utils file in the topdir. This is optional, but I think it's a good idea to carry this for a release or two. Once this patch looks ok, I'll plan to do another patch to actually remove the client dir and the relevant docs-xml files from the tree altogether. Signed-off-by: Jeff Layton <jlayton@redhat.com>
2010-03-03s3: Fix build file due to file move. Use the new path of iniparserMatthieu Patou1-2/+2
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-03-03s3: Allow pam_winbind.c to build without localedir.cMatthieu Patou1-1/+8
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2010-03-03s3: build sddl.c in samba3Michael Adam1-0/+1
2010-03-01s3:groupmap revert to tdb storageSimo Sorce1-1/+1
Group mapping needs to be cluster aware, and this means using the tdb backend. Remove ldb group mapping as this is not cluster aware.
2010-03-01s3: Abstract access to sessionid.tdb, similar to conn_tdb.cVolker Lendecke1-0/+1
2010-02-23s3:schannel streamline interfaceSimo Sorce1-2/+1
Make calling schannel much easier by removing the need to explicitly open the database. Let the abstraction do it instead.
2010-02-23s3 move the sitename cache in its own fileSimo Sorce1-1/+2
2010-02-13libwbclient: Separate out the async functionsKai Blin1-5/+11
2010-02-12s3: Implement global locks in a g_lock tdbVolker Lendecke1-0/+2
This is the basis to implement global locks in ctdb without depending on a shared file system. The initial goal is to make ctdb persistent transactions deterministic without too many timeouts.
2010-02-04s3:nsswitch: also use pthread CFLAGS for the nsswitch modules that might ↵Björn Jacke1-1/+1
require it
2010-02-04s3: fix build on Tru64 after it broke with deactivating pthread pool supportBjörn Jacke1-3/+6
2010-01-29s3: link thread objects in libsmbclient only and adjust linker flagsBjörn Jacke1-8/+10
2010-01-27s3: Install and uninstall the static version of libwbclientLars Müller1-0/+2
This requires to call configure with --enable-static which isn't the case by default.
2010-01-26Add dependency of bin/smbfilter to libwbclient.Lars Müller1-1/+1
2010-01-26s3: fix detection and flags for using pthreadBjörn Jacke1-2/+2
I hope this fixes the build on Tru64, IRIX and maybe bug #6983
2010-01-24s3: Add NTLMSSP_FEATURE_CCACHEVolker Lendecke1-5/+11
Uses the winbind ccache to do authentication if asked to do so
2010-01-12s3: Add the "scannedonly" vfs virus scanner interface moduleOlivier Sessink1-0/+5
2010-01-10s3: Trim libnss_wins.soVolker Lendecke1-2/+1
2010-01-10s3: Trim down some utilities a bitVolker Lendecke1-11/+11
2010-01-03s3: Trim down smbcontrol a bitVolker Lendecke1-4/+2
2009-12-22libcli/auth Make gd's NDR NTLMSSP parsers helpers commonAndrew Bartlett1-1/+1
(but not built in Samba4 for now)
2009-12-21s3:winbind: Add a lower-cost alternative to wbinfo -t: wbinfo --ping-dcVolker Lendecke1-0/+1
This just does a NULL RPC call through an existing NETLOGON connection. If someone knows an operation that "just works" and does not return NOT_SUPPORTED, please tell me :-)
2009-12-21s3: Remove unused winbindd_dual_userinfoVolker Lendecke1-1/+0
2009-12-01s3:add split_tokens, a cmdline tool to test next_token_talloc()Michael Adam1-0/+14
Michael
2009-12-01s3:fix linking of the t_str* test programsMichael Adam1-4/+4
Michael
2009-12-01s3:fix linking of libbigballofmud (on my box at least)Michael Adam1-3/+3
Michael
2009-11-29s3: Add a regression test for bug 6898Volker Lendecke1-1/+2
2009-11-27s3-nsstest: drastically shrink size and dependencies of nsstest binary.Günther Deschner1-7/+3
The size went down from 6.4M to 104K on my box. Guenther
2009-11-23s3: add dbwrap_torture - a tool to stress test tdb transactions through dbwrapMichael Adam1-1/+19
This can be used to also test tdb transactions on clustered installations throught ctdb. The test is modeled after the ctdb_transaction.c test program from the ctdb source code. It runs transactions in a tight loop on a test database called "transactions.tdb" (by default), increasing a counter in each iteration. In a clustered environment, a counter is maintained for each node. Michael
2009-11-20s3-build: delete more object files for "make clean".Günther Deschner1-2/+3
Guenther
2009-11-19s3-build: really fix build of winbind_krb5_locator.Günther Deschner1-1/+1
Guenther
2009-11-19s3-build: make sure to remove libds and client object files on make clean.Günther Deschner1-1/+3
Guenther
2009-11-02lib/util Use rfc1738.c from Squid for all our URL encode/decode needs.Andrew Bartlett1-1/+1
Andrew Bartlett
2009-10-31s3:Makefile: add LIBREPLACE_LIBS for talloc, tdb and wbclientBjörn Jacke1-3/+3
2009-10-31ѕ3:buildsystem: fix depenencies for libreplaceBjörn Jacke1-4/+3
This problem became visible after adding the picky -z defs linker option: On Solaris libreplace had unresolved symbols, which showed up in the libtalloc build. PAM_WINBIND_EXTRA_LIBS and WINBIND_NSS_EXTRA_LIBS had been workarounds to make things work at two placeѕ. These variables have been obsoleted now. This patch introduces LIBREPLACE_LIBS which contans the linker flags needed for linking anything using libreplace.
2009-10-29s3-secrets: use autogenerated code for TRUSTED_DOM_PASS struct parsing from ↵Günther Deschner1-1/+2
a tdb. Guenther
2009-10-29s3: add secrets.idl.Günther Deschner1-1/+2
Guenther
2009-10-28Add in Metze's new code to ndr encode the user.DOSATTRIBStefan (metze) Metzmacher1-0/+1
blobs. Next I'll change the create timestamp and dos attribute code to use this.
2009-10-21s3:Makefile: add some explicit dependencies to libcBjörn Jacke1-2/+2
Add libc as explicit dependency where we use "-z defs" linker flags. This is to silence the Sun linker. Otherwise it whines: malloc ... (symbol belongs to implicit dependency /lib/libc.so.1)
2009-10-21nsswitch: fix the build of the winbind krb5 locator plugin.Günther Deschner1-1/+1
Guenther
2009-10-20Fix the pam_smbpass.so build with the recent linker flag changes.Jeremy Allison1-2/+2
Jeremy.
2009-10-20s3:Makefile: rename LDSHFLAG variables to make meaning more obviousBjörn Jacke1-88/+88
2009-10-20s3: make unresolved symbols in libs throw errorsBjörn Jacke1-3/+3
except for the Samba internal plugins unresolved symbol references should not show up in shared libraries. For historical reasons it's the default behaviour of linkers to ignore those in shared libs. We use -z defs (alias --no-undefined) to not ignore them in shared libs.
2009-10-20s3: allow using different LDFLAGS for internal libs/pluginsBjörn Jacke1-72/+80
internal libs have unresolved symbols intentionally. Thanks to Buchan Milne for suggestion and patch. This addresses #6792.
2009-10-16s3-libnetapi: add I_NetLogonControl{2} skeleton.Günther Deschner1-1/+2
Guenther
2009-10-15s3-spnego: Fix Bug #6815. Windows 2008 R2 SPNEGO negTokenTarg parsing failure.Günther Deschner1-1/+3
When parsing a SPNEGO session setup retry (falling back from KRB5 to NTLMSSP), we failed to parse the ASN1_ENUMERATED negResult in the negTokenTarg, thus failing spnego_parse_auth() completely. By just using the shared spnego/asn1 code, we get the parsing the correct way. Guenther
2009-10-13s3-winbindd: add wbint_ChangeMachineAccount implementation.Günther Deschner1-0/+1
Guenther