summaryrefslogtreecommitdiffstats
path: root/source4/scripting/bin/upgradeprovision
Commit message (Collapse)AuthorAgeFilesLines
...
* 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>
* upgradeprovision: code cleanupMatthieu Patou2010-03-011-49/+57
| | | | Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* upgradeprovision: split the big script to put reusable functions appartMatthieu Patou2010-03-011-231/+48
| | | | Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* s4:provision: use generate_random_password()Stefan Metzmacher2010-02-261-1/+1
| | | | metze
* upgradeprovision: forbid running upgradeprovision when there is more than 1 DCMatthieu Patou2010-01-211-0/+20
|
* upgradeprovision: mark rIDAvailablePool never upgradedMatthieu Patou2010-01-211-16/+121
| | | | | handle properly the fact that missing object might depend on some other in order to be correctly created debug change also if we are in debugall mode
* upgradeprovision: reformat + add groupType as possibly overwrittenMatthieu Patou2010-01-211-9/+12
|
* upgradeprovision: improve info messagesMatthieu Patou2010-01-211-7/+5
|
* Revert "s4:upgradeprovision - fix up the script regarding linked attributes"Matthieu Patou2010-01-211-46/+12
| | | | This reverts commit 2cedefabc93c8a1fcb49d65a3f78a344e814f826.
* upgradeprovision: never use xattr it's pointless in this usecaseMatthieu Patou2010-01-211-1/+1
|
* s4:upgradeprovision - fix up the script regarding linked attributesMatthias Dieter Wallnöfer2010-01-101-12/+46
| | | | | | | | | | | | | | | | We have to try to add new objects until between two iterations we didn't make any progress. Either we are then done (no objects remaining) or we are incapable to do this fully automatically. The latter can happen if important system objects (builtin groups, users...) moved (e.g. consider one of my recent comments). Then the new object can't be added if it contains the same "sAMAccountName" attribute as the old one. We have to let the user delete the old one (also to give him a chance to backup personal changes - if needed) and only then the script is capable to add the new one onto the right place. Make this clear with an exhaustive error output. I personally don't see a good way how to do this better for now so I would leave this as a manual step.
* s4:upgradeprovision - Reformat commentsMatthias Dieter Wallnöfer2010-01-101-28/+44
| | | | Make them break at line 80 (better readability).
* s4: rename res/res2 to something more explicitMatthieu Patou2009-12-151-71/+68
|
* s4: upgradeprovision handle renaming and knownobjectsMatthieu Patou2009-12-151-6/+18
|
* s4: upgradeprovision rename also when there is a mismatch on the case of ↵Matthieu Patou2009-12-151-2/+7
| | | | | | | | | name attribute Renaming not only helps when name attribute is not here it also helps when the case is not the good one. So in order to avoid problem and have as much as possible similar provision we should use the rename whenever a name difference appear.
* s4: reorder action to permit old provision to be correctly upgradedMatthieu Patou2009-12-151-5/+8
|
* s4: Remove targetdir as it can cause some trouble and can be replaced by an ↵Matthieu Patou2009-12-011-3/+1
| | | | | | adapted -s smb.conf Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4: Handle the case in secrets.ldb without name attributeMatthieu Patou2009-12-011-5/+25
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4: don't forget to update defaultSecurityDescriptorMatthieu Patou2009-12-011-2/+3
| | | | Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4: load the domain level of the current provision and create a provision ↵Matthieu Patou2009-12-011-2/+8
| | | | | | with the same domain level Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4: fix SD update and password change in upgrade scriptMatthieu Patou2009-11-281-82/+90
| | | | | | | | | - reserve a new Samba OID for recalculate SD control - fix the update SD function - fix handling of kvno in the update_machine_account_password function - fix handling of handles in RPC winreg server Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s4:upgradeprovision Rework update_machine_account_password() tranactionsAndrew Bartlett2009-11-271-4/+6
| | | | | | This balances the transaction_begin() and transactin_prepare_commit() calls Andrew Bartlett
* s4:upgradeprovision Use mkdtemp to create unique tempoary directory namesAndrew Bartlett2009-11-271-2/+3
|
* s4:upgradeprovision Rework script, and reset machine account pwAndrew Bartlett2009-11-271-27/+58
| | | | | | | | | | The rework corrects some duplication and errors in the original script, found when preparing an automated test of the script. The code to reset the machine account password avoids issues with AES keys and salting, which may not otherwise be solved by the upgrade. Andrew Bartlett
* s4: Improve updateprovisionMatthieu Patou2009-11-271-33/+52
| | | | | | | | | * Define a simple upgrade process mode (module storage change, file name change, copy of new file) * Move the schema, configuration and current object upgrade into full upgrade mode * Added the --full switch to select the full upgrade mode, and made simple upgrade mode the default * Make updateprovision works without any switch (update the provision in the default location) * Cleanup the messages * Create the reference provision in a subdirectory of the updated provision
* s4: Rename the scriptMatthieu Patou2009-11-271-0/+694