summaryrefslogtreecommitdiff
path: root/source4/scripting/python/samba/provision.py
AgeCommit message (Collapse)AuthorFilesLines
2008-05-24Add docstrings to a couple more python modules.Jelmer Vernooij1-2/+2
(This used to be commit b4560c90e5e8d3a35367d3a21d361dc4c9c0de23)
2008-05-23Fix indentation, add docstring in provisioning script.Jelmer Vernooij1-14/+15
(This used to be commit 86a8a085496c292b390c0d6362e3e4d9980df83f)
2008-05-23Some more PEP improvements.Jelmer Vernooij1-17/+18
(This used to be commit 015ca850df9b4c8112b033130023909b1d0b78b7)
2008-05-23Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-wsgiJelmer Vernooij1-87/+176
Conflicts: source/scripting/python/samba/provision.py (This used to be commit d27de633656f8a699222df77c4c58326890889a2)
2008-05-23Use restructuredText formatting for docstrings.Jelmer Vernooij1-0/+2
(This used to be commit 0cc58decd74d20f3d7dff93ddef1c8bce4d49ad0)
2008-05-21provision: Generate krb5.conf template separate from named.conf template.Andrew Kroeger1-22/+52
(This used to be commit ebf130e9e57b640129cf0d05dbd7d210b71ea371)
2008-05-18provision: Create instructions for enabling DNS GSS-TSIG updates.Andrew Kroeger1-7/+25
Added code to the python provisioning to create the named.conf file that was previously generated by the EJS provisioning. Updated the named.conf template to provide the additional details necessary to get things working. (This used to be commit 0b7a6bfcba1b906dc4d461882b4c3fe3c91c44e0)
2008-05-11make sure to always use string version of uuid rather than object.Jelmer Vernooij1-2/+3
(This used to be commit bcd5fc7dc9899deb9fa84fdeeb21ed2ddb921308)
2008-05-11Use consistent function names with the standard Python uuid module that is ↵Jelmer Vernooij1-2/+2
available in >= 2.4. (This used to be commit 60d458e3195eef6baf655fee0da7c3f68517e8e6)
2008-04-15Re-add 'db' subdirectory for LDAP backend provisionAndrew Bartlett1-3/+3
Andrew Bartlett (This used to be commit 19890c0d15adf4f099365f276a4bfdd3f4de52b6)
2008-04-15Fix provision-backend scriptAndrew Bartlett1-3/+4
Andrew Bartlett (This used to be commit ee6e4f8da229ddeca856a6db94236367aae06f63)
2008-04-11Don't reopen the sam.ldb againAndrew Bartlett1-2/+0
Andrew Bartlett (This used to be commit b51b8a2d846284de4dff736fc18cf747c188de96)
2008-04-11Far less cryptic traceback when you have an existing smb.confAndrew Bartlett1-6/+21
When the user has an existing smb.conf, but no [netlogon] or [sysvol] share, the provision script would trigger a traceback. While we still need to abort in this situation, we do so now with a useful error. Andrew Bartlett (This used to be commit 10a8b7ea487f9725f69b02c4dd9cf5e1f67a23ab)
2008-04-11Fix merge errors on C provision interface after jelmer's good work.Andrew Bartlett1-1/+1
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-abartlet Conflicts: source/torture/local/torture.c (This used to be commit 5bf1c89cf8af08fbcf4f5089079920840daad7b8)
2008-04-10Add infrastructure for returning ProvisionResult in C provision code.Jelmer Vernooij1-1/+1
(This used to be commit 98c3d34eb233be284e8c8994cca337be25c72968)
2008-04-09Fix up provision to specify SERVERDN in more places.Andrew Bartlett1-0/+5
Andrew Bartlett (This used to be commit d01d542502f25d6c731204ecb3d33720a1706581)
2008-04-09Don't fill in the secrets DB unless we make the entries.Andrew Bartlett1-7/+8
Leave filling in (we still initialise it) the secrets DB for the join or vampire code. Andrew Bartlett (This used to be commit c93208c13ce91b334eadf0ea02fa41354e761e97)
2008-04-09Add docstring, PEP8.Jelmer Vernooij1-5/+15
(This used to be commit f8cac3735c9a19baa313c4b61abee144da303ce1)
2008-04-08Re-add support for the --ldap-backend-port option to provision-backendAndrew Bartlett1-13/+29
This option allows Fedora DS multi-master replication to work. I've tried to update the wiki and scripts to the largely consistant with each other. Andrew Bartlett (This used to be commit 42393c830733b2cc99ebccdafe944fcf3d82734f)
2008-04-06More PEP8 compliancy.Jelmer Vernooij1-9/+16
(This used to be commit d16b30d005933c9cc73f9196a3b77829d23687a0)
2008-04-05Simplify some code, fix style.Jelmer Vernooij1-102/+99
(This used to be commit 1c983e4e4dfb93387791c36dc96696c4fffcfeb7)
2008-04-05Improve PEP8 (Python code style) compliancy a bit.Jelmer Vernooij1-6/+14
(This used to be commit c7d388a6e2153234fe67daf1af094fc346e1da61)
2008-04-04Clean up provision and rootdse module to hard-code less stuff.Andrew Bartlett1-21/+21
In particular, allow for the server DN to be in a different site (possible outcome of a DRS replication). Andrew Bartlett (This used to be commit 9ee4e39fe178317f42fd9a0adceea24b55dfe0f1)
2008-04-03provision: Remove backup group mappingKai Blin1-10/+3
Some distros seem to neither have a backup nor a staff group. (This used to be commit 21fcf7c419658b3ae296428ca7a4ccf2288c17fe)
2008-04-02provision: Set up id mappings in the idmap db, only map Administrator.Kai Blin1-51/+47
(This used to be commit 206b7d387c6d17e5cc40fd45b489abac9235a7a4)
2008-04-02Fix merge of my host GUID removal and the IPv6 addition to provisionAndrew Bartlett1-10/+26
Merge branch 'v4-0-ipv6' of git://git.id10ts.net/samba into 4-0-abartlet Andrew Bartlett (This used to be commit d3336684f084f984500dd0893dd01bcfc5be0ab1)
2008-04-01provision: Add support for IPv6 (bz #4593).Andrew Kroeger1-9/+25
(This used to be commit 8585a3c77d5dfe97bca3f08716fc06ac2819f578)
2008-04-02Remove references to setting the host GUID, as the repl_meta_dataAndrew Bartlett1-12/+5
module prohibits it anyway. Andrew Bartlett (This used to be commit c5b287c056855892f30fbbf32efe7d65da31ce91)
2008-03-29Rework 'compleated' message in provision to be more useful.Andrew Bartlett1-7/+9
In particular, this should draw attention to accidential 'standalone' server provisions and therefore cause less frustration. Andrew Bartlett (This used to be commit e906ae041a2b589ffceff97b74f7c4b01386382a)
2008-03-28Don't specify what should be a default option in the generated smb.confAndrew Bartlett1-2/+2
Instead, sub in "", so that the default continued to come from the code. Andrew Bartlett (This used to be commit b1829da8f75175fcc569a3a9195f2358731055a9)
2008-03-27provision: Initialize uninitialized variables if "targetdir" is notKai Blin1-1/+4
defined and there is no smb.conf file (This used to be commit 19c29f473883be0a17fa740de9feb226f347df4a)
2008-03-15Rework memberof handling in slapd.conf (used for OpenLDAP backend)Andrew Bartlett1-22/+19
Instead of using an include file, put the generated configurationd directly into slapd.conf. Andrew Bartlett (This used to be commit 95ac786136aebfe5ededeb3fb81cbd4e296e3988)
2008-03-13Rework to have member server 'domains' be CN=NETBIOSNAMEAndrew Bartlett1-0/+6
This reworks quite a few parts of our provision system to use CN=NETBIOSNAME as the domain for member servers. This makes it clear that these domains are not in the DNS structure, while complying with our own schema (found by OpenLDAP's schema validation). Andrew Bartlett (This used to be commit bda6a38b055fed2394e65cdc0b308a1442116402)
2008-03-13Update the provision scripts and selftest for LDAPAndrew Bartlett1-5/+7
This should allow us to provision onto an OpenLDAP backend again. Also ensure we always have a sysvol and netlogon share in the selftest environment. Andrew Bartlett (This used to be commit b2d9b03ba3434e76d4d476233a198728523d17f9)
2008-03-13Upgrade provision-backend to python.Andrew Bartlett1-210/+411
This required a large rework of the provision code, so as to move much of the 'guess' logic into subprocedures, rather than just inline in the provision code. Andrew Bartlett (This used to be commit a0754c2a857217ca831c2295b17255d8f38dfbc2)
2008-03-11Fix provision script to work without smb.conf location specified.Andrew Bartlett1-2/+3
Andrew Bartlett (This used to be commit b4da374a998caac18c288a0a6e3fcd2c50cbffa7)
2008-03-07Try to fix up part of the upgrade test.Andrew Bartlett1-1/+12
There are still problems with the upgrade test, but these are not related to the provision system. Andrew Bartlett (This used to be commit d331bc400fb138bc43be88d0ca8ab3bcd590d2cd)
2008-03-07Rework provision scripts for more testingAndrew Bartlett1-13/+16
This fixes up some issues with testdir (was not honoured) and increases test coverage. We now check all the major provision modes. In doing so, to make it possible to call from the multiple layers of 'sh', I have allowed 'dc' to alias 'domain controller' and 'member' to alias 'member server'. Fighting shell quoting in the test system was just too hard... Also fix upgrade.py Andrew Bartlett (This used to be commit 0923de12282b0e063dd73bc3e056dd5c3663c190)
2008-03-07Merge branch 'v4-0-test' of git://git.samba.org/samba into 4-0-localAndrew Bartlett1-76/+138
(This used to be commit a6997c333cdd68dfba8a069df448836ff487787f)
2008-03-07Start to rework provision for LDAP backendsAndrew Bartlett1-1/+10
This is the start of the rework of the provision script to handle an LDAP backend correctly. For example, we must not set the 'tdb modules' against an LDAP backend such as OpenLDAP that handles subtree renames. Andrew Bartlett (This used to be commit e462a107d3bafcc546ca4d53dcc8eb32e4280745)
2008-03-06Make Samba4 pass the NET-API-BECOMEDC test against Win2k3 (again).Andrew Bartlett1-76/+138
To make Samba4, using the python provision system, pass this test required some major rework. Untested code is broken code, and some of the refactoring for a seperate provision test (which also now passes) broke things. Similarly, the iconv work has compiled, but these codepaths have never been run (NULL pointer de-reference). In working to use a local, rather than global, loadparm context, and to support using a target directory, a few things needed to be reworked, particularly around path handling. Andrew Bartlett (This used to be commit 1169e8d7bee20477b0efbfea3534ac63c83fb3d6)
2008-03-03Fix failure to re-provision.Andrew Bartlett1-7/+12
Somewhere in the conversion from ejs we lost calling the 'delete partitions' code. However, we have to be careful not to wipe partitions when we are the second client connecting to an LDAP server. Andrew Bartlett (This used to be commit 272eb765b81e3eab216a07249334f9b7d20e530b)
2008-03-03Fix member server provisionDouglas VanLeuven1-1/+1
Can't add "member server" because the script aborts with null reference when no match on serverrole. This is fixed by checking for the keyword "member server". (This used to be commit 62536750ae06248a49c6b56c86d01b0062bb54f0)
2008-02-28Reorder modules to have rdn_name before objectclass.Andrew Bartlett1-1/+1
This ensures the relative DN is placed in the correct case into the DB. Andrew Bartlett (This used to be commit 16378219fbf9e8a26621f848e85426180822ea29)
2008-02-21idmap: Handle uid->SID mappingKai Blin1-0/+24
(This used to be commit 6ac6de8476ba036eb041e054bc37e4503dc2fde8)
2008-02-16Formatting fixes.Jelmer Vernooij1-2/+3
(This used to be commit bc0fab89e325ebb6ab870b1c3f4b263c50631b70)
2008-02-15Use struct for provision parameters since there are so many of them.Jelmer Vernooij1-18/+22
(This used to be commit 4b9d5bc57ca4ee14c142ea720dce5e4ee97f8c16)
2008-02-13Initial work on a test for samba.tests.samdbJelmer Vernooij1-1/+2
(This used to be commit 8b33860954ca03be1ea45fd8d40963dbbd5b162f)
2008-02-09Fix syntax of docstrings, set project name when generating Python API ↵Jelmer Vernooij1-4/+2
documentation. (This used to be commit 68f13d87eb034fdbc712169f2d1b1a0475751ec5)
2008-02-09Fix provision python test.Jelmer Vernooij1-15/+9
(This used to be commit b173fa6bd2b24b5a3e7b4fbcb926f6c9771c10ba)