summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* s4:samba_dnsupdate Add a 'file based' mode to samba_dnsupdateAndrew Bartlett2010-03-113-25/+60
| | | | | | | | | For the testsuite to use DNS like names, we need to write these names to a file. Also, to have this run in 'make test' the usual rules about 'no 127.*' IP addresses in DNS must be skipped, so glue.interface_ips takes two arguments now
* s4:lib/socket Don't go via a string when resolving addresses in connect_multiAndrew Bartlett2010-03-111-28/+20
| | | | | | | This also removes the special case for IP addresses, and leaves that to the code in the resolver library. Andrew Bartlett
* s4:libcli/resolve Use a more robust way to return the string addressAndrew Bartlett2010-03-112-3/+12
| | | | | | | | | By going via these tevent functions, we avoid needing to dereference the struct socket_address, which may contain a 'struct sockaddr' or strings. The new dns_host_file resolver returns in the form of a struct sockaddr. Andrew Bartlett
* s4:lib/socket Add function to set a port on the socket addressAndrew Bartlett2010-03-112-0/+14
|
* Move prototype to header of common code for set_sockaddr_portAndrew Bartlett2010-03-112-1/+2
|
* s4/rpc_server Don't segfault over replPropertyMetaData contentsAndrew Bartlett2010-03-111-0/+7
| | | | | | | | The replPropertyMetaData may contain attrid values that we don't yet have in the local schema. We need to deal with this - it is a serious error, but we should not segfault. Andrew Bartlett
* vfs_netatalk: Segfault if hide files or veto files has no ".AppleDouble"SATOH Fumiyasu2010-03-101-1/+1
|
* s4-smbtorture: only look at DATA_BLOB pointer when einfo[0].data_length > 0.Günther Deschner2010-03-111-1/+3
| | | | Guenther
* Added regression test for bug #7234 - Symlink delete fails but incorrectly ↵Jeremy Allison2010-03-102-5/+47
| | | | | | | | reports success. Ensure we can delete a symlink by path. Jeremy.
* s4-smbtorture: while testing PrinterDataEx also compare Get and Enum results.Günther Deschner2010-03-101-10/+29
| | | | Guenther
* Fix bug #7234 - Symlink delete fails but incorrectly reports success to client.Jeremy Allison2010-03-101-1/+1
| | | | | | Typo called LSTAT instead of STAT in the unlink by pathname path. Jeremy.
* Revert "s4-smbtorture: disable winreg QueryValue test for today."Günther Deschner2010-03-101-2/+2
| | | | This reverts commit 420e3b8553c9e721fba27dd64eb78b2c7105ce64.
* ѕ4: EDQUOT needs to be mapped to NT_STATUS_DISK_FULLBjörn Jacke2010-03-101-1/+1
|
* s4:libnet - change variables to "unsigned" where neededMatthias Dieter Wallnöfer2010-03-108-12/+13
|
* s4:libnet_become_dc - change counter variables to "unsigned" where they ↵Matthias Dieter Wallnöfer2010-03-102-3/+3
| | | | count LDB objects
* s4:winreg RPC - fix up the "QueryValue" call to work against the enhanced ↵Matthias Dieter Wallnöfer2010-03-101-7/+11
| | | | | | torture test Found out by gd's updated torture test.
* s4:registry/ldb.c - if "name" isn't set we should return WERR_INVALID_PARAMMatthias Dieter Wallnöfer2010-03-101-1/+5
|
* nsswitch: build libnss_winbind.so with SOVERSION = 2Stefan Metzmacher2010-03-101-0/+2
| | | | metze
* nsswitch: don't use socket_wrapper for winbind client codeStefan Metzmacher2010-03-101-2/+1
| | | | metze
* nsswitch: build libnss_winbindd.so only for the non merged buildStefan Metzmacher2010-03-101-0/+2
| | | | metze
* s4:build/m4/public.m4: add realname argument to SMB_BUILD_LIBRARY()Stefan Metzmacher2010-03-101-1/+2
| | | | metze
* s4:rpc_server/wkssvc: don't reset [out,ref] pointer to 0Stefan Metzmacher2010-03-101-6/+0
| | | | | | | | | | | r->out.total_entries = 0; should be *r->out.total_entries = 0; Otherwise we fail to marshall the reponse or crash if we run with log level = 10 and trigger the ndr_print functions. All out elements are already setup and initialized by the pidl generated code. metze
* s4:rpc_server/wkssvc: remove unneeded talloc_reference()Stefan Metzmacher2010-03-101-4/+2
| | | | metze
* s4:rpc_server/wkssvc: avoid ZERO_STRUCT(r->out) and use already allocated ↵Stefan Metzmacher2010-03-101-4/+0
| | | | | | [out,ref] memory metze
* s4:rpc_server/srvsvc: remove unused ZERO_STRUCT(r->out);Stefan Metzmacher2010-03-101-2/+0
| | | | | | | | Here it doesn't matter, but it's a bad example for other code as it might reset the [out,ref] pointers which are already generated by the pidl generated code. metze
* idl: Regenerate DRSUAPI idl filesKamen Mazdrashki2010-03-105-299/+225
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4/idl: drsuapi_QuerySitesByCostCtr1 'unknown' member is now knownKamen Mazdrashki2010-03-101-1/+1
| | | | | | | and this it is a reserved fields for future flags - 'flags_reserver' Must be 0 and is currently ignored. Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4/idl: QuerySitesByCost - switch types should be unsignedKamen Mazdrashki2010-03-101-4/+4
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4/idl: DsGetMemberships2 - switch types should be unsignedKamen Mazdrashki2010-03-101-4/+4
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4/drs: DsRemoveDSServer - Propagating IDL changes to source codeKamen Mazdrashki2010-03-101-1/+1
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4/idl: DsRemoveDSServer - switch types should be unsignedKamen Mazdrashki2010-03-101-4/+4
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4/drs: DsWriteAccountSpn - Propagating IDL changes to source codeKamen Mazdrashki2010-03-101-1/+1
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4/idl: DsWriteAccountSpn - switch types should be unsignedKamen Mazdrashki2010-03-101-4/+4
| | | | | | | Changes also propagated into source code as they are too minor to be done in separate commit Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3/drs: DsCrackNames - Propagating IDL changes to source codeKamen Mazdrashki2010-03-102-4/+4
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4/drs: DsCrackNames - Propagating IDL changes to source codeKamen Mazdrashki2010-03-103-4/+4
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4/idl: DsCrackNames - switch types should be unsignedKamen Mazdrashki2010-03-101-4/+4
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4/idl: DsGetMemberships - switch types should be unsignedKamen Mazdrashki2010-03-101-4/+4
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4/idl: DsReplicaMod - switch types should be unsignedKamen Mazdrashki2010-03-101-2/+2
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4/idl: DsReplicaDel - switch types should be unsignedKamen Mazdrashki2010-03-101-2/+2
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4/idl: DsReplicaAdd - switch types should be unsignedKamen Mazdrashki2010-03-101-2/+2
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4/idl: DsReplicaUpdateRefs - switch types should be unsignedKamen Mazdrashki2010-03-101-2/+2
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3/drs: DsGetNCChanges - Propagating IDL changes to source codeKamen Mazdrashki2010-03-102-9/+9
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4/drs: DsGetNCChanges - Propagating IDL changes to source codeKamen Mazdrashki2010-03-104-7/+7
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4/idl: DsGetNCChanges - switch types should be unsignedKamen Mazdrashki2010-03-101-5/+5
| | | | | | | Converting those types to unsigned should help in creating DRSUAPI dissector for Wireshark also. Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4/idl: drsuapi_DsReplicaSyncOptions flags are no more usedKamen Mazdrashki2010-03-102-28/+0
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* doxygen: talloc_get_type name fixed in Doxygen documentationKamen Mazdrashki2010-03-101-1/+1
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-winreg: add some debug statements to _winreg_QueryValue().Günther Deschner2010-03-101-2/+6
| | | | Guenther
* s4-smbtorture: do full winreg QueryValue test for values we created.Günther Deschner2010-03-101-0/+27
| | | | Guenther
* s4-smbtorture: check for non existing value under version key in RPC-WINREG.Günther Deschner2010-03-101-0/+2
| | | | Guenther
* s3: Fix a long-standing problem with recycled PIDsVolker Lendecke2010-03-1020-38/+602
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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