summaryrefslogtreecommitdiffstats
path: root/source/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* r15101: Little step towards getting Samba4 tdb into 3: tdb_lock_bystring ↵Volker Lendecke2007-10-103-3/+3
| | | | | | | | | does not have the timeout argument in Samba4. Add a new routine tdb_lock_bystring_with_timeout. Volker
* r15084: Try and squeeze more out of the non-read/write code path.Jeremy Allison2007-10-101-6/+2
| | | | Jeremy.
* r15047: Add support for using libunwind to generate a backtrace. This isJames Peach2007-10-101-25/+88
| | | | | primarily intended for ia64 systems where libunwind knows more about the different ways of walking the stack that just about anything else.
* r15041: Adding rpc client calls to manipulate auditing policies on remote CIFSGünther Deschner2007-10-101-0/+149
| | | | | | | | | servers. Also add a new "net rpc audit" tool. The lsa query infolevels were taken from samb4 IDL, the lsa policy flags and categories are partly documented on msdn. I need to cleanup the double lsa_query_info_policy{2}{_new} calls next. Guenther
* r15030: On a performace hunt... Remove as many extraneousJeremy Allison2007-10-102-4/+4
| | | | | memset's as possible. Jeremy.
* r15018: Merge Volker's ipc/trans2/nttrans changes overJeremy Allison2007-10-101-20/+41
| | | | | | | | into 3.0. Also merge the new POSIX lock code - this is not enabled unless -DDEVELOPER is defined. This doesn't yet map onto underlying system POSIX locks. Updates vfs to allow lock queries. Jeremy.
* r15005: Fix printf args to remove warnings.Jeremy Allison2007-10-101-3/+3
| | | | Jeremy.
* r15003: patch based on code from Arkady Glabek <aglabek@centeris.com> to ↵Gerald Carter2007-10-108-11/+153
| | | | ensure that global memory is freed when unloading pam_winbind.so (needs more testing on non-linux platforms)
* r14898: This change is an attempt to improve the quality of the information thatJames Peach2007-10-102-37/+125
| | | | | | | | | | | | | | | | | is produced when a process exits abnormally. First, we coalesce the core dumping code so that we greatly improve our odds of being able to produce a core file, even in the case of a memory fault. I've removed duplicates of dump_core() and split it in two to reduce the amount of work needed to actually do the dump. Second, we refactor the exit_server code path to always log an explanation and a stack trace. My goal is to always produce enough log information for us to be able to explain any server exit, though there is a risk that this could produce too much log information on a flaky network. Finally, smbcontrol has gained a smbd fault injection operation to test the changes above. This is only enabled for developer builds.
* r14868: I will not write code when changing to Daylight Savings Time.Gerald Carter2007-10-101-10/+6
| | | | | | | | | | | | | | | | I will not write code when changing to Daylight Savings Time. I will not write code when changing to Daylight Savings Time. I will not write code when changing to Daylight Savings Time. I will not write code when changing to Daylight Savings Time. I will not write code when changing to Daylight Savings Time. I will not write code when changing to Daylight Savings Time. I will not write code when changing to Daylight Savings Time. I will not write code when changing to Daylight Savings Time. ... Fix my brain dead inverted logic for turning winbindd on and off when run on a DC or when calling pdb functions from within winbindd.
* r14855: Various fixes:Gerald Carter2007-10-101-2/+8
| | | | | | | | * depreacte 'acl group control' after discussion with Jeremy and implement functionality as part of 'dos filemode' * fix winbindd on a non-member server to expand local groups * prevent code previously only used by smbd from blindly turning _NO_WINBINDD back on
* r14764: Fix possible null pointer deref. Coverity #253.Jeremy Allison2007-10-101-2/+4
| | | | Jeremy.
* r14751: Use the noreturn attribute to try and tell coverity thatJeremy Allison2007-10-101-9/+12
| | | | | smb_panic can't return. Jeremy.
* r14746: Add the Samba4 replacements for opendir/readdir etc. toJeremy Allison2007-10-102-1/+219
| | | | | | | Samba3 - with some 64-bit macro madness. Attempt to fix the broken directory handling in the *BSD-of-the-month club. Jeremy.
* r14703: Clarify the return codes for the POSIX locking case. ThisJeremy Allison2007-10-101-1/+1
| | | | | was confusing. Jeremy.
* r14668: Set the FILE_STATUS_OFFLINE bit by observing the events a DMAPI-basedJames Peach2007-10-103-2/+35
| | | | HSM is interested in. Tested on both IRIX and SLES9.
* r14618: add --no-process-group to all server programmsStefan Metzmacher2007-10-101-3/+3
| | | | | | | | | | | to make the following possible: timelimit 20000 bin/nmbd -F -S --no-process-group timelimit 20000 bin/smbd -F -S --no-process-group this is needed to 'make test' working without losing child processes metze
* r14600: Refactor capability interface from being IRIX-specific to using onlyJames Peach2007-10-102-56/+70
| | | | | the POSIX interface. Note that this removes support for inherited capabilities. This wasn't used, and probably should not be.
* r14522: sync socket_wrapper code with samba4Stefan Metzmacher2007-10-101-64/+309
| | | | metze
* r14462: Fix warning. ber_tag_t is an unsigned int forJeremy Allison2007-10-101-1/+1
| | | | | printing purposes. Jeremy.
* r14454: Janitor for tridge - same code exists in Samba3 and 4.Jeremy Allison2007-10-101-1/+1
| | | | | | | Jeremy. ----------------------------- fixed an hmac-md5 error for keys longer than 64 (using deallocated stack variable)
* r14432: Give in and grant BUILT\Administrators all privilegesGerald Carter2007-10-102-2/+25
|
* r14397: Fix deadcode in coverity error #1.Jeremy Allison2007-10-101-7/+8
| | | | Jeremy.
* r14393: Fix a couple of AIX warnings.Jeremy Allison2007-10-101-1/+0
| | | | Jeremy.
* r14387: Try and fix the coverity issues (#53, #54) with negativeJeremy Allison2007-10-101-2/+2
| | | | | | sink by ensuring all uses of rpcstr_push are consistent with a size_t dest size arg. Jeremy.
* r14345: Fix Coverity #71. We don't currently propagate *any*Jeremy Allison2007-10-101-10/+15
| | | | | | alloc error back up the stack from smbldap_set_mod() so ensure we abort correctly. Jeremy.
* r14342: Fix coverity #68, resource leak on error path.Jeremy Allison2007-10-101-22/+54
| | | | Jeremy.
* r14292: Janitor for tridge (samba3 talloc is almost identicalJeremy Allison2007-10-101-3/+19
| | | | | | | | | to Samba4 talloc). Jeremy - make the snprintf call in talloc portable to older solaris boxes - fixed an error found sing the beam analyser
* r14280: Fix Coverity #129 and 130: check before dereferencing a pointer. ThisJim McDonough2007-10-101-4/+4
| | | | | was especially silly as we checked immediately _after_ dereferencing it :-/
* r14249: We've dereferenced the_acl before, no point in checking.Volker Lendecke2007-10-101-1/+1
| | | | | | Fix Coverity bug # 128. Volker
* r14131: Fix Coverity bug # 127Volker Lendecke2007-10-101-1/+3
|
* r14075: * add support for long variable names in smb.conf in the form of %(....)Gerald Carter2007-10-101-210/+155
| | | | | | | | * add support for %(DomainSID) * replace standard_sub_XXX() functions with wrappers around their alloc_sub_XXX() counterparts * add support for using SIDs in read list, et. al. (anything that is checked by nt_token_contains_name_in_list())
* r14060: Only set the last rebind timestamp when we did rebind after a non-readGünther Deschner2007-10-101-2/+21
| | | | | | | LDAP operation. That way we avoid the replication sleep after a simple redirected search operation Guenther
* r14020: Coverity bug CID #66. Missing free on error exit.Jeremy Allison2007-10-101-1/+4
| | | | Jeremy.
* r14002: Quick fix for Coverity CID #12.Jeremy Allison2007-10-101-0/+4
| | | | Jeremy
* r13999: Quick fix for Coverity bug #11.Jeremy Allison2007-10-101-1/+7
| | | | Jeremy.
* r13975: Re-fix Coverity #156 - I had left the hidden arg. inconsistentJeremy Allison2007-10-102-4/+5
| | | | | between Realloc and realloc_array. Jeremy.
* r13971: Fix Coverity bugs #209 - #213 - it detected mistakesJeremy Allison2007-10-101-56/+67
| | | | | | | in the pointer aliasing once realloc could change a pointer. This was in the bugzilla.samba.org database as #687 but we never figured out what it was ! Jeremy.
* r13948: Fix the build. Remove rpcclient.h include.Jim McDonough2007-10-101-1/+0
|
* r13945: Move display_sec.c to lib/ (as suggested by Volker).Günther Deschner2007-10-101-0/+187
| | | | Guenther
* r13915: Fixed a very interesting class of realloc() bugs found by Coverity.Jeremy Allison2007-10-109-94/+125
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | realloc can return NULL in one of two cases - (1) the realloc failed, (2) realloc succeeded but the new size requested was zero, in which case this is identical to a free() call. The error paths dealing with these two cases should be different, but mostly weren't. Secondly the standard idiom for dealing with realloc when you know the new size is non-zero is the following : tmp = realloc(p, size); if (!tmp) { SAFE_FREE(p); return error; } else { p = tmp; } However, there were *many* *many* places in Samba where we were using the old (broken) idiom of : p = realloc(p, size) if (!p) { return error; } which will leak the memory pointed to by p on realloc fail. This commit (hopefully) fixes all these cases by moving to a standard idiom of : p = SMB_REALLOC(p, size) if (!p) { return error; } Where if the realloc returns null due to the realloc failing or size == 0 we *guarentee* that the storage pointed to by p has been freed. This allows me to remove a lot of code that was dealing with the standard (more verbose) method that required a tmp pointer. This is almost always what you want. When a realloc fails you never usually want the old memory, you want to free it and get into your error processing asap. For the 11 remaining cases where we really do need to keep the old pointer I have invented the new macro SMB_REALLOC_KEEP_OLD_ON_ERROR, which can be used as follows : tmp = SMB_REALLOC_KEEP_OLD_ON_ERROR(p, size); if (!tmp) { SAFE_FREE(p); return error; } else { p = tmp; } SMB_REALLOC_KEEP_OLD_ON_ERROR guarentees never to free the pointer p, even on size == 0 or realloc fail. All this is done by a hidden extra argument to Realloc(), BOOL free_old_on_error which is set appropriately by the SMB_REALLOC and SMB_REALLOC_KEEP_OLD_ON_ERROR macros (and their array counterparts). It remains to be seen what this will do to our Coverity bug count :-). Jeremy.
* r13693: More Solaris/LDAP fixes from Bjoern <bjoern@j3e.de>Volker Lendecke2007-10-101-3/+3
|
* r13682: Actually give a developer a prayer of finding out whereJeremy Allison2007-10-101-16/+17
| | | | | | random error messages are coming from. Yes I'm pissed as I'm working on a live issue right now... Jeremy.
* r13622: Allow to rename machine accounts in a Samba Domain. This still uses theGünther Deschner2007-10-101-3/+8
| | | | | | | "rename user script" to do the rename of the posix machine account (this might be changed later). Fixes #2331. Guenther
* r13601: * Remove unused code from pdb_ldap.cGerald Carter2007-10-101-5/+4
| | | | | | | | | * Add a 'struct passwd *' to the struct samu for later reference (I know this may be controversial but its easily reverted which is is why I'm checking this is as a seaparate patch before I get too deep). * Remove unix_homedir from struct samu {} and update the pdb wrapper functions associated with it.
* r13591: I really have no idea how this code ever worked. And I haveGerald Carter2007-10-101-19/+22
| | | | | | | | no idea why no one (including myself) caught this with a compiler warning....Make sure new_chunk() actually returns a pointer to the allocated memory. SAMBA_3_0 now works again on Solaris.
* r13574: fix build; talloctort.c should not use the TALLOC_FREE() macroGerald Carter2007-10-101-40/+40
|
* r13571: Replace all calls to talloc_free() with thye TALLOC_FREE()Gerald Carter2007-10-108-55/+55
| | | | macro which sets the freed pointer to NULL.
* r13566: Fix EA support for AIX.Günther Deschner2007-10-101-0/+24
| | | | | | Patch from Bjoern Jacke <bjacke-at-sernet-dot-de>. Guenther
* r13539: Add 128 bit creds processing client and server. Thanks to Andrew ↵Jeremy Allison2007-10-101-12/+13
| | | | | | | Bartlett's Samba4 code. Jeremy.