summaryrefslogtreecommitdiffstats
path: root/source4/scripting/bin
Commit message (Collapse)AuthorAgeFilesLines
* 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
* s4-dns: fixed CNAME automatic DNS updatesAndrew Tridgell2010-02-261-1/+1
|
* dns: auto-delete incorrect SRV entries for our hostnameAndrew Tridgell2010-02-261-8/+15
|
* s4-dns: add automatic dynamic DNS updating scriptAndrew Tridgell2010-02-261-1/+223
| | | | | | | | | | | This script checks a list of DNS names that we should have, and does dynamic DNS updates using our machine account credentials to add any missing DNS entries. This allows us to correctly add all the DNS entries we need when we join an existing domain as a DC Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* dns: dummy samba_dnsupdate scriptAndrew Tridgell2010-02-261-0/+38
| | | | | The merge from metze of my dns tree means we now depend on this. This is a placeholder until Andrew and I have finished the full script.
* s4:credentials Add hooks to extract a named Kerberos credentials cacheAndrew Bartlett2010-02-201-0/+30
| | | | | | | | | | | | This allows the integration of external tools that can't be linked into C or python, but need to authenticate as the local machine account. The machineaccountccache script demonstrates this, and debugging has been improved in cli_credentials_set_secrets() by passing back and error string. Andrew Bartlett
* s4-script: make enablerecyclebin use system_sessionAndrew Tridgell2010-02-121-1/+2
| | | | This allows it to work against our local ldb
* 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
|
* Import testtools as well, required for subunit.Jelmer Vernooij2010-01-161-2/+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-scripting: we need to use a base search for the NTDS GUIDAndrew Tridgell2010-01-081-1/+1
| | | | now we have nTDSConnections structures we can get more than 1 reply
* s4-scripts: add a enablerecyclebin scriptAndrew Tridgell2009-12-181-0/+54
| | | | | | This can be used to enable the recyclebin on a windows box. Once we properly implement this feature in samba we will use this to enable the feature on ourselves as well.
* 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:upgrade_from_s3 - Move it back to "setup"Matthias Dieter Wallnöfer2009-11-281-86/+0
| | | | Suggested by Jelmer
* 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:upgrade_from_s3 - Fix message outputsMatthias Dieter Wallnöfer2009-11-271-3/+3
| | | | The quiet parameter was interpreted in the reverse manner.
* s4:upgrade script - rename it to "upgrade_from_s3" and do some reworkMatthias Dieter Wallnöfer2009-11-271-0/+86
| | | | | | - Give a better name to the script - Move it to the location where also "upgradeprovision" resides - Fix up trailing whitespaces and tabs
* 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-45/+45
|
* s4:upgradeschema.py Update to reflect recent change in provisionMatthieu Patou2009-11-251-27/+31
| | | | | | | | | | - define which modules we want to use when loading the ldb - move partition in sam.ldb.d dir Changes have been suggested by Andrew Bartlett. (commit message clarified by Andrew Bartlett) Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4:upgradeschema.py CleanupMatthieu Patou2009-11-251-6/+1
| | | | | | | | - remove some useless comments - remove hardcoded paths (commit message clarified by Andrew Bartlett) Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s4:provision Move 'Schema' into it's own fileAndrew Bartlett2009-11-022-3/+5
|
* s4: Create a script for updating a running provision with change introduced ↵Matthieu Patou2009-11-021-0/+694
| | | | since the initial provision
* s4:w32err_code.py script - put it under "scripting/bin"Matthias Dieter Wallnöfer2009-10-151-0/+361
| | | | | | I think this is a better location for this script. Since the subdirectory "script" of "source4" contains only scripts for "make install" and "make uninstall".
* s4-script: flush DNS after adding new addressesAndrew Tridgell2009-10-151-0/+1
|
* Revert "python: create a script for reorgnizing an LDB file."Matthias Dieter Wallnöfer2009-09-301-60/+0
| | | | | | | This reverts commit 11a7842854c0be8c427a2dbf0a8fc3761cda6298. abartlet claims that this patch could lead to data loss (look at technical mailing list)
* s4:minschema/fullschema - add correct header commentsMatthias Dieter Wallnöfer2009-09-182-2/+2
|
* python: create a script for reorgnizing an LDB file.Matthieu Patou2009-09-181-0/+60
| | | | This script helps to reclaim waisted place.
* s4: Script to build or rebuild extend DN attributesMatthieu Patou2009-09-141-0/+141
| | | | | This script can be used to upgrade a provision that didn't integrate extended dn. It can also be used to add missing extended DN that weren't created during provision.
* s4-scripts: allow setup_dns.sh to take a PRIVATEDIRAndrew Tridgell2009-09-121-1/+3
|
* s4:setup_dns.sh fixed the update of the GUID CNAMEAndrew Tridgell2009-09-071-8/+14
|