summaryrefslogtreecommitdiff
path: root/source4/scripting
AgeCommit message (Collapse)AuthorFilesLines
2009-12-01s4: Remove targetdir as it can cause some trouble and can be replaced by an ↵Matthieu Patou1-3/+1
adapted -s smb.conf Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2009-12-01s4: Handle the case in secrets.ldb without name attributeMatthieu Patou1-5/+25
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2009-12-01s4: don't forget to update defaultSecurityDescriptorMatthieu Patou1-2/+3
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2009-12-01s4: load the domain level of the current provision and create a provision ↵Matthieu Patou2-3/+9
with the same domain level Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2009-11-28s4:upgrade_from_s3 - Move it back to "setup"Matthias Dieter Wallnöfer1-86/+0
Suggested by Jelmer
2009-11-28s4:upgrade.py - remove my copyrightMatthias Dieter Wallnöfer1-1/+0
First I wanted to add also other changes but then I didn't introduce them. Therefore remove my copyright again.
2009-11-28s4:upgrade.py - readd accidentally removed empty linesMatthias Dieter Wallnöfer1-0/+4
Jelmer pointed out that this is against the PEP8 norm
2009-11-28s4:samba3.py/upgrade.py: RevertMatthias Dieter Wallnöfer3-10/+9
This reverts commit 2175c0ed0649d545ea833d50e8d33fbee9051c35. This reverts commit 6c3e2417a0639cd7c367de93615c422cf5217456. This reverts commit dbb8989e05ac3189a5eca11fa40d572388ea02fc. This reverts commit 82adfa39b75aa628c88f828278c6ac09335d1a49. This reverts commit f299efa8f05c6a5b739222bdf75690a4591d3650. After a small discussion with Jelmer we agreed that this isn't the right way to fix the problem. We should wait for a real patch rather to rely on temporal hacks.
2009-11-28s4: fix SD update and password change in upgrade scriptMatthieu Patou3-88/+96
- 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>
2009-11-27s4:provision.py - remove hardcoded SIDs and RIDsMatthias Dieter Wallnöfer1-3/+3
After rework of the SDDL modules this is possible. In future: Never hardcode them anymore! Always use the abbreviations.
2009-11-27s4:samba3.py - deactivate also the assertion on line 599Matthias Dieter Wallnöfer1-1/+1
2009-11-27s4:provision.py - cosmeticMatthias Dieter Wallnöfer1-8/+7
2009-11-27s4:samba3.py (and test) - deactivate the tests until those parameters are fixedMatthias Dieter Wallnöfer2-4/+4
2009-11-27s4:upgrade.py - Umlaut problemMatthias Dieter Wallnöfer1-1/+1
2009-11-27s4:upgrade.py - rework to make the upgrade s3 -> s4 possible againMatthias Dieter Wallnöfer1-72/+72
Able to read basic settings "workgroup", "realm", "netbios name" and the function mode from the s3 "smb.conf" and use them for the provision of s4.
2009-11-27s4:upgrade_from_s3 - Fix message outputsMatthias Dieter Wallnöfer1-3/+3
The quiet parameter was interpreted in the reverse manner.
2009-11-27s4:upgrade.py - the import of WINS databases don't seem to work alwaysMatthias Dieter Wallnöfer1-1/+1
Disable it for now until the cause has been found
2009-11-27s4:samba3.py - ignore comments in "smb.conf" filesMatthias Dieter Wallnöfer1-1/+1
2009-11-27s4:samba3.py - don't read those informations out from the TDBMatthias Dieter Wallnöfer1-3/+4
At the moment those three calls are broken
2009-11-27s4:samba3.py - support the TDB version 3Matthias Dieter Wallnöfer1-1/+1
2009-11-27s4:provision - Fix up the provision of "standalone" and "member" modeMatthias Dieter Wallnöfer1-9/+11
Both modes weren't possible anymore since 1.) the secrets entry wasn't created, 2.) a lookup in winbindd was done using "lp_workgroup()" rather than "lp_sam_name()" (since on the mentioned two configurations we use the netbios name as domainname - and not the workgroup).
2009-11-27s4:provision.py - cosmetic output correctionMatthias Dieter Wallnöfer1-1/+1
2009-11-27s4:upgrade script - rename it to "upgrade_from_s3" and do some reworkMatthias Dieter Wallnöfer1-0/+86
- Give a better name to the script - Move it to the location where also "upgradeprovision" resides - Fix up trailing whitespaces and tabs
2009-11-27s4:upgradeprovision Rework update_machine_account_password() tranactionsAndrew Bartlett1-4/+6
This balances the transaction_begin() and transactin_prepare_commit() calls Andrew Bartlett
2009-11-27s4:upgradeprovision Use mkdtemp to create unique tempoary directory namesAndrew Bartlett1-2/+3
2009-11-27s4:upgradeprovision Rework script, and reset machine account pwAndrew Bartlett1-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
2009-11-27s4:provision Make setting the domain SID in the self join optionalAndrew Bartlett1-3/+4
2009-11-27s4: Improve updateprovisionMatthieu Patou1-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
2009-11-27s4: Rename the scriptMatthieu Patou1-45/+45
2009-11-25s4:upgradeschema.py Update to reflect recent change in provisionMatthieu Patou1-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>
2009-11-25s4:upgradeschema.py CleanupMatthieu Patou1-6/+1
- remove some useless comments - remove hardcoded paths (commit message clarified by Andrew Bartlett) Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2009-11-24s4: Fix missing TLS dir when targetdir is not the default oneMatthieu Patou1-0/+2
2009-11-24s4:provision Move exceptions into a new fileAndrew Bartlett3-9/+36
This allows provisionbackend and provision to both raise ProvisionException
2009-11-24s4:provision Don't bother with a template for the LDAP backend startup script.Andrew Bartlett1-2/+1
2009-11-23s4:dsdb Move module configuration from each ldb into samba_dsdb.cAndrew Bartlett1-75/+4
This makes getting the module order correct, the obligation of Samba4 developers, and not system administrators. In particular, once an ldb is updated to use only the 'samba_dsdb' module, no further changes to the ldb should be required when upgrading to later Samba4 versions. (thanks to metze for the suggestion of samba_dsdb as a long-term stable name for the module) Andrew Bartlett
2009-11-23s4:provision Simplify the module listAndrew Bartlett1-19/+25
This makes the member server much more like the DC, the objectGUID module replaces the repl_meta_data module. We also generally rework the construction of the list, building a full list in python, and then transforming it into a string, rather than playing string concatonation games Andrew Bartlett
2009-11-20Some changes to allow processing of ldap controls on modify requests.Nadezhda Ivanova2-3/+15
ldap_backend used to filter out ldap controls on modify. Also, modified python binding for ldap_modify to allow writing tests for such controls.
2009-11-17s4:provision Split up reference creation, load schema earlier in the stackAndrew Bartlett1-6/+8
The schema needs to be loaded above the extended_dn_out modules as otherwise we don't get an extended DN in the search results. The reference split is to ensure we create references after the objects they reference exist. Andrew Bartlett
2009-11-17s4:provision Generate a random objectGUID for each schema recordAndrew Bartlett1-0/+2
This is needed to then create extended DNs with GUID attributes in them, when importing from the LDIF Andrew Bartlett
2009-11-16s4:provision - Removed dependency on full Samba 3 schema from FDSEndi S. Dewata3-68/+99
2009-11-12s4:provision - Added LDBBackend and ExistingBackend.Endi S. Dewata2-32/+62
2009-11-12s4:provision - Added constructors for FDSBackend and OpenLDAPBackend.Endi S. Dewata2-43/+95
2009-11-12s4:provision - Added setup() method in LDAPBackend.Endi S. Dewata2-26/+32
2009-11-12s4:provision - Moved provision_xxx_backend() into backend-specific ↵Endi S. Dewata2-318/+287
provision() method.
2009-11-12s4:provision - Added start() method in LDAPBackend.Endi S. Dewata2-13/+20
2009-11-12s4:provision - Added initial implementation of FDSBackend and OpenLDAPBackend.Endi S. Dewata2-37/+68
2009-11-12s4:provision Add C binding to get at the generate schemaAndrew Bartlett1-0/+23
This will allow us to do local tests against that schema
2009-11-12s4:provision Remove unused 'sambadn' parameterAndrew Bartlett2-10/+4
2009-11-05Version 1.0 of the directory service acls module.Nadezhda Ivanova1-1/+1
At this point, support for checks on LDAP add, delete, rename and modify. Old kludge_acl is still there to handle the searches. This module is synchronous as the async version was impossible to debug, will be converted to async after some user testing.
2009-11-05s4:samdb python bindings - add a wrapper for "dsdb_make_schema_global"Matthias Dieter Wallnöfer1-0/+17