summaryrefslogtreecommitdiffstats
path: root/source/utils
Commit message (Collapse)AuthorAgeFilesLines
...
* | r15144: final code changes for 3.0.23pre1 (SAMBA_3_0 r15141)Gerald Carter2006-04-202-2/+15
|/
* r15123: Don't even try to join with an inproper configuration.Günther Deschner2006-04-182-0/+13
| | | | Guenther
* r15053: fix portabilities issues between 32-bit winbind clients and a 64-bit ↵Gerald Carter2006-04-122-7/+7
| | | | winbindd server
* r15041: Adding rpc client calls to manipulate auditing policies on remote CIFSGünther Deschner2006-04-112-0/+415
| | | | | | | | | 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
* r15018: Merge Volker's ipc/trans2/nttrans changes overJeremy Allison2006-04-102-3/+8
| | | | | | | | 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.
* r15011: Fix bug # 2413. net rpc info can't reliably work anonymously anymore.Volker Lendecke2006-04-091-1/+3
| | | | Volker
* r14900: Separate words in error message.James Peach2006-04-041-1/+1
|
* r14899: Add missing semi-colon.James Peach2006-04-041-1/+1
|
* r14898: This change is an attempt to improve the quality of the information thatJames Peach2006-04-041-0/+43
| | | | | | | | | | | | | | | | | 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.
* r14831: Fix possible null deref. Coverity #279.Jeremy Allison2006-03-311-0/+7
| | | | Jeremy.
* r14757: Make sure we only send out a CLDAP request to an connected AD server.Günther Deschner2006-03-291-4/+6
| | | | Guenther
* r14743: Fix coverity bug #227. Possible deref of null pointerJeremy Allison2006-03-271-5/+10
| | | | | in error code path. Jeremy.
* r14699: allow 'net sam addmem' to accept a SID for the memberGerald Carter2006-03-241-5/+19
|
* r14683: Get rid of hardcoded output file. With no arg, print to stdout,Jim McDonough2006-03-231-75/+59
| | | | otherwise append to output file specified.
* r14681: Get rid of hardcoded /tmp/add.ldif and /tmp/mod.ldif files. Is there aJim McDonough2006-03-231-14/+19
| | | | | | | different directory the temp files should be in, or is /tmp ok? Still have to get rid of the output file hardcoding, but that is to come, because I need to cleanup stdout.
* r14585: Tighten argument list of kerberos_kinit_password again,Günther Deschner2006-03-201-2/+1
| | | | | | kerberos_kinit_password_ext provides access to more options. Guenther
* r14580: add 'net sam createbuiltingroup' to map BUILTIN local groups to a gidGerald Carter2006-03-201-0/+59
|
* r14577: BUG Fixes:Gerald Carter2006-03-201-13/+199
| | | | | | * Add back in the import/export support to pdbedit * Fix segv in pam_smbpass * Cleanup some error paths in pdb_tdb and pdb_interface
* r14416: Remove deadcode. Coverity #198.Jeremy Allison2006-03-151-11/+1
| | | | Jeremy.
* r14403: * modifies create_local_nt_token() to create a BUILTIN\AdministratorsGerald Carter2006-03-151-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | group IFF sid_to_gid(S-1-5-32-544) fails and 'winbind nested groups = yes' * Add a SID domain to the group mapping enumeration passdb call to fix the checks for local and builtin groups. The SID can be NULL if you want the old semantics for internal maintenance. I only updated the tdb group mapping code. * remove any group mapping from the tdb that have a gid of -1 for better consistency with pdb_ldap.c. The fixes the problem with calling add_group_map() in the tdb code for unmapped groups which might have had a record present. * Ensure that we distinguish between groups in the BUILTIN and local machine domains via getgrnam() Other wise BUILTIN\Administrators & SERVER\Administrators would resolve to the same gid. * Doesn't strip the global_sam_name() from groups in the local machine's domain (this is required to work with 'winbind default domain' code) Still todo. * Fix fallback Administrators membership for root and domain Admins if nested groups = no or winbindd is not running * issues with "su - user -c 'groups'" command * There are a few outstanding issues with BUILTIN\Users that Windows apparently tends to assume. I worked around this presently with a manual group mapping but I do not think this is a good solution. So I'll probably add some similar as I did for Administrators.
* r14278: Remainder of fix for Coverity #79,80,81: only allow GROUP or OWNER to beJim McDonough2006-03-131-0/+8
| | | | | specified once in an ACL, so it can be allocated a second time, overwriting the first
* r14272: Fix Coverity # 81: free alloc'ed storage before returningJim McDonough2006-03-131-6/+7
|
* r14214: Fix Coverity Bug # 57Volker Lendecke2006-03-111-0/+4
|
* r14156: Fix coverity #114: free storage alloc'ed by sstring_sub()Jim McDonough2006-03-101-5/+6
|
* r14155: Fix coverity #115: free storage alloc'ed by sstring_sub()Jim McDonough2006-03-101-0/+2
|
* r14153: Fix coverity #116: free storage alloc'ed by sstring_sub()Jim McDonough2006-03-101-0/+2
|
* r14152: Fix coverity #117: free storage alloc'ed by sstring_subJim McDonough2006-03-101-0/+1
|
* r14150: Fix coverity #118: not freeing alloc'ed storage returned fromJim McDonough2006-03-101-1/+3
| | | | sstring_sub().
* r14147: Fix coverity #119. alloc'ed memory returned not saved, so not freed.Jim McDonough2006-03-101-4/+8
| | | | | Need to go back and correct the assumption that an "ldap xxx suffix" parm must have an OU.
* r14146: Just some typos.Günther Deschner2006-03-101-1/+1
| | | | Guenther
* r14135: Fix for Coverity #123: resource leak. Also rework much of the code toJim McDonough2006-03-101-27/+44
| | | | make it cleaner. There's still more to do on this...
* r14101: Fix a segfault in trustdom establish, cli is NULL here.Volker Lendecke2006-03-091-1/+1
|
* r14099: Fix Coverity # 113Volker Lendecke2006-03-091-6/+8
|
* r14098: Fix Coverity # 112Volker Lendecke2006-03-091-2/+13
|
* r14087: Protect against domain being NULL. Finish Coverity #152.Jeremy Allison2006-03-091-4/+12
| | | | Jeremy.
* r14085: Fix coverity bg #152, uninit'ed var.Jim McDonough2006-03-091-1/+1
|
* r14062: Forgot those in the uint16/32 acb_info switch.Günther Deschner2006-03-091-2/+2
| | | | Guenther
* r14053: Implement Simo's suggestion: don't use /dev/null for a 'bad' path forJim McDonough2006-03-081-2/+2
| | | | users/workstations
* r14036: Ok, the last one generated a const warning. Also fix Coverity # 119.Volker Lendecke2006-03-081-6/+13
| | | | | | net rpc vampire is ugly.... Volker
* r14035: Fix Coverity bug # 124Volker Lendecke2006-03-081-0/+1
|
* r14034: Fix Coverity id # 125.Volker Lendecke2006-03-081-0/+2
| | | | | | Jeremy, you might want to take a look here. Volker
* r14033: Fix Coverity bug # 126Volker Lendecke2006-03-081-0/+1
|
* r13968: fix typo, caught by GuentherJim McDonough2006-03-071-1/+1
|
* r13957: Based on patch from Richard Renard <richard.renard@idealx.com>:Jim McDonough2006-03-071-15/+18
| | | | | Fix machine accounts (should not have valid shells) and users with no home directory (were getting previous user's directory).
* r13915: Fixed a very interesting class of realloc() bugs found by Coverity.Jeremy Allison2006-03-073-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* r13864: Some cleanup and the samr set security object function client-side.Günther Deschner2006-03-061-130/+0
| | | | Guenther
* r13861: Avoid "net rpc join" segfaulting when storing the servername in theGünther Deschner2006-03-061-1/+1
| | | | | | affinity cache. Guenther
* r13846: Take care of system that do not have LDAP librariesSimo Sorce2006-03-051-0/+5
|
* r13843: Merge in net sam provision and some pdb_ldap fixesSimo Sorce2006-03-051-0/+386
|
* r13711: * Correctly handle acb_info/acct_flags as uint32 not as uint16. Günther Deschner2006-02-271-2/+2
| | | | | | | | * Fix a couple of related parsing issues. * in the info3 reply in a samlogon, return the ACB-flags (instead of returning zero) Guenther