summaryrefslogtreecommitdiffstats
path: root/source4/scripting/bin/upgradeprovision
Commit message (Collapse)AuthorAgeFilesLines
* s4 upgradeprovision: add dns_update_list if missingMatthieu Patou2010-09-051-0/+4
|
* s4 upgradeprovision: exit with a non null return code so that it can be ↵Matthieu Patou2010-08-191-0/+1
| | | | trapped in blackbox tests
* s4 upgradeprovision: add more attrbutes the ignore listMatthieu Patou2010-08-191-5/+9
| | | | Also format in a pretty way the int64 ranges
* s4 upgradeprovision: Deal with bootstrap indexing attribute to avoid useless ↵Matthieu Patou2010-08-191-13/+65
| | | | reindexing
* s4 upgradeprovision: Add a function for schema reloadingMatthieu Patou2010-08-191-1/+31
| | | | | | Full schema reloading is needed when we modify exisiting elements that have attributes that comes from not from the default schema (ie. openchange schema, user schema ..)
* s4 upgradeprovision: Fixes for increment_keyversionMatthieu Patou2010-08-191-1/+2
| | | | fix
* s4 upgradeprovision: fix a typo and pass correct parameter to ↵Matthieu Patou2010-08-191-3/+4
| | | | increment_calculated_keyversion
* s4 upgradeprovision, fix a typo preventing the ridset to be correctly identifiedMatthieu Patou2010-08-101-1/+1
|
* s4 upgradeprovision: Adapt the list of attribute modifiedMatthieu Patou2010-07-151-4/+25
| | | | | | | | | | | | | | * isMemberOfPartialAttributeSet is now allowed to be deleted (on schema objects) * attributeDisplayNames is now allowed to be added and modified (used on display specifiers) * spnMapping is now allowed to be altered on Directory Service objects * minPwdAge is now modified if the previous value was 0 We issue a clear information about the userControl attribute for administrator to invite the user to modify himself the value. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4 upgradeprovision: Synchronize the calculated keyversionnumber with the ↵Matthieu Patou2010-07-151-1/+22
| | | | | | one previously stored Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4 upgradeprovision: do not copy RID Set it's automaticaly created by the ↵Matthieu Patou2010-07-151-24/+34
| | | | | | RID manager Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4 upgradeprovision: add function to backup the provision before updatingMatthieu Patou2010-07-151-152/+268
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4 upgradeprovision: fix whitespacesMatthieu Patou2010-07-151-13/+13
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4 provision: move update_machine_account_password to helpersMatthieu Patou2010-07-151-48/+7
| | | | | | This is to allow reuse of this function and also unit tests Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4 upgradeprovision: For SID > 1000 do not copy them, let the system ↵Matthieu Patou2010-07-081-0/+6
| | | | | | | | | regenerated a new one This should avoid colliion with newly added objects that use the same SID as existing users in the upgraded provision. Signed-off-by: Matthias Dieter Wallnöfer <mdw@samba.org>
* s4:upgradeprovision - fix include order for "ldb"Matthias Dieter Wallnöfer2010-06-241-1/+1
| | | | Patch originally posted on the list by Matthieu Patou.
* s4 upgradeprovision: fix the logging stuff so that it actually logMatthieu Patou2010-06-211-0/+2
| | | | Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* Some more formatting fixes, move schema related functions from Ldb to Schema.Jelmer Vernooij2010-06-201-4/+5
|
* Formatting cleanups; use True/False for booleans, unnecessary backslashes, ↵Jelmer Vernooij2010-06-201-61/+63
| | | | spacing.
* s4-python: Remove trivial function, replace by dictionary.Jelmer Vernooij2010-06-201-4/+11
|
* s4 upgradeprovision: Check that the policy for DC is present if not warn the ↵Matthieu Patou2010-06-201-4/+14
| | | | | | user Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* s4 upgradeprovision: add an option to force the rebuilding of FS ACLs on ↵Matthieu Patou2010-06-201-1/+6
| | | | | | sysvols share Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* s4 upgradeprovision: Restyle importsMatthieu Patou2010-06-201-15/+15
| | | | Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* s4 upgradeprovision: Move functions to helpers and improve codeMatthieu Patou2010-06-201-197/+48
| | | | | | | | | | | | Among code improvement the most significant part is that we now compare DN object instead of their string representation. It allow to better react to case an white space difference. Some new move objects have been added (ie. System into well known security principals). This will allow more unittesting Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* s4 upgradeprovision: Add documentation on the update processMatthieu Patou2010-06-201-9/+162
| | | | Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* s4 upgradeprovision: move some functions to upgradehelpers for unit testsMatthieu Patou2010-06-201-129/+13
| | | | Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* s4 upgradeprovision: Fix styleMatthieu Patou2010-06-201-85/+137
| | | | | | | | | | | | reformat *_update_samdb functions fix_partition_sd rebuild_sd update_samdb update_privilege update_machine_account_password update_gpo Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* s4 upgradeprovision: Use replPropertyMetaData for better guessMatthieu Patou2010-06-201-179/+565
| | | | | | | | | | | | Rework upgradeprovision in order to get more precise updates when doing upgrade provision. This is done through the use of replPropertyMetaData information and raw information revealed by the "reveal" control. The code has been changed also to avoid double free error when changing the schema (for old provision). Checking of SD is done a bit more cleverly as we compare the different parts for an ACL separately. Fix logic when upgrading provision without replPropertyMetaData infos Also for old provision (pre alpha9) do not copy the usn range because data here will be wrong Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* s4 upgradeprovision: Reformat attributes lists and reformat parserMatthieu Patou2010-06-201-17/+33
| | | | Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* s4 upgradeprovision: Inform about new dns dynamic update if the provision ↵Matthieu Patou2010-06-201-3/+41
| | | | | | didn't have it Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* s4 upgradeprovision: fix styleMatthieu Patou2010-06-201-76/+123
| | | | | | | | | add_deletedobj_containers add missing objects clean add-mising handle special add + dump denied Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* s4 upgrade provision: Refactor code to do all the modification within 1 ↵Matthieu Patou2010-06-201-308/+413
| | | | | | transaction Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* s4 upgrade provision: Fix style in gen_dn_indexMatthieu Patou2010-06-201-2/+1
| | | | Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* upgradeprovision: Use logging infrastructure.Jelmer Vernooij2010-06-131-13/+14
|
* upgrade: Properly cancel/commit transactions in a couple more places.Jelmer Vernooij2010-06-131-122/+135
|
* s4-python: Start using standard python logging infrastructure ratherJelmer Vernooij2010-06-131-4/+5
| | | | than simple messaging callbacks.
* s4-upgradeprovision: fixed --realm option duplicate in upgrade_from_s3Andrew Tridgell2010-04-211-1/+1
|
* s4-python: More cleanups.Jelmer Vernooij2010-04-081-0/+1
|
* s4-python: Simplify code, improve formatting.Jelmer Vernooij2010-04-081-17/+25
|
* s4-python: Move samdb_ntds_objectGUID to pydsdb.Jelmer Vernooij2010-04-071-2/+1
|
* upgradeprovision: Fix formatting, syntax error.Jelmer Vernooij2010-03-281-17/+20
|
* s4 upgradeprovision: add information about upgrade in oEMInformation to keep ↵Matthieu Patou2010-03-281-2/+15
| | | | | | a better trace of different updates Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* s4: allow upgrade provision to fix acl and missing dir on GPO dirsMatthieu Patou2010-03-281-1/+18
| | | | Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* python: use '#!/usr/bin/env python' to cope with varying install locationsAndrew Tridgell2010-03-251-1/+1
| | | | this should be much more portable
* More formatting fixes.Jelmer Vernooij2010-03-011-69/+74
|
* Fix formatting.Jelmer Vernooij2010-03-011-734/+734
|
* upgradeprovision: Remove unused imports, use shutil.rmtree rather thanJelmer Vernooij2010-03-011-11/+7
| | | | rmall.
* upgradeprovision: Move to pythondoc formatMatthieu Patou2010-03-011-23/+172
| | | | Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* upgradeprovision: Allow script to be called with pydocMatthieu Patou2010-03-011-40/+42
| | | | Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* upgrade provision: change the meaning of handle_security_desc to be similar ↵Matthieu Patou2010-03-011-3/+3
| | | | | | to handle_special_case Signed-off-by: Jelmer Vernooij <jelmer@samba.org>