Andrew Tridgell
059941b6e7
dbcheck: use specified DB schema for non-LDAP URLs
...
when connecting to a local database with -H we can use that databases
schema
Pair-Programmed-With: Amitay Isaacs <amitay@gmail.com>
2011-07-11 14:32:44 +10:00
Andrew Tridgell
c6985f1e7e
dbcheck: only use a paged search when checking a ldap database
...
paged searches don't work against a local database (they return only
the first N objects)
2011-07-05 07:10:03 +02:00
Andrew Tridgell
4fe9ebc2e3
dbchecker: fixed argument error for -H and DN
2011-06-22 20:13:08 +02:00
Andrew Tridgell
9676c26fdd
samba-tool: added --attrs option to dbcheck
...
this allows checking of a specific list of attributes
2011-06-22 20:13:08 +02:00
Andrew Tridgell
7fff636bce
samba-tool: make the dbcheck class available outside of samba-tool
...
this will be used in provision, and probably in upgradeprovision as
well
2011-06-22 20:13:08 +02:00
Andrew Tridgell
9be9f0e43c
samba-tool: added --quiet option to dbcheck
...
this will be used to allow for other tools (such as provision) to call
into dbcheck without generating a lot of noise
2011-06-22 20:13:08 +02:00
Andrew Tridgell
6d1fe054dd
samba-tool: allow for running dbcheck against a remove ldap server
...
this is useful for running it against a Windows server
2011-06-22 11:16:26 +02:00
Andrew Tridgell
ff8cdeecfc
samba-tool: expanded dbcheck DN checking
...
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>
2011-06-22 11:16:26 +02:00
Andrew Tridgell
9e766f019b
samba-tool: added missing GUID component checks to dbcheck
...
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
2011-06-22 07:59:30 +02:00
Andrew Tridgell
c4a7908f46
samba-tool: try to keep dbcheck.py in a logical ordering
...
keep individual error handlers together and separate from driver code
2011-06-22 14:47:07 +10:00
Matthieu Patou
9c94943d26
s4-sambatool: extract the confirm function in a separte module for reuse
2011-06-19 23:21:09 +02:00
Matthieu Patou
bc549575dd
s4-samba-tool: remove unused imports
2011-06-19 23:21:08 +02:00
Matthieu Patou
db03091607
s4-samba-tool: use correct object notation ie. obj.method rather than method(obj, ...)
2011-06-19 23:21:08 +02:00
Matthieu Patou
8a04863f0d
s4-sambatool: use correct way to call class methods
2011-06-19 23:21:08 +02:00
Andrew Tridgell
0b3b7e3797
samba-tool: exit with non-zero status on dbcheck failure
...
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-06-17 15:25:42 +10:00
Andrew Tridgell
a8269792aa
samba-tool: report total error count and suggest --fix if needed
2011-06-17 12:32:55 +10:00
Andrew Tridgell
08dc1aa4cc
samba-tool: added attribute normalisation checks
...
this checks that all attributes have the right normalisation, and
offers to fix the ones that don't
2011-06-17 12:32:55 +10:00
Andrew Tridgell
d575b2b0ab
samba-tool: disable validation on removing an empty attribute in dbcheck
...
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Tue Jun 14 10:49:34 CEST 2011 on sn-devel-104
2011-06-14 10:49:34 +02:00
Andrew Tridgell
0c89d624e6
s4-samba-tool: added dbcheck commmand
...
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
2011-06-10 10:31:56 +02:00