Andrew Tridgell
4fe9ebc2e3
dbchecker: fixed argument error for -H and DN
2011-06-22 20:13:08 +02:00
Andrew Tridgell
6b939f4a9c
dbchecker: when fixing a bad GUID in a DN, search by the string 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
202f0a4b57
pydsdb: added get_syntax_oid_from_lDAPDisplayName()
...
this gives you access to the syntax oid of an attribute
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-06-22 14:47:08 +10: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
Rusty Russell
5eecc85423
tdb2: create tdb2 versions of various testing TDBs.
...
Soon, TDB2 will handle tdb1 files, but until then, we substitute.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2011-06-20 11:18:36 +02: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
Matthieu Patou
89684895ee
s4-upgradeprovision: improve message output
2011-06-19 23:21:08 +02:00
Matthieu Patou
15637206b9
s4-provision: Remove hard coded SD for CN=Sites container
...
With the fix introduced by Nadya in changeset
622ef6aed82a2f2f7748c2a88535486af77487de we are now able to generate
correct SD (at least the same as W2k3R2 with a Forest Level of 2003), so
there is no need for this fix anymore as it makes SDs for Forest Level
2003 and lower incorrect.
2011-06-19 23:21:08 +02:00
Matthieu Patou
12b379e983
s4-upgradeprovision: handle the fact that oEMInformation might not be present
2011-06-19 23:21:08 +02:00
Matthieu Patou
7128345969
s4-python: make checks of sacl in get_diff_sddls optionnal
2011-06-19 23:21:08 +02:00
Matthieu Patou
20233cdf53
s4-upgradeprovision: introduce invocation id in lastprovisionUSNs
2011-06-19 23:21:08 +02:00
Matthieu Patou
45df4d81ed
s4-python: fix wrong discovery of the site name in find_key_provision_parameters
2011-06-19 23:21:07 +02:00
Matthieu Patou
5db07d2f42
s4-upgradeprovisision: fix bug 8063, old SD can miss some componenent (group, owner, ...)
...
Don't make the assumption that SD are correct, they can be wrong and
misformed.
Fix this bug: https://bugzilla.samba.org/show_bug.cgi?id=8063
2011-06-19 23:21:07 +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
705ed1c492
samba-tool: show success message on group operations
2011-06-17 15:24:23 +10:00
Andrew Tridgell
0c3075cb57
s4-pysamdb: fixed the normalisation of grouptype in group add
...
ldap integers are signed
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Fri Jun 17 05:43:18 CEST 2011 on sn-devel-104
2011-06-17 05:43:18 +02: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
665ef94d3c
s4-pydsdb: added dsdb_normalise_attributes() call
...
this call converts a set of attributes to DRSUAPI format and back to
ldb format. This has the effect of normalising the attributes using
the schema syntax rules
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
Andrew Tridgell
516dc404fd
samba-tool: added --local option to drs replicate command
...
this allows replication directly to the local SAM, which means it can
run without the samba daemon running. It also bypasses all usnChanged
checks, which is useful for forcing replication of a set of objects
which are not marked as replication being needed
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Thu Jun 9 08:15:10 CEST 2011 on sn-devel-104
2011-06-09 08:15:10 +02:00
Andrew Tridgell
1596595b7e
s4-ipv6: don't default to 127.0.0.1 in provision
...
it is better to just leave the IPv4 address out of the zone file
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-06-09 15:03:43 +10:00
Andrew Tridgell
8acbc3a174
s4-provision: fixed detection of V4/V6 addresses
...
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Tue Jun 7 06:07:24 CEST 2011 on sn-devel-104
2011-06-07 06:07:24 +02:00
Andrew Bartlett
f67a14976b
s4-param Remove 'modules dir'
...
The Samba waf build ensures that dyn_MODULESDIR is always correct
(even for in-tree binaries), so we don't need to allow the user to
configure this at run time.
Andrew Bartlett
2011-06-06 17:37:51 +10:00
Andrew Bartlett
a18efb1490
s4-param Remove 'sid generator'
...
This was only used by the Fedora DS backend for Samba4. We agreed to
no longer support external LDAP backends.
Andrew Bartlett
2011-06-06 17:37:50 +10:00
Andrew Bartlett
834d590bcf
s4-param Remove 'idmap database'
...
This is now just idmap.ldb in the private dir, which remains.
2011-06-06 15:02:39 +10:00
Andrew Bartlett
1565da7694
s4-param Remove 'secrets database' parameter
...
This is now just secrets.ldb in the private dir, which remains.
2011-06-06 15:02:39 +10:00
Andrew Bartlett
c091a92be5
s4-param Remove 'sam database' parameter
...
This now just relies on the private dir parameter, which remains.
Andrew Bartlett
2011-06-06 15:02:38 +10:00
Andrew Tridgell
40dc94a53f
s4-ipv6: update callers to load_interface_list()
2011-06-06 12:26:10 +10:00
Andrew Tridgell
087ee1f40e
s4-gpo: fixed display of GPO version numbers
2011-06-06 12:26:10 +10:00
Rusty Russell
2f67fae18b
samba3sam.py: don't assume order of ldb results.
...
Switching to tdb2 breaks this test horribly, because it relied on the
order of TDB1 traversal. Fix it to sort te results (by db), then
check them.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2011-06-02 10:22:06 +09:30
Andrew Tridgell
1bc1ac0d08
samba-tool: improved error handling in user setexpiry
2011-06-01 17:24:36 +10:00
Andrew Tridgell
7b3d8b6c90
samba-tool: improved user enable error handling
2011-06-01 17:24:36 +10:00
Theresa Halloran
23177b5f44
s4:samba-tool: Move samba-tool setexpiry to samba-tool user setexpiry <user>
...
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-06-01 17:24:36 +10:00
Theresa Halloran
726ee12bb4
s4/samba-tool: Move samba-tool enableaccount to samba-tool user enable command.
...
Signed-off-by: Andrew Tridgell <tridge@samba.org>
2011-06-01 17:24:36 +10:00
Andrew Bartlett
53b0c44d8c
s4-provision Use correct tkey-gssapi-credential
...
We changed to ${DNSNAME} (the fully qualified domain name) a while
back, and while it's usually functionally idential to the previous
setting, this breaks down if there is more than one DNS server.
Andrew Bartlett
2011-05-25 12:12:53 +10:00
Matthieu Patou
22a638b616
s4-python: Remove not used imports
2011-05-21 08:41:07 +02:00
Matthieu Patou
6071ed67bf
s4-python: move function find_provision_key_parameters to provision namespace as it can be used not only for upgradeprovision
2011-05-21 08:41:07 +02:00
Andrew Bartlett
fa3e2fc8bb
selftest: Re-enable strings.py from source3/stf as a python subunit test
2011-05-18 16:12:08 +02:00
Andrew Bartlett
c6cc22adc0
s4-libnet: Remove libnet_Join and create libnet_Join_member
...
libnet_Join conflicts with a function in the source3 netapi of the
same name, and the ability to join as a DC via this particular method
is unused.
Andrew Bartlett
2011-05-18 16:12:08 +02:00