Matthieu Patou
249fbd8a33
s4-samba_dnsupdate: set environment via the env parameter
...
I faced a situation where the os.environ("KRB5CCNAME") = ... didn't
seems to be effective
2011-06-22 20:13:08 +02:00
Matthieu Patou
c2dfaa2580
s4-upgradeprovision: Don't forget to populate the non replicated objects, and don't touch rIDPreviousAllocationPool
2011-06-22 20:13:08 +02:00
Andrew Tridgell
2f4251c389
dbchecker: cope with a broken link to Deleted Objects
...
if a DN link to Deleted Objects has a bad GUID, we need to use
show_deleted
2011-06-22 20:13:08 +02:00
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
01ce078ed1
s4-upgradeprovision: propose the use of findprovisionranges if no ranges are present
...
Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Mon Jun 20 00:30:59 CEST 2011 on sn-devel-104
2011-06-20 00:30:59 +02:00
Matthieu Patou
957b1ff183
s4: create script to find provision ranges for old provision without this information
2011-06-19 23:21:09 +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
8a19e1ecfb
s4-upgradeprovision: skip versionNumber, it's used by GPO
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
05b2d4147a
s4-upgradeprovision: deltaattr can be empty or none too
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
5e81ee8b34
s4-upgradeprovision: Rework completly how SDs are recalculated
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
c0eb403758
s4-upgradeprovision: remove useless comment
2011-06-19 23:21:08 +02:00
Matthieu Patou
bc7b8fa108
s4-upgradeprovision: ignore objectSid
2011-06-19 23:21:08 +02:00
Matthieu Patou
f7a903ee80
s4-upgradeprovision: add a list of attribute that are not DSDB attribute that we don't want to copy
2011-06-19 23:21:08 +02:00
Matthieu Patou
930d2f28c9
s4-upgradeprovision: if there is nothing to really modify then skip it
2011-06-19 23:21:08 +02:00
Matthieu Patou
0e72914925
s4-upgradeprovision: dn must be skipped as delta.remove("dn") do not remove this attribute
2011-06-19 23:21:08 +02:00
Matthieu Patou
f76c206e2f
s4-upgradeprovision: change hashAttrNotCopied to be an array
2011-06-19 23:21:08 +02:00
Matthieu Patou
4305f54b8e
s4-upgradeprovision: fix inverted logic and wrong flags on sd_flags control
2011-06-19 23:21:08 +02:00
Matthieu Patou
01758595e3
s4-upgradeprovision: remove useless code
2011-06-19 23:21:08 +02:00
Matthieu Patou
44c5406252
s4-upgradeprovision: don't print dn in the list of modified attributes
2011-06-19 23:21:08 +02:00
Matthieu Patou
9a18e07b4f
s4-upgradeprovision: clean up, reformating and update docs
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
71ab462c81
s4-upgradeprovision: add function to know if attribute is replicated or not
2011-06-19 23:21:08 +02:00
Matthieu Patou
d9abcc9384
s4-upgradeprovision: split update_present in two functions depending on the method used
...
In order to make the function a bit more clearer and with less depth,
the selection of attribute that are not updated is split in two
functions depending on the fact that we are using mainly
replPropertyMetadata to make our choice or if we are using the list of
attributes that should, could or shouldn't be updated/created/deleted.
2011-06-19 23:21:08 +02:00
Matthieu Patou
0065742909
s4-upgradeprovision: handle_special_attributes don't really need ranges of USNs, just the information if we are using replPropertyMetadata for attribute selection
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
Matthieu Patou
b14bdf431b
s4-upgradeprovision: Fix an error, so that cursddl and refsddl are not the same
...
Thanks to Dirk Paulli for pointing it with his bug report.
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