summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-01-28tsocket: Fix description for tstream_readv_pdu_queue_send/recvKai Blin1-7/+6
2010-01-28s4-ldbtest: fixed python importAndrew Tridgell1-2/+2
2010-01-28s4-drs: implementation of some delete test casesEduardo Lima2-0/+201
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-01-28cleanup: remove trailing spaces and tabsSimo Sorce1-37/+37
2010-01-28s4-drs: Reads uSNUrgent and sets Urgent Replication Bit for DS_ReplicaSync ↵Fernando J V da Silva2-7/+24
when necessary If an urgent replication is necessary, so the uSNUrgent stored is equal to the uSNHighest stored, then when sending the DS_ReplicaSync message it sets the DRSUAPI_DRS_SYNC_URGENT bit on DRS_OPTIONS. Signed-off-by: Fernando J V da Silva <fernandojvsilva@yahoo.com.br> Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-01-27Second part of fix for bug #7072 - Accounts can't be unlocked from ldap.Jeremy Allison1-1/+2
Missed read of entry_timestamp (was entry->entry_timestamp). Jeremy.
2010-01-27Fix bug #7072 - Accounts can't be unlocked from ldap.Jeremy Allison1-7/+15
Fix suggested by Andy Hanton <andyhanton@gmail.com>. The LOGIN_CACHE struct contains two time_t entries, but was being written to and read from via tdb_pack/tdb_unpack functions using explicit 32-bit int specifiers. This would break on machines with a 64-bit time_t. Use correct int sizes for tdb_pack/tdb_unpack. We have to fix this properly before 2037 :-). Jeremy.
2010-01-28testsuite/libsmbclient use source3 in the path of the C and LFLAGSLars Müller1-2/+2
2010-01-28Link testsuite/libsmbclient against required libtdb and libwbclientLars Müller1-1/+1
2010-01-27s3: syntax fixBjörn Jacke1-1/+1
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-27s4:windc move windc plugin in its own fileSimo Sorce5-191/+228
Keep all heimdal related plugin code within wdc-samba4.c Leave only interfaces common to multiple plugins in pac-glue.c
2010-01-27s4:PAC make common functions publicSimo Sorce2-25/+70
2010-01-27s4:PAC Streamline pac-glue step 2Simo Sorce1-55/+113
Split functions so that no assumption is made about which plugin is using them
2010-01-27s4:PAC Streamline pac-glueSimo Sorce1-19/+40
First step, preparing to share the code between multiple plugins.
2010-01-27s3: get pthread detection also on HP-UX rightBjörn Jacke1-1/+12
2010-01-27Implemented net fsmo command for transferring fsmo rolesNadezhda Ivanova2-0/+204
The command allows the user to transfer a fsmo role to the server to which the connection is established. Roles can be transferred or seized. By default a transfer is attempted even if seize option is chosen, as it is dangerous to seize a role if the current owner is still running. example use: net fsmo show --host=hostnameoraddress --username=username --password=password net fsmo transfer --role=role --host=hostnameoraddress --username=username --password=password net fsmo seize --role=role --host=hostnameoraddress --username=username --password=password [--force] Tested against Win2008. Does not work for samba 4 yet as we are missing the GetNCChanges extensions.
2010-01-27s4-smbtorture: pick correct last packet while checking backchannel replies ↵Günther Deschner1-2/+10
in RPC-SPOOLSS-NOTIFY. Guenther
2010-01-27s3-selftest: try to get RPC-SPOOLSS-NOTIFY running during make test on the ↵Günther Deschner1-1/+3
buildfarm. Guenther
2010-01-27s4:torture: refactor querying of domain info out into ↵Michael Adam1-52/+40
test_QueryDomainInfo2_level() Used in several places. (Note: The _level suffix in the function name is just because test_QueryDomainInfo2() already exists as an overall test for all levels.) Michael Signed-off-by: Günther Deschner <gd@samba.org>
2010-01-27s4:torture: create new test_SetDomainInfo_ntstatus()Michael Adam1-12/+26
for checking for SetDomainInfo giving a desired return code. Michael Signed-off-by: Günther Deschner <gd@samba.org>
2010-01-27s4:torture: refactor setting of domain inf out into test_SetDomainInfo()Michael Adam1-101/+56
and use it in several places. Michael Signed-off-by: Günther Deschner <gd@samba.org>
2010-01-27s4:torture: refactor setting account flags out into ↵Michael Adam1-50/+46
test_SetUserInfo_acct_flags() and use this in four places (enabling/disabling accounts). Michael Signed-off-by: Günther Deschner <gd@samba.org>
2010-01-26Fix bug #7067 - Linux asynchronous IO (aio) can cause smbd to fail to ↵Jeremy Allison3-5/+71
respond to a read or write. Only works on Linux kernels 2.6.26 and above. Grants CAP_KILL capability to allow Linux threads under different euids to send signals to each other. Jeremy.
2010-01-26Add dependency of bin/smbfilter to libwbclient.Lars Müller1-1/+1
2010-01-26s4-libcli: Fixed a talloc_reference error.Andreas Schneider1-0/+1
Signed-off-by: Andreas Schneider <asn@redhat.com> Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
2010-01-26s4:winsrepl.idl: add random interface uuidStefan Metzmacher1-1/+4
This is needed to include the wrepl interface into ndrdump. metze
2010-01-26s4:smbtorture: add BASE-BENCH-HOLDOPENStefan Metzmacher2-0/+64
This is useful for manual performance testing with a large number of share mode entries. metze
2010-01-26mount.cifs: don't allow it to be run as setuid root programJeff Layton1-1/+38
mount.cifs has been the subject of several "security" fire drills due to distributions installing it as a setuid root program. This program has not been properly audited for security and the Samba team highly recommends that it not be installed as a setuid root program at this time. To make that abundantly clear, this patch forcibly disables the ability for mount.cifs to run as a setuid root program. People are welcome to trivially patch this out, but they do so at their own peril. A security audit and redesign of this program is in progress and we hope that we'll be able to remove this in the near future. Signed-off-by: Jeff Layton <jlayton@redhat.com>
2010-01-26mount.cifs: check for invalid characters in device name and mountpointJeff Layton1-0/+34
It's apparently possible to corrupt the mtab if you pass embedded newlines to addmntent. Apparently tabs are also a problem with certain earlier glibc versions. Backslashes are also a minor issue apparently, but we can't reasonably filter those. Make sure that neither the devname or mountpoint contain any problematic characters before allowing the mount to proceed. Signed-off-by: Jeff Layton <jlayton@redhat.com>
2010-01-26mount.cifs: take extra care that mountpoint isn't changed during mountJeff Layton1-8/+26
It's possible to trick mount.cifs into mounting onto the wrong directory by replacing the mountpoint with a symlink to a directory. mount.cifs attempts to check the validity of the mountpoint, but there's still a possible race between those checks and the mount(2) syscall. To guard against this, chdir to the mountpoint very early, and only deal with it as "." from then on out. Signed-off-by: Jeff Layton <jlayton@redhat.com>
2010-01-26s4-smbtorture: also test smbc_getOptionUseCCacheGünther Deschner2-1/+3
2010-01-26s3: Enable use of ccache by default for libsmbclientVolker Lendecke1-0/+3
Disable this by setting the environment variable LIBSMBCLIENT_NO_CCACHE, which has the advantage over an smb.conf option to be easily settable per application.
2010-01-25Correct fix for unused variable return from ndr_decode. Use it :-).Jeremy Allison1-0/+8
Jeremy.
2010-01-25Revert "s3: remove unused Variable"Jeremy Allison1-0/+4
This reverts commit 9536d94d5478b63fc05047964b40d8786a7246c4. Bjorn, your change removed the ndr_decoding of the dos attribute. Not a good idea :-). Jeremy.
2010-01-26Revert "libreplace: fix unused varibale warning on IRIX"Björn Jacke1-2/+2
this one was broken
2010-01-26s3: fix detection and flags for using pthreadBjörn Jacke3-13/+59
I hope this fixes the build on Tru64, IRIX and maybe bug #6983
2010-01-26s3: remove unused variableBjörn Jacke1-2/+0
2010-01-26s3:async_smb: remove unused variableBjörn Jacke1-2/+0
2010-01-26libreplace: fix unused varibale warning on IRIXBjörn Jacke1-2/+2
2010-01-26s3: remove unused VariableBjörn Jacke1-4/+0
Jeremy, please check!
2010-01-26s3:netapi: remove unused variableBjörn Jacke1-2/+0
2010-01-25lib/popt: Fix typo in README.Karolin Seeger1-1/+1
Karolin
2010-01-25s3/docs: Fix typo.Karolin Seeger1-1/+1
Karolin
2010-01-25s3/registry: Fix typo in comment.Karolin Seeger1-2/+2
Karolin
2010-01-25Revert "libcli/security: Remove a call to strncasecmp"Volker Lendecke1-1/+5
This reverts commit 7c687665eaf16b0c6f83c130f6d9e5459e0b2a32.
2010-01-25Revert "libcli/security: Convert some strtol calls to strtoul"Volker Lendecke1-2/+2
This reverts commit 7fe66e06c4df575c410d4d70ff38f120c2f4363b.
2010-01-25Revert "libcli/security: Fix a valgrind error in dom_sid_parse"Volker Lendecke1-4/+0
This reverts commit f1c889a4e61d6d751cbabd8014b4345b8051b97c.
2010-01-25s4-python: Fix formatting.Jelmer Vernooij3-33/+27
2010-01-25upgrade_from_s3: Remove unused imports.Jelmer Vernooij1-2/+0