summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* source4/smbd/pidfile: don't panic if pid file is corrupt.Rusty Russell2012-06-281-0/+3
| | | | | | | | | | | | | | In particular, on a virtual machine after a forced reboot, it contained "Ille" instead of a valid PID. Given it was the right length, I'm assuming it was filesystem corruption. process_exists_by_pid() then panics, when given a pid < 1. Reported-by: lostogre on #samba-technical Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Autobuild-User(master): Rusty Russell <rusty@rustcorp.com.au> Autobuild-Date(master): Thu Jun 28 05:19:24 CEST 2012 on sn-devel-104
* replace: define INT64_MAX when not definedBjörn Jacke2012-06-281-0/+4
| | | | | | | Tru64 doesn't have any stdint.h Autobuild-User(master): Björn Jacke <bj@sernet.de> Autobuild-Date(master): Thu Jun 28 00:45:58 CEST 2012 on sn-devel-104
* s3-param: Rename loadparm_s3_context -> loadparm_s3_helpersAndrew Bartlett2012-06-2723-33/+33
| | | | | | | | | | | | | | | | | This helps clarify the role of this structure and wrapper function. The purpose here is to provide helper functions to the lib/param loadparm_context that point back at the s3 lp_ functions. This allows a struct loadparm_context to be passed to any point in the code, and always refer to the correct loadparm system. If this has not been set, the variables loaded in the lib/param code will be returned. As requested by Michael Adam. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Wed Jun 27 17:11:16 CEST 2012 on sn-devel-104
* s3-pdb_samba4: Remove dupliate profilePath handlingAndrew Bartlett2012-06-271-6/+0
| | | | | Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Wed Jun 27 13:16:26 CEST 2012 on sn-devel-104
* s4-selftest: expand passdb testingAndrew Bartlett2012-06-272-0/+102
| | | | This tests pdb_samba4 in the first instance
* s3-pdbtest: Initialise more elements for testingAndrew Bartlett2012-06-271-0/+8
| | | | | | | If these were left as defaults, they cause issues when the backend (pdb_samba4) returns the internal defaults from the directory, not the defaults from samu_new() Andrew Bartlett
* s3-pdb_samba4: Add support for lastLogon and lastLogoffAndrew Bartlett2012-06-271-2/+10
|
* s3-pdb_samba4: Fix time handling, use nt_time_to_unix()Andrew Bartlett2012-06-271-1/+1
| | | | | | | This matches 478d74fe1447c4588b14ef7040c8c13339d54026 which I failed to merge from pdb_ads. Andrew Bartlett
* lib/ldb: Print trace messages for modify correctlyAndrew Bartlett2012-06-271-1/+1
|
* s4-selftest: Test login with a password expired userAndrew Bartlett2012-06-272-0/+34
| | | | | | This uses rkpty to test changing an expired password. Andrew Bartlett
* s4-dsdb when setting DSDB_CONTROL_PASSWORD_BYPASS_LAST_SET_OID make it ↵Andrew Bartlett2012-06-271-1/+7
| | | | non-critical
* s4-dsdb: Remove hooks for non-directory password handlingAndrew Bartlett2012-06-271-12/+0
| | | | | | | This was an interesting hack, and the local_password module still exists, but until it has a use case and a test case, remove the bypass of password_hash. Andrew Bartlett
* selftest: allow NSS_WRAPPER_* vars to be exported to the environmentAndrew Bartlett2012-06-271-1/+6
|
* selftest: Add extra users to nss_wrapperAndrew Bartlett2012-06-272-2/+4
| | | | | | | These will be used for a test using pdbtest and to run the client test environment under nss_wrapper. Andrew Bartlett
* s3-pdbtest: show mis-matching timesAndrew Bartlett2012-06-271-4/+12
|
* s3:registry: change reg_import.c according to coding guidelines.Michael Adam2012-06-271-53/+47
| | | | | Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Wed Jun 27 10:07:54 CEST 2012 on sn-devel-104
* s3:registry: use TALLOC_CTX * instead of const void * in reg_import_adapter()Michael Adam2012-06-272-2/+2
|
* s3: add a tool "cclean" to cleanup orphaned entries from connections.tdbGregor Beck2012-06-273-1/+324
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3:conn_tdb: add a function connections_fetch_entry_ext() that also takes ↵Gregor Beck2012-06-272-5/+19
| | | | | | | | the cnum and have connections_fetch_entry() call connections_fetch_entry_ext(). Signed-off-by: Michael Adam <obnox@samba.org>
* s3:lib:dbwrap: fix return value of db_ctdb_traverse[_read] for ↵Gregor Beck2012-06-271-6/+17
| | | | | | | | non-persistent dbs to return the number of traversed records upon successful traverse. Signed-off-by: Michael Adam <obnox@samba.org>
* s3-printing: fix broken print_job_get_name() returnDavid Disseldorp2012-06-271-1/+2
| | | | | Autobuild-User(master): David Disseldorp <ddiss@samba.org> Autobuild-Date(master): Wed Jun 27 04:04:56 CEST 2012 on sn-devel-104
* s3:test_net_registry_check.sh: grep -E isn't portable, use egrepBjörn Jacke2012-06-271-1/+1
| | | | | | | grep -E doesn't work on Solaris /usr/bin/grep e.g. Autobuild-User(master): Björn Jacke <bj@sernet.de> Autobuild-Date(master): Wed Jun 27 02:18:07 CEST 2012 on sn-devel-104
* tests: make test_ldb portable, eliminate "local" keywordBjörn Jacke2012-06-271-10/+6
| | | | this is BASH only, don't use it.
* s3:net registry import: implement dry-run with "--test"Michael Adam2012-06-261-0/+6
| | | | | | | Pair-Programmed-With: Gregor Beck <gbeck@sernet.de> Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Tue Jun 26 21:43:49 CEST 2012 on sn-devel-104
* s3:net registry import: add an assertMichael Adam2012-06-261-0/+2
| | | | Pair-Programmed-With: Gergor Beck <gbeck@sernet.de>
* s3:net registry import: reduce indentationMichael Adam2012-06-261-7/+8
| | | | Pair-Programmed-With: Gregor Beck <gbeck@sernet.de>
* s3:net registry import: fix the return code when transaction commit failsMichael Adam2012-06-261-1/+1
| | | | Pair-Programmed-With: Gregor Beck <gbeck@sernet.de>
* s3:net registry import: improve regdb_open/close layeringMichael Adam2012-06-261-3/+4
| | | | Pair-Programmed-With: Gregor Beck <gbeck@sernet.de>
* s3:net registry import: untangle nested function callsMichael Adam2012-06-261-3/+8
|
* s3:net registry import: reduce indentation and untangle assignment from checkMichael Adam2012-06-261-4/+9
| | | | in import_with_precheck_action().
* s3:net registry import: move precheck-and-import code to its own functionMichael Adam2012-06-261-9/+20
| | | | | | This is the code that is executed in a registry transaction. The purpose of the refactoring is to be able to simplify and untangle the code structure in the sequel.
* s3:net registry: fix violation of coding conventionsGregor Beck2012-06-261-32/+35
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3:net registry import: add option --precheckGregor Beck2012-06-263-5/+197
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3:registry: add function registry_value_cmp()Gregor Beck2012-06-262-0/+10
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3:net registry import: check return values + codecleanupGregor Beck2012-06-261-16/+30
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3:net registry: fix output of dwords with sign bit setGregor Beck2012-06-261-1/+1
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3:registry: fix possible double free in importGregor Beck2012-06-261-0/+1
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3:registry: improve debug output in reg_parseGregor Beck2012-06-261-1/+2
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3:registry: add functions to conveniently create registry_valuesGregor Beck2012-06-262-0/+65
| | | | Pair-Programmed-With: Michael Adam <obnox@samba.org>
* s3:registry: silence net_deletekey_recursiveGregor Beck2012-06-261-4/+4
| | | | | | WERR_BADFILE may not be an error for the caller because the result is the same. Signed-off-by: Michael Adam <obnox@samba.org>
* s3:registry: make reg_delete_path() delete the path recursively.Michael Adam2012-06-261-3/+3
| | | | | Pair-Programmed-With: Gregor Beck <gbeck@sernet.de> (cherry picked from commit a56992ab71032b54d9879834c12f6b88e6174cb4)
* s3:registry: compile reg_create_path() & reg_delete_path()Gregor Beck2012-06-262-7/+0
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* Merge suggested fix from bug 7511 and enhance itBjörn Jacke2012-06-261-3/+2
| | | | | | | | | | | Changes from Lars Müller and Olaf Flebbe: a) The location in the filesystem defaults to STATEDIR/usershare b) If undefined the default location is used; if set to zero (the default) user defined shares are ignored. Autobuild-User(master): Björn Jacke <bj@sernet.de> Autobuild-Date(master): Tue Jun 26 19:55:00 CEST 2012 on sn-devel-104
* s3:test_registry_upgrade: make more portable and eliminate "local" keywordBjörn Jacke2012-06-261-6/+6
| | | | prefer to use function syntax with (...) to make variables local
* s3-torture: Use static printer for smbd spooler testDavid Disseldorp2012-06-261-1/+9
| | | | | Autobuild-User(master): David Disseldorp <ddiss@samba.org> Autobuild-Date(master): Tue Jun 26 18:04:43 CEST 2012 on sn-devel-104
* s3-printing: use euid for vlp job trackingDavid Disseldorp2012-06-261-1/+2
| | | | | vlp can be called by print_run_command as root with euids set appropriately, vlp should use this to track the job owner.
* s3-printing: fill print_generic sysjob id on job submissionDavid Disseldorp2012-06-261-57/+88
| | | | | | | | | Change the generic print backend to fill the printing backend job identifier (sysjob) on submission of a new job. This is needed to ensure correct mapping of spoolss jobs and entries in the backend print queue. This and the last 13 commits attempt to address bug 8719.
* s3-printing: pass lpq command to job_submitDavid Disseldorp2012-06-265-5/+37
| | | | | | | | | | | Currently the generic print backend does not fill the printing backend job identifier (sysjob) on submission of a new job. The sysjob identifier is required to correctly map jobs in the printer queue to corresponding spoolss print jobs. Passing the lpq command to job_submit allows the generic print backend to check the printer queue for the new job following submission. This behaviour will come in a later commit.
* s3-printing: remove unused print_job_fname()David Disseldorp2012-06-262-17/+1
|
* s3-printing: pass a talloc ctx to unpack_pjobDavid Disseldorp2012-06-262-18/+22
| | | | Rather than allocating the devicemode on a null context.