summaryrefslogtreecommitdiffstats
path: root/source4/scripting/python/samba/netcmd/dbcheck.py
Commit message (Collapse)AuthorAgeFilesLines
* Move python modules from source4/scripting/python/ to python/.Jelmer Vernooij2013-03-021-143/+0
| | | | | | | Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Sat Mar 2 03:57:34 CET 2013 on sn-devel-104
* s4-dbcheck: Allow forcing an override of an old @MODULES recordAndrew Bartlett2013-01-101-4/+20
| | | | Reviewed-by: Stefan Metzmacher <metze@samba.org>
* samba-tool: Unify usage messages.Karolin Seeger2012-10-081-1/+1
| | | | | | | Karolin Autobuild-User(master): Karolin Seeger <kseeger@samba.org> Autobuild-Date(master): Mon Oct 8 14:26:52 CEST 2012 on sn-devel-104
* s4-python: Remove env from non-executable netcmd scripts.Andreas Schneider2012-03-131-2/+0
|
* Partially revert 1f0298dd1b1a939cb215e7b474178b217f8347f4Jelmer Vernooij2012-02-251-1/+1
| | | | | | | It's fine to catch keyboard interrupts and other kinds of errors when it's done just for resource management, where the error is reraised later. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Feb 25 17:29:34 CET 2012 on sn-devel-104
* Revert "samba-tool: moved takes_optiongroups definition to Command base class"Jelmer Vernooij2012-02-071-1/+6
| | | | | | | | | | | | | | | | | This reverts commit f6fa8684896b8f3f9f8b7bd3742c99906973274c. This keeps the main command class fairly slim, and makes it a bit more obvious where the arguments to run() are coming from. Conflicts: source4/scripting/python/samba/netcmd/__init__.py source4/scripting/python/samba/netcmd/domain.py source4/scripting/python/samba/netcmd/gpo.py source4/scripting/python/samba/netcmd/newuser.py source4/scripting/python/samba/netcmd/testparm.py source4/scripting/python/samba/netcmd/user.py source4/scripting/python/samba/tests/samba_tool/__init__.py
* python: Change except: statement to except Exception:Amitay Isaacs2012-01-241-1/+1
| | | | | | | | This way we only catch true exceptions and keyboard interrupts are not caught here. Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Tue Jan 24 03:32:40 CET 2012 on sn-devel-104
* dbcheck: cope with objects disappearing during checkingAndrew Tridgell2011-12-081-1/+1
| | | | | Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Thu Dec 8 03:23:49 CET 2011 on sn-devel-104
* samba-tool: Don't require full prog line to be in synopsis.Jelmer Vernooij2011-10-141-1/+1
|
* samba-tool: Use self.outf in a few more places.Jelmer Vernooij2011-10-131-6/+7
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Thu Oct 13 05:06:52 CEST 2011 on sn-devel-104
* s4-dbcheck: fixed transaction nesting in dbcheckAndrew Tridgell2011-09-221-2/+6
| | | | | | | | | ensure we don't cancel a transaction we didn't start Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Thu Sep 22 03:39:59 CEST 2011 on sn-devel-104
* samba-tool: Fixed "dbcheck" subcommand syntaxGiampaolo Lauria2011-09-091-1/+1
| | | | | | | Fixed syntax for "dbcheck" subcommand Signed-off-by: Amitay Isaacs <amitay@gmail.com> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* dbcheck: Cancel transaction if operation fails.Jelmer Vernooij2011-08-021-10/+15
| | | | | Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Tue Aug 2 01:41:07 CEST 2011 on sn-devel-104
* samba-tool: add -H or --URL where necessaryGiampaolo Lauria2011-07-281-1/+2
| | | | | | | To improve consistency, I've made sure all the commands take either a -H or --URL when specifying a URL Signed-off-by: Andrew Tridgell <tridge@samba.org>
* samba-tool: moved takes_optiongroups definition to Command base classGiampaolo Lauria2011-07-211-6/+1
| | | | | | | | | | The option groups should be defined at the Command base class level as they are in common across all samba-tool commands. Major move advantages: 1. more OOP approach 2. enforcing consistency across commands 3. avoiding the need of declaring for every new command Signed-off-by: Andrew Tridgell <tridge@samba.org>
* dbcheck: fixed ldap check with no database specifiedAndrew Tridgell2011-07-131-1/+1
| | | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
* dbcheck: added --reindex optionAndrew Tridgell2011-07-131-3/+10
| | | | | | | this allows you to force a reindex of the database Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com> Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* dbcheck: check all objects, including deleted objectsAndrew Tridgell2011-07-111-1/+1
| | | | | | | | | | this makes dbcheck search over all objects, deleted or not. This matters because when another DC replicates from this DC it replicates the deleted objects as well, so invalid attributes in deleted objects can cause problems on the new DC (for example, windows can get stuck or even crash during the replication) Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
* dbcheck: use specified DB schema for non-LDAP URLsAndrew Tridgell2011-07-111-2/+9
| | | | | | | when connecting to a local database with -H we can use that databases schema Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
* dbcheck: only use a paged search when checking a ldap databaseAndrew Tridgell2011-07-051-1/+1
| | | | | paged searches don't work against a local database (they return only the first N objects)
* dbchecker: fixed argument error for -H and DNAndrew Tridgell2011-06-221-1/+1
|
* samba-tool: added --attrs option to dbcheckAndrew Tridgell2011-06-221-2/+8
| | | | this allows checking of a specific list of attributes
* samba-tool: make the dbcheck class available outside of samba-toolAndrew Tridgell2011-06-221-285/+16
| | | | | this will be used in provision, and probably in upgradeprovision as well
* samba-tool: added --quiet option to dbcheckAndrew Tridgell2011-06-221-35/+43
| | | | | this will be used to allow for other tools (such as provision) to call into dbcheck without generating a lot of noise
* samba-tool: allow for running dbcheck against a remove ldap serverAndrew Tridgell2011-06-221-5/+14
| | | | this is useful for running it against a Windows server
* samba-tool: expanded dbcheck DN checkingAndrew Tridgell2011-06-221-21/+104
| | | | | | | this now checks for bad GUID elements in DN links, and offers to fix them when possible Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* samba-tool: added missing GUID component checks to dbcheckAndrew Tridgell2011-06-221-4/+93
| | | | | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Wed Jun 22 07:59:30 CEST 2011 on sn-devel-104
* samba-tool: try to keep dbcheck.py in a logical orderingAndrew Tridgell2011-06-221-29/+38
| | | | keep individual error handlers together and separate from driver code
* s4-sambatool: extract the confirm function in a separte module for reuseMatthieu Patou2011-06-191-10/+3
|
* s4-samba-tool: remove unused importsMatthieu Patou2011-06-191-2/+1
|
* s4-samba-tool: use correct object notation ie. obj.method rather than ↵Matthieu Patou2011-06-191-37/+31
| | | | method(obj, ...)
* s4-sambatool: use correct way to call class methodsMatthieu Patou2011-06-191-53/+54
|
* samba-tool: exit with non-zero status on dbcheck failureAndrew Tridgell2011-06-171-1/+3
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* samba-tool: report total error count and suggest --fix if neededAndrew Tridgell2011-06-171-3/+10
|
* samba-tool: added attribute normalisation checksAndrew Tridgell2011-06-171-3/+53
| | | | | this checks that all attributes have the right normalisation, and offers to fix the ones that don't
* samba-tool: disable validation on removing an empty attribute in dbcheckAndrew Tridgell2011-06-141-1/+1
| | | | | Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Tue Jun 14 10:49:34 CEST 2011 on sn-devel-104
* s4-samba-tool: added dbcheck commmandAndrew Tridgell2011-06-101-0/+123
this will be used as a consistency checker and repair tool for sam.ldb. This initial checkin just checks for empty attributes and offers to fix them Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Fri Jun 10 10:31:56 CEST 2011 on sn-devel-104