summaryrefslogtreecommitdiffstats
path: root/source4/scripting
Commit message (Collapse)AuthorAgeFilesLines
...
* s4:provision - Fix up the provision of "standalone" and "member" modeMatthias Dieter Wallnöfer2009-11-271-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).
* s4:provision.py - cosmetic output correctionMatthias Dieter Wallnöfer2009-11-271-1/+1
|
* 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:provision Make setting the domain SID in the self join optionalAndrew Bartlett2009-11-271-3/+4
|
* 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: Fix missing TLS dir when targetdir is not the default oneMatthieu Patou2009-11-241-0/+2
|
* s4:provision Move exceptions into a new fileAndrew Bartlett2009-11-243-9/+36
| | | | This allows provisionbackend and provision to both raise ProvisionException
* s4:provision Don't bother with a template for the LDAP backend startup script.Andrew Bartlett2009-11-241-2/+1
|
* s4:dsdb Move module configuration from each ldb into samba_dsdb.cAndrew Bartlett2009-11-231-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
* s4:provision Simplify the module listAndrew Bartlett2009-11-231-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
* Some changes to allow processing of ldap controls on modify requests.Nadezhda Ivanova2009-11-202-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.
* s4:provision Split up reference creation, load schema earlier in the stackAndrew Bartlett2009-11-171-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
* s4:provision Generate a random objectGUID for each schema recordAndrew Bartlett2009-11-171-0/+2
| | | | | | | This is needed to then create extended DNs with GUID attributes in them, when importing from the LDIF Andrew Bartlett
* s4:provision - Removed dependency on full Samba 3 schema from FDSEndi S. Dewata2009-11-163-68/+99
|
* s4:provision - Added LDBBackend and ExistingBackend.Endi S. Dewata2009-11-122-32/+62
|
* s4:provision - Added constructors for FDSBackend and OpenLDAPBackend.Endi S. Dewata2009-11-122-43/+95
|
* s4:provision - Added setup() method in LDAPBackend.Endi S. Dewata2009-11-122-26/+32
|
* s4:provision - Moved provision_xxx_backend() into backend-specific ↵Endi S. Dewata2009-11-122-318/+287
| | | | provision() method.
* s4:provision - Added start() method in LDAPBackend.Endi S. Dewata2009-11-122-13/+20
|
* s4:provision - Added initial implementation of FDSBackend and OpenLDAPBackend.Endi S. Dewata2009-11-122-37/+68
|
* s4:provision Add C binding to get at the generate schemaAndrew Bartlett2009-11-121-0/+23
| | | | This will allow us to do local tests against that schema
* s4:provision Remove unused 'sambadn' parameterAndrew Bartlett2009-11-122-10/+4
|
* Version 1.0 of the directory service acls module.Nadezhda Ivanova2009-11-051-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.
* s4:samdb python bindings - add a wrapper for "dsdb_make_schema_global"Matthias Dieter Wallnöfer2009-11-051-0/+17
|
* s4:samdb python bindings - make the python wrap connect more like the C oneMatthias Dieter Wallnöfer2009-11-051-3/+10
| | | | Add call for setting the create permissions.
* s4:samdb python bindings - Reorder some function bodies to match the order ↵Matthias Dieter Wallnöfer2009-11-051-25/+24
| | | | in "ldb_wrap_connect"
* Added security descriptor for the domain NC to provisioning.Nadezhda Ivanova2009-11-041-1/+60
| | | | | Necessary for correct descriptor inheritance. Based on the default state of a single DC. Will be modified later when we support multiple DCs.
* s4:provisioning - Fixed minor bugs in provisioning tool and partition module.Endi S. Dewata2009-11-041-1/+2
|
* s4:provision Remove LDB backend files in provisionAndrew Bartlett2009-11-022-41/+12
| | | | | | | | Rather than try and remove the records in the LDB files, make the provision remove the whole file. This also removes the need to try and carry forward the old ldb filenames. Andrew Bartlett
* s4:provision Split ProvisionBackend out of the main provision scriptAndrew Bartlett2009-11-023-590/+631
| | | | | | | This splits the code, while keeping the original behaviour. The provision.py file had become just too long. Andrew Bartlett
* s4:provision Inline 'ldap_backend_shutdown' for clarityAndrew Bartlett2009-11-021-15/+15
|
* s4:provision Fix samdb test with new provision codeAndrew Bartlett2009-11-021-3/+12
|
* s4:provision Move 'Schema' into it's own fileAndrew Bartlett2009-11-025-123/+160
|
* s4:provision Make 'linked_attributes' and 'dnsyntax_attributes' a property ↵Andrew Bartlett2009-11-021-17/+33
| | | | of the Schema
* s4:provision Rework provision to always have a ProvisionBackendAndrew Bartlett2009-11-021-165/+188
| | | | | | | Rather than treat the LDAP backend as a special case, treat all backends the same, with different callbacks. Andrew Bartlett
* s4 - SID allocation using FDS DNA pluginEndi S. Dewata2009-11-021-7/+32
|
* s4:dsdb - Fixed attribute dereferencing for FDSEndi S. Dewata2009-11-021-2/+2
|
* s4: Create a script for updating a running provision with change introduced ↵Matthieu Patou2009-11-021-0/+694
| | | | since the initial provision
* s4-python: fixed annoyance where control-C doesn't kill our python scriptsAndrew Tridgell2009-10-251-0/+10
| | | | | | | | | We want our scripts to die immediately when a user hits control-C. Otherwise we not only annoy the hell out of the user, we also risk db corruption as the control-C could get delivered as an exception which gets mis-interpreted (eg. as a missing db object). We use transactions for all our databases, so the right thing to do in all our command line tools is to die immediately.
* s4-python: we need to include Python.h firstAndrew Tridgell2009-10-233-3/+3
| | | | | If we don't include Python.h first then we get a pile of warnings due to broken redefines of XOPEN_SOURCE in the Python includes.
* s4:dsdb Split schema loading and schema data managementAndrew Bartlett2009-10-231-2/+3
| | | | | | | | | | | By splitting the module this way, we can load the schema at startup, after the partitions module is operational, but we leave the 'mess with details of entries in the partitions' module to operate only on the partitions module. Loading the schema later allows us to set the @ATTRIBUTES correctly on all the databases. Andrew Bartlett
* s4:provision - Reintroduce accidentally removed parameters and checks from ↵Matthias Dieter Wallnöfer2009-10-221-13/+38
| | | | | | "guess_names" abartlet pointed out that those are essential for a safe and consistent provision.
* s4:provision - rework the "guess_names" and "make_smbconf" methodMatthias Dieter Wallnöfer2009-10-211-37/+18
| | | | | | | | | | - Cleans it up from unnecessary "lower()/upper()" and parameters which can be derived through "lp" calls. - Substitute the "HOSTNAME" caption in the "smb.conf" templates with "NETBIOS_NAME" which fits better. - Now the "realm" and "domain" parameter of the provision are totally case insensitive and the script itself up/downcases them appropriately depending on the use (e.g. "realm" upcase for KERBEROS, lowcase for DNS domainname).
* s4:provision - important fix for DNS domainname: lower realmMatthias Dieter Wallnöfer2009-10-211-1/+1
|